[Osip] EXOSIP_MESSAGE_NEW and EXOSIP_CALL_MESSAGE_NEW
lizp
lizp at zanb.com.cn
Wed Nov 15 09:45:39 CET 2006
I cann't understand the different between EXOSIP_MESSAGE_NEW and EXOSIP_CALL_MESSAGE_NEW?
who can tell me? thank u very much.
if (je->type == EXOSIP_MESSAGE_NEW
&& je->request != NULL && MSG_IS_MESSAGE (je->request))
{
/* answer 2xx */
eXosip_lock ();
eXosip_message_send_answer (je->tid, 200, NULL);
eXosip_unlock ();
} else if (je->type == EXOSIP_CALL_MESSAGE_NEW
&& je->request != NULL && MSG_IS_MESSAGE (je->request))
{
/* answer 2xx */
if (je->cid != 0)
{
osip_message_t *answer;
int i;
eXosip_lock ();
i = eXosip_call_build_answer (je->tid, 200, &answer);
if (i == 0)
{
eXosip_call_send_answer (je->tid, 200, answer);
}
eXosip_unlock ();
}
lizp
2006-11-15
More information about the Osip
mailing list