[SR-Users] Problem to verify contact header

Ovidiu Sas osas at voipembedded.com
Wed Dec 7 17:28:51 CET 2011


You would want to have:
if(_msg->contact!= NULL && _msg->contact->body.s!= NULL){


Regards,
Ovidiu Sas

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

On Wed, Dec 7, 2011 at 11:24 AM, Bruno Bresciani
<bruno.bresciani at gmail.com> wrote:
> Hi All,
>
> Kamailio generate a core at line below
>
> if(_msg->contact!= NULL || _msg->contact->body.s!= NULL){
>
> _msg is a sip_msg struct that my module receive from kamailio. I want verify
> if on that request messagem have a contact header, but a core is being
> generated when contact header isn't present on message.
>
> Someone knows why this is happening?
>
> Cheers



More information about the sr-users mailing list