Re: [SR-Users] Problem to verify contact header

2011-12-08 Thread marius zbihlei
On 12/07/2011 06:45 PM, Bruno Bresciani wrote: this line is present in a module that i am writting, but on modules_k/pua_bla/notify.c line 205 has a similar condition... Cheers 607af7c7 (Henning Westerholt 2008-08-07 08:39:24 + 203) if(msg->contact== NULL || msg->contact->body

Re: [SR-Users] Problem to verify contact header

2011-12-07 Thread Bruno Bresciani
this line is present in a module that i am writting, but on modules_k/pua_bla/notify.c line 205 has a similar condition... Cheers 2011/12/7 marius zbihlei > On 12/07/2011 06:24 PM, Bruno Bresciani wrote: > >> Hi All, >> >> Kamailio generate a core at line below >> >> if(_msg->contact!= NULL ||

Re: [SR-Users] Problem to verify contact header

2011-12-07 Thread marius zbihlei
On 12/07/2011 06:24 PM, Bruno Bresciani 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 i

Re: [SR-Users] Problem to verify contact header

2011-12-07 Thread Ovidiu Sas
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 wrote: > Hi All, > > Kamailio generate a core at line below > > if(_msg->contact!= NULL ||

[SR-Users] Problem to verify contact header

2011-12-07 Thread Bruno Bresciani
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