Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
Juha Heinanen writes: > my next guess is that this has something to do with amd64 architecture > of the host. perhaps the sizes of ints/pointers/etc are not what the > code somewhere expects? i added check on length of int and pointer: LM_INFO("got <%.*s>\n", res.rs.len, res.rs.s);

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > 0(11244) ERROR: [sr_module.c:572]: ERROR: load_module: could not > > open module : libkmi.so.1: cannot > > open shared object file: No such file or directory > > > > when the file definitely exists: > > > > /usr/lib/sip-proxy/modules# ls -ls dialplan.so > >

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Daniel-Constantin Mierla
On 8/31/12 9:20 PM, Juha Heinanen wrote: other weird thing is that when i tried to add more debug output to dialplan module and compiled dialplan module separately on another host (the same one where the debian package installed on this test host has been built) and then copied it to the host (v

Re: [SR-Users] Rtpproxy re-INVITE handling

2012-08-31 Thread Spencer Thomason
Completely understandable :-). I'm currently our of the office until Wednesday but I will collect logs with a trace upon my return. Connected by DROID on Verizon Wireless -Original message- From: Daniel-Constantin Mierla To: Spencer Thomason Cc: "SIP Router - Kamailio (OpenSER) and

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
other weird thing is that when i tried to add more debug output to dialplan module and compiled dialplan module separately on another host (the same one where the debian package installed on this test host has been built) and then copied it to the host (virtual machine) where these tests are done,

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
> Aug 31 21:57:21 wheezy2 /usr/sbin/sip-proxy[9733]: INFO: Translating > <+35892345670> based on dpid 4 > Aug 31 21:57:21 wheezy2 /usr/sbin/sip-proxy[9733]: INFO: Found attrs > <598400320> the result in attrs is pretty much random. sometimes i get the right result and sometimes not. it does n

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you set $var(plan) to a static string value before dp_translate() > just to see if the value is updated in the function? i now have: xlog("L_INFO", "Translating <$var(calling_number)> based on dpid 4\n"); $var(plan) = "something"; if (dp_transl

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread Daniel-Constantin Mierla
Hello, great that you sorted out and thanks for posting the results so others can learn from them when searching the archive. Cheers, Daniel On 8/31/12 6:18 PM, patrice.bode...@orange.com wrote: Hello, I find my error finally in my configuration. The initial setting was only modparam("aut

Re: [SR-Users] Rtpproxy re-INVITE handling

2012-08-31 Thread Daniel-Constantin Mierla
Hello, the command to rtpproxy for the reply seem to miss the to-tag, can you grab the ngrep trace for such call and the logs for processing it? Having the logs from a different call than the ngrep trace you posted on pastebin is not helping much. Cheers, Daniel On 8/31/12 6:49 PM, Spencer

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Daniel-Constantin Mierla
I checked the commit log and there was no change in the module. Failure to set the attrs variable is printing a error message, so looks like the variable is set. Can you set $var(plan) to a static string value before dp_translate() just to see if the value is updated in the function? Cheers,

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > What version are you using? Is it happening to get the right value > from time to time? this is with a few days old trunk: version: sip-proxy 3.4.0-dev3 (x86_64/linux) i have seen it sometimes to set attrs pvar correctly, but most times not. > If you set hig

Re: [SR-Users] Rtpproxy re-INVITE handling

2012-08-31 Thread Spencer Thomason
Yes, The request (re-INVITE): Aug 30 22:38:59 sip /usr/sbin/kamailio[25778]: ERROR: *** cfgtrace: c=[/etc/kamailio/kamailio.cfg] l=471 a=25 n=rtpproxy_manage Aug 30 22:38:59 sip rtpproxy[25671]: DBUG:handle_command: received command "25778_11 U 1952045641-6076...@ba.fj.b.cfc 184.170.249.3 3

Re: [SR-Users] weird dp_translate result

2012-08-31 Thread Daniel-Constantin Mierla
Hello, What version are you using? Is it happening to get the right value from time to time? If you set higher debug mode, is it printing the message that a rule was matched? Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com On 31 Aug 2012, at 18:15, Juha Heinanen wrote: >

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread patrice.bodeven
Hello, I find my error finally in my configuration. The initial setting was only modparam("auth", "auth_checks_register", 6) # callid and From TAG I forgot to set also the other auth_checks on no_dlg and in_dlg. modparam("auth", "auth_checks_no_dlg", 6) # callid and From TAG modparam("auth

[SR-Users] weird dp_translate result

2012-08-31 Thread Juha Heinanen
i have this piece of config code: modparam("dialplan", "attrs_pvar", "$var(plan)") ... xlog("L_INFO", "Translating <$var(calling_number)> based on dpid 4\n"); if (dp_translate("4", "$var(calling_number)")) { xlog("L_INFO", "Found attrs <$var(plan)>\n"); ... dpid 4 has thr

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread Daniel-Constantin Mierla
Hello, On 8/31/12 5:08 PM, Daniel-Constantin Mierla wrote: Hello, I will look over the code, I just wanted to point that it is safer to print by size in this case, otherwise it can get coredump, even if the printed characters are not ascii, like: DBG("auth:pre_auth:api.c:nonce.c Invalid no

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread Daniel-Constantin Mierla
Hello, I will look over the code, I just wanted to point that it is safer to print by size in this case, otherwise it can get coredump, even if the printed characters are not ascii, like: DBG("auth:pre_auth:api.c:nonce.c Invalid nonce (nonce %.*s)\n", &b_nonce.n.md5_1[0], 16); Otherwise DB

Re: [SR-Users] invite/ack avps/transactions

2012-08-31 Thread Daniel-Constantin Mierla
Hello, On 8/31/12 3:13 PM, Juha Heinanen wrote: i tried to access an avp that was set during invite processing while processing ack to 200 ok, but i guess the avp is already gone by that time, because positive ack is its own transaction? what i tried to do is to save somewhere invite's $du and

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread patrice.bodeven
Hello The return code is 2. The problem seems due to "nonce.c" if (!memcmp(&b_nonce.n.md5_1[0], &b_nonce2.n.md5_1[0], 16)) { xxx } So I put DBG("auth:pre_auth:api.c:nonce.c Invalid nonce (nonce %s)\n", &b_nonce.n.md5_1[0]); DBG("auth:pre_auth:api.c:nonce.c Invalid nonce (no

[SR-Users] invite/ack avps/transactions

2012-08-31 Thread Juha Heinanen
i tried to access an avp that was set during invite processing while processing ack to 200 ok, but i guess the avp is already gone by that time, because positive ack is its own transaction? what i tried to do is to save somewhere invite's $du and then t_relay ack to the same place without calling

[SR-Users] LCR (next_gw) question

2012-08-31 Thread Juha Heinanen
Nord7 writes: > Hello everyone. Configures the module LCR. I can't get him to take the next > on the list of priorities gateway if the first does not work. Function > "next_gw" capable of doing that? Did anyone realties that? If possible show > example. you first call load_gws and then next_gw fo

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Fred Posner
When I first got into VoIP, my knowledge was less than stellar. The main decision make and I had believed that if we hired quality (and not cheap) SME we would be given great information and the money spent would pay for itself. We ended up working with a broadsoft system and an acme packet sbc.

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Alex Balashov
Also, Kamailio's procedural route script language is a major asset of its particular methodology. While it can sometimes be a pain for newbies trying to do relatively simple, canonical kind of things, the flexibility it affords in scripting SIP outcomes on a very granular level, and providing

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Alex Balashov
Commercial SBCs are quite featureful, but their feature set is extremely static, and often depends on vendor consulting and expertise to be approachable. Nobody claimed the open-source solutions are simple to support or don't require expertise. They're not free, either, as everyone well knows

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Neill Wilkinson
I think for a lot of customers its as much about commercial support from vendors (basically the same story for all open source vs. commercial solutions), as it is about technical choice. SBCs are seen as a fix all perimeter control for VoIP. I think as we all know there are many ways to solve a pr

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Andreas Granig
On 08/31/2012 11:10 AM, Olle E. Johansson wrote: >> Sbc also ofer a propritary way of failover for itself >> If node1 die node2 will replace it > > That's been done both with Asterisk and Kamailio (and propably SEMS) for a > very long time. For SEMS it's a commercial module, same goes for the Si

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Tayeb Meftah
Yep Freeswitch too But go tel bt or any big carrier Envoyé de mon iPhone Le 31 août 2012 à 13:11, "Olle E. Johansson" a écrit : > > 31 aug 2012 kl. 11:04 skrev Tayeb Meftah : > >> Hello >> Sbc also ofer a propritary way of failover for itself >> If node1 die node2 will replace it > > That's bee

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Olle E. Johansson
31 aug 2012 kl. 11:04 skrev Tayeb Meftah : > Hello > Sbc also ofer a propritary way of failover for itself > If node1 die node2 will replace it That's been done both with Asterisk and Kamailio (and propably SEMS) for a very long time. /O smime.p7s Description: S/MIME cryptographic signature _

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Tayeb Meftah
Hello Sbc also ofer a propritary way of failover for itself If node1 die node2 will replace it Envoyé de mon iPhone Le 31 août 2012 à 11:47, "Olle E. Johansson" a écrit : > Good discussion! > > In most, but not all, cases it's a political/business decision outside of the > scope of the technic

Re: [SR-Users] Rtpproxy re-INVITE handling

2012-08-31 Thread Daniel-Constantin Mierla
Hello, On 8/31/12 3:41 AM, Spencer Thomason wrote: Hi Daniel, I can confirm that rtpproxy_manage is called. See: http://pastebin.com/ZVXjK9ry I'm seeing ERROR: rtpproxy [rtpproxy.c:2260]: incorrect port 0 in reply from rtp proxy in the logs when processing the 200OK in the re-INVITE. I've in

Re: [SR-Users] spam messages breaking through filters

2012-08-31 Thread Daniel-Constantin Mierla
Hello, after updating the filters on mailing list manager to hold everything marked at list with: X-Spam-Level: * there were two other spam messages, coming with: X-Spam-Level: like: http://lists.sip-router.org/pipermail/sr-users/2012-August/074479.html The content has the spam message, b

Re: [SR-Users] Kamailio - Nonce validity between Register and Invite

2012-08-31 Thread Daniel-Constantin Mierla
Hello, On 8/30/12 10:43 AM, patrice.bode...@orange.com wrote: Hello, Sorry, but i am blocked on the nonce reuse between the Register and the INVITE even with the info provided in debug mode. My understanding is Nonce should be valid between SIP methods until the nonce is valid in the time.

Re: [SR-Users] [OT] the role of SBCs

2012-08-31 Thread Olle E. Johansson
Good discussion! In most, but not all, cases it's a political/business decision outside of the scope of the technichal specifications. A commercial SBC delivers a cloud of magic dust that makes some people feel better and more secure. I have audited several SBC installations that are totally in

[SR-Users] LCR (next_gw) question

2012-08-31 Thread Nord7
Hello everyone. Configures the module LCR. I can't get him to take the next on the list of priorities gateway if the first does not work. Function "next_gw" capable of doing that? Did anyone realties that? If possible show example. Kamailio 3.3 Regards, Kirill