Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Alex Initially I did not put dlg_manage(), after reading your post I added the dlg_manage(). Now in route section my code in kamailio.config looks as below. *dlg_manage(); if (is_method(INVITE)) { if (!has_totag()) { if($DLG_count

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: I committed on master branch the code for support of dynamic codecs ids: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=511dc62e6a6ca74324f42b66a23bd9d80b377252 I tested and seemed ok, but could try many options, so if you can give it

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
daniel, i fixed the crash like this: *** *** 482,495 int sdp_keep_codecs_by_name(sip_msg_t* msg, str* codecs) { str idslist; ! if(parse_sdp(msg) 0) { LM_ERR(Unable to parse sdp\n); return -1; } !

Re: [SR-Users] sdpops and dynamic codec ids

2011-10-29 Thread Juha Heinanen
daniel, it is possible to call both keep_codecs_by_name and keep_codecs_by_id, since 101 does not have name: v=0. o=twinkle 1548176998 229186862 IN IP4 192.98.102.10. s=-. c=IN IP4 192.98.102.10. t=0 0. m=audio 8000 RTP/AVP 99 97 8 0 3 101. a=rtpmap:99 speex/32000. a=rtpmap:97

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Hi All Still I am struggling to find a solution how to control the number of calls. I have few more doubts regarding this. 1. Do I need to enable mysql , so that these counters such as $DLG_count will be updated properly. Now I am getting 0 always irrespective of number of calls in system. 2.