Hi,

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On 
>Behalf Of ext Pekka Pessi
>Sent: Wednesday, October 10, 2007 3:11 PM
>To: Jerry Richards
>Cc: sofia-sip-devel@lists.sourceforge.net
>Subject: Re: [Sofia-sip-devel] Checking if SIP message Field is Present
>
>2007/10/9, Jerry Richards <[EMAIL PROTECTED]>:
>> What is the proper method in the NUA callback function to 
>check whether a
>> SIP message field is valid.  In some cases, if my callback 
>function tries to
>> access a SIP message field that is not present, it can get a 
>segmentation
>> fault.
>
>A non-null pointer in sip_t structure, like
>
>if (!sip->sip_contact) { /* Contact not present */
>}

I noticed that in some nua_r_* events, the sip_t pointer itself may be NULL.
It happens when there's a 904 stack response due to mismatched auth (or an auth 
loop).

-- 
  Mikhail

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to