Hello Panagiotis,

getting the at least the call-ind in headers of sip reply would be good, do it by chunks (I do not know other option), in gdb:

$ frame 7
$ print *(buf+100)
$ print *(buf+200)
$ print *(buf+300)
$ print *(buf+400)

Then more or less same to get the request:

$ frame 2
$ print *(req->buf)
$ print *(req->buf+100)
$ print *(req->buf+200)
$ print *(req->buf+300)
$ print *(req->buf+400)

$ frame 1
$ print *hf

Make sure you pick a core that gives a backtrace like:
(gdb) backtrace
#0  free_to (tb=0x775c00) at parser/parse_to.c:79
#1  0x000000000047fd42 in clean_hdr_field (hf=0x2ad2432de100) at parser/hf.c:187
#2  0x00002ad23fe3e525 in run_trans_callbacks (type=<value optimized out>, trans=<value optimized out>, req=0x2ad2432dcf58,
   rpl=0x772d28, code=<value optimized out>) at sip_msg.h:54
#3  0x00002ad23fe47b46 in t_reply_matching (p_msg=0x772d28, p_branch=<value optimized out>) at t_lookup.c:888
#4  0x00002ad23fe47fa2 in t_check (p_msg=0x772d28, param_branch=0x7ffff9c016bc) at t_lookup.c:964
#5  0x00002ad23fe58ac2 in reply_received (p_msg=0x73a040) at t_reply.c:1395
#6  0x000000000041eebc in forward_reply (msg=0x772d28) at forward.c:521
#7  0x0000000000445313 in receive_msg (
   buf=0x718dc0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 77.247.97.11;branch=z9hG4bK45f7.70f91294.0;received=77.247.97.11\r\nV",
   len=920, rcv_info=0x7ffff9c017a0) at receive.c:212
#8  0x00000000004794ae in udp_rcv_loop () at udp_server.c:449
#9  0x000000000042760e in main (argc=3, argv=0x7ffff9c019b8) at main.c:774

Would be good if we get on irc together, if you have time, to do a more realtime debugging -- will be faster. Let me know if you can do it today. I am on #kamailio or #sip-router channels on irc.freenode.net with id miconda.

Thanks,
Daniel

On 03/17/2010 11:56 AM, Panagiotis Skoulikaritis wrote:
Hello Daniel

I do have quite a few core files, please send me the gdb commands.

Regards

Panagiotis.