Re: [SR-Users] q_malloc crash

2014-05-14 Thread Juha Heinanen
there was one more crash during the night caused by the same invite from attacker. i reproduced the tel2sip call that my sip proxy runs, but i didn't get the crash: $ru = "tel:00441212792194"; $avp(from_uri) = "sip:210.125.64.233"; xlog("L_INFO", "tel2sip $ru, $(avp(from_uri){uri.host

Re: [SR-Users] q_malloc crash

2014-05-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > What version are you using? this is version 4.1 taken from git on may 12. > It looks like a buffer overflow somewhere. Can you give the output of > next commands in gdb: > > frame 3 > p *f i got this: (gdb) frame 3 #3 0x08179f86 in qm_debug_frag (qm=0xb6de

Re: [SR-Users] How to remove attribute from SDP ?

2014-05-14 Thread Vitaliy Aleksandrov
I absolutely forgot about the possibility of embedding scripting languages to configuration. Lua did the trick. Thanks for the right direction and example. I can share my solution, using app_python. I'm using this in production environment during 2 years. loadmodule "app_python.so" modparam(

Re: [SR-Users] q_malloc crash

2014-05-14 Thread Daniel-Constantin Mierla
What version are you using? It looks like a buffer overflow somewhere. Can you give the output of next commands in gdb: frame 3 p *f Cheers, Daniel On 14/05/14 21:19, Juha Heinanen wrote: i just noticed that my proxy had crashed on invite request from attacker: May 14 22:03:06 sars /usr/sb

Re: [SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-14 Thread Daniel-Constantin Mierla
append_branch() works in 4.0 if you need to add additional branches. Look at default config file to see an example of using branch_route. Cheers, Daniel On 14/05/14 17:54, Jonathan Hunter wrote: Hi Daniel, Sorry to bug you just wondered if had a chance to consider the branching question? M

[SR-Users] q_malloc crash

2014-05-14 Thread Juha Heinanen
i just noticed that my proxy had crashed on invite request from attacker: May 14 22:03:06 sars /usr/sbin/sip-proxy[10932]: INFO: INVITE by untrusted from <210.125.64.233> May 14 22:03:06 sars /usr/sbin/sip-proxy[10932]: : [mem/q_malloc.c:159]:\ qm_debug_frag(): BUG: qm_*:

Re: [SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-14 Thread Jonathan Hunter
Hi Daniel, Sorry to bug you just wondered if had a chance to consider the branching question? Main thing is does append_branch work on 4.0 ? And also the best way to implement branch routes? Thanks Jon Hello, I am getting there! I am not using a branch routing block at present, I am doing

Re: [SR-Users] [sr-dev] Kamailio IRC Devel Meeting 2014

2014-05-14 Thread Daniel-Constantin Mierla
For time zone synchronization, we are going to start in about 5min. Join IRC channel #kamailio on irc.freenode.net if you want to participate. - http://www.kamailio.org/wiki/devel/irc-meetings/2014a Cheers, Daniel On 14/05/14 09:06, Daniel-Constantin Mierla wrote: Short reminder for those that

Re: [SR-Users] Prevent missing BYE request

2014-05-14 Thread Alex Balashov
Hello, On 05/14/2014 09:43 AM, Igor Potjevlesch wrote: The first step will be to use Kamailio as an SBC and start the RTPProxy for each session terminated on this wholesaler. Is there a similar mechanism on RTPProxy sides that can detect this particular call-flow and hang up the call? It's no

[SR-Users] Prevent missing BYE request

2014-05-14 Thread Igor Potjevlesch
Hello, Here is the context: I use to terminate outgoing calls to a PSTN gateway. The gateway is able to detect asymmetric RTP on IP side and then ended the call after a configurable timer if asymmetric RTP is detected. I'm working on the integration of a VoIP Trunk with a wholesaler and I'm wo

Re: [SR-Users] How to remove attribute from SDP ?

2014-05-14 Thread Jorj Bauer
> Can anybody suggest the way to remove a line/attribute from SDP that matches > some pattern (regexp), some kind of "grep -v" for SDP ? Another possibility might be to intentionally mangle an SDP offer so that it's unrecognizable. Background: Asterisk is our VM and Media server. We had a case

Re: [SR-Users] How to remove attribute from SDP ?

2014-05-14 Thread Konstantin M.
I can share my solution, using app_python. I'm using this in production environment during 2 years. loadmodule "app_python.so" modparam("app_python", "script_name", "/opt/kamailio/python/sdp.py") modparam("app_python", "mod_init_function", "mod_init") modparam("app_python", "child_init_method", "c

[SR-Users] Presence dialoginfo - initial empty NOTIFY

2014-05-14 Thread Ewgeny
Hello list, we're using kamailio presence for BLF functionality, that means lamps on the phone are green when phone is IDLE, blinking RED when - ringing and RED when busy. The problem is - when the phone send SUBSCRIBE first time - presence answers with empty NOTIFY (with no XML info), and lam

Re: [SR-Users] How to reply an INVITE with 403

2014-05-14 Thread Alex Balashov
Varun, It's as simple as: sl_send_reply("403", "Forbidden"); -- Alex -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ _

[SR-Users] How to reply an INVITE with 403

2014-05-14 Thread varun pratapsingh
Hi All, I want to handle a special case in the Kamailio 4.1.3. When I receive INVITE from some UAC I wanto reply it with 403 message. I am using the Kamailio in Proxy mode when the INVITE comes I want to reply it with 403 and do not want to send this INVITE to SIP Server. I expored the Kamailio s

Re: [SR-Users] Create dialog for SIP PRESENCE

2014-05-14 Thread Ewgeny
Thenk you Daniel! But maybe the latest Kamailio 4.1 supports dialog tracking of PRESENCE events ? Can you show me examples of using htable module to track SIP dialogs ? 12.05.2014 10:59, Daniel-Constantin Mierla пишет: Hello, dialog module is able to track only dialogs created by INVITE re

Re: [SR-Users] How to remove attribute from SDP ?

2014-05-14 Thread Alex Balashov
Hi Vitaliy, On 05/14/2014 06:51 AM, Vitaliy Aleksandrov wrote: Hello list, Can anybody suggest the way to remove a line/attribute from SDP that matches some pattern (regexp), some kind of "grep -v" for SDP ? I'm trying to remove unnecessary ICE candidates from the SDP body and only thing I kno

[SR-Users] How to remove attribute from SDP ?

2014-05-14 Thread Vitaliy Aleksandrov
Hello list, Can anybody suggest the way to remove a line/attribute from SDP that matches some pattern (regexp), some kind of "grep -v" for SDP ? I'm trying to remove unnecessary ICE candidates from the SDP body and only thing I know is the IP address of the candidate I need to remove. I was t

Re: [SR-Users] Kamailio does not start with #!define WITH_AUTH

2014-05-14 Thread Daniel-Constantin Mierla
Hello, also, as a way to investigate, look into syslog file (/var/log/syslog or /var/log/messages). Cheers, Daniel On 14/05/14 08:40, Konstantin M. wrote: Hello, To find out what the problem is, you need to specify version of Kamailio and attach config. I can't reproduce this bug on 4.1.

Re: [SR-Users] [sr-dev] Kamailio IRC Devel Meeting 2014

2014-05-14 Thread Daniel-Constantin Mierla
Short reminder for those that want to participate to Devel IRC meeting, it's today, at 14:00GMT (16:00 Berlin/Paris/Madrid). Don't forget to add topics if you have something specific to be discussed: - http://www.kamailio.org/wiki/devel/irc-meetings/2014a Cheers, Daniel On 09/05/14 11:05, Dan