<div dir="ltr">I am sorry it seems that error was in my code.<div><br></div><div>Actually I am persisting parsed Call ID in my custom structure as a key for searching between nodes and unfortunately I was saving just reference to parsed str structure. That means that I didn't save actual copy of string and when another message appeared I was trying to parse previously saved Call ID from the body of new message.<div><br></div><div>Sorry guys, my bad. But at least I learned something new :)</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 12, 2015 at 11:51 PM, Cockhootec Yahrabee <span dir="ltr"><<a href="mailto:cockootec@gmail.com" target="_blank">cockootec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div>I am trying to parse CallID from received message in SREV_NET_DGRAM_IN callback.</div><div><br></div><div>I am doing so with this piece of code:<br><br></div><div><a href="https://gist.github.com/ivanbarlog/e475a8443fd15b3c155a" target="_blank">https://gist.github.com/ivanbarlog/e475a8443fd15b3c155a</a><br></div><div><br></div><div>in skip_message() function I am checking if the message is one of Dialog creating SIP messages eg. INVITE request or ~200 response with Cseq method INVITE.</div><div><br></div><div>Unfortunately I am getting really weird results from parse_headers, eg. when I am trying to print out the call_id sometime I am getting correct result so the Call-ID is printed (I am checking by sniffing with WIreshark and also by checking Kamailio logs) but other time I am getting random string from message headers.</div><div><br></div><div>Any help is appreciated</div></div>
</blockquote></div><br></div>