[SR-Users] kamailio crash

Daniel-Constantin Mierla miconda at gmail.com
Sun Feb 22 22:14:47 CET 2015


Hello,

I just tried with the same invite injected with protoshot and it works
ok. The relevant snippet of the config I used is:

$var(codecs)="G729,PCMA,GSM,iLBC,speex,telephone-event";
sdp_keep_codecs_by_name($var(codecs));
$du = "sip:127.0.0.1:9";
t_relay();
exit;

I could see that the sdp going out is also ok.

Therefore it might be specific to your config. Are you using other
functions updating the sdp before the sdp_keep_codecs_by_name()?

Cheers,
Daniel

On 21/02/15 08:28, kovarik at odorik.cz wrote:
> Hello,
> kamailio crash if receive this invite (full pcap in attach):
>
> INVITE sip:+420235356120 at sip.odorik.cz SIP/2.0
> Via: SIP/2.0/TCP
> 89.103.14.100:5060;branch=z9hG4bKader9m419p44oh1arfvg3q3;rport
> From: <sip:680114 at sip.odorik.cz>;tag=n67dnvutedhc7h8g0723
> To: <sip:+420235356120 at sip.odorik.cz>
> Contact: <sip:4WJEcOsCK95r_THu1yoG at 89.103.14.100:5060;comp=sigcomp>
> Supported: 100rel,timer
> CSeq: 2374 INVITE
> Call-ID: PKnr_QhkoIfgFw74ch7P9QzSx4Utqm
> Allow: UPDATE,PRACK,SUBSCRIBE,REFER,NOTIFY,INVITE,ACK,CANCEL,OPTIONS,BYE
> User-Agent: Nokia RM-469 091.003 (cs)
> Expires: 120
> Privacy: None
> Session-Expires: 1800
> Max-Forwards: 69
> Proxy-Authorization: Digest
> realm="sip.odorik.cz",nonce="VOd181TndMfi5yGjm4maxIr8yb1s/ARs",algorithm=MD5,username="680114",uri="sip:+420235356120 at sip.odorik.cz",response="11aa17ebbf02d284c1fa5b03bca7fd89"
> Content-Type: application/sdp
> Accept-Language: cs
> Content-Length: 540
>
> v=0
> o=680114 63592714297343250 63592714297343250 IN IP4 89.103.14.100
> s=-
> c=IN IP4 89.103.14.100
> t=0 0
> m=audio 49152 RTP/AVP 100 96 0 8 97 18 98 13
> a=sendrecv
> a=rtpmap:100 AMR-WB/16000
> a=ptime:20
> a=maxptime:200
> a=fmtp:100 mode-change-period=2; mode-change-neighbor=1
> a=rtpmap:96 AMR/8000
> a=fmtp:96 mode-set=0,1,2,3,4,5,6,7; mode-change-neighbor=1
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:97 iLBC/8000
> a=rtpmap:18 G729/8000
> a=fmtp:18 annexb=no
> a=rtpmap:98 telephone-event/8000
> a=fmtp:98 0-15
> a=rtpmap:13 CN/8000
>
>
> and in run im kamailio.cfg
>
> $var(codecs)="G729,PCMA,GSM,iLBC,speex,telephone-event";
> sdp_keep_codecs_by_name($var(codecs));
>
> Kamailio crash with gdb export crash_20.02.2015 in attachments.
>
> kamailio -v
> version: kamailio 4.2.3 (x86_64/linux) 9524b3-dirty
> flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: 9524b3 -dirty
> compiled on 23:32:12 Feb 19 2015 with gcc 4.7.2
>
> Thank you.

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-users mailing list