Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1

2010-10-19 Thread Huy Nguyen
Hi Daniel and all list, Thanks for your support, but as the below diagram, i still have some confused: xmmp-user --- xmpp-server -- xmpp-to-sip-gateway --- sip-to-xmpp-gateway sip-server --- sip-user - if we use the server mode: the xmpp-to-sip-gateway and sip-to-x

[SR-Users] Crash on processing dialog BYE

2010-10-19 Thread Alex Balashov
We had another one of these today, under high call volume: (gdb) where #0 0x003a60430265 in raise () from /lib64/libc.so.6 #1 0x003a60431d10 in abort () from /lib64/libc.so.6 #2 0x00530a91 in qm_free (qm=0x2b343e1aa000, p=0x2b343eddf6e8, file=0x2b343dd860c3 "dialog: dlg_has

[SR-Users] pdb_query dstavp argument

2010-10-19 Thread Juha Heinanen
why dstavp argument of pdb_query() needs to be an avp? why a var is not accepted? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-

Re: [SR-Users] set cfg variables via sercmd

2010-10-19 Thread Morten Isaksen
Thanks. I forgot to load the cfg_rpc module. On Tue, Oct 19, 2010 at 4:17 PM, marius zbihlei wrote: > On 10/19/2010 05:12 PM, Morten Isaksen wrote: >> >> Kamailio 3.0.3. >> >> I am trying to change a variable (in the cfg variable framwork) from >> sercmd, but I get an error >> >> [r...@sip-core-1

Re: [SR-Users] set cfg variables via sercmd

2010-10-19 Thread marius zbihlei
On 10/19/2010 05:12 PM, Morten Isaksen wrote: Kamailio 3.0.3. I am trying to change a variable (in the cfg variable framwork) from sercmd, but I get an error [r...@sip-core-1 ~]# sercmd cfg.set_now_int recording enabled 1 error: 500 - command cfg.set_now_int not found I have installed readline

[SR-Users] set cfg variables via sercmd

2010-10-19 Thread Morten Isaksen
Kamailio 3.0.3. I am trying to change a variable (in the cfg variable framwork) from sercmd, but I get an error [r...@sip-core-1 ~]# sercmd cfg.set_now_int recording enabled 1 error: 500 - command cfg.set_now_int not found I have installed readline and ncurses which seems to be needed by looking

[SR-Users] check_user_black_list error

2010-10-19 Thread Bruno Machado
Hi I'm using version 1.5.4 and the module userblacklist is not working how I was expecting. The function check_user_black_list() returns the correct value. After some 5 minutes, it changes its return value. I'm blocking users that are not in the table. However, after this time, the functions

Re: [SR-Users] Fwd: Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-19 Thread Daniel-Constantin Mierla
On 10/19/10 10:58 AM, Iñaki Baz Castillo wrote: 2010/10/19 Daniel-Constantin Mierla: The fact is that http uri does not contain domain part usually, It should, at least if such devices want to "interoperate" (a word that doesn't exist in XCAP) with today's XCAP specifications. it is just d

Re: [SR-Users] Fwd: Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-19 Thread Iñaki Baz Castillo
2010/10/19 Daniel-Constantin Mierla : > The fact is that http uri does not contain domain part usually, It should, at least if such devices want to "interoperate" (a word that doesn't exist in XCAP) with today's XCAP specifications. > it is just document/resource reference part. I have seen serv

Re: [SR-Users] Get registration information of a specific subscriber in script

2010-10-19 Thread Adieu
That's what I'm looking for. Thank you very much. Here is my final script: reg_fetch_contacts("location", "sip:gatewaynum...@mydomain.com", "pstn"); if($(ulc(pstn=>count))){ $ru = "sip:" + $rU + "@" + $(ulc(pstn=>addr){uri.host}) + ":" + $(ulc(pstn=>addr){uri.port}); } else { # fa

Re: [SR-Users] Fwd: Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-19 Thread Daniel-Constantin Mierla
Hello Andrey, seems ok, I will give some more thoughts about. At the end of the day, it is your decision as administrator how you enforce the xcap-uri format and authentication/authorization. The fact is that http uri does not contain domain part usually, it is just document/resource refere

Re: [SR-Users] Fwd: Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-19 Thread Daniel-Constantin Mierla
Hello, the module parses inside the xcap uri, but you can build a custom one in config and give it as parameter to xcap server functions. In this way you can do normalization, sanity checks, etc. For these kind of operations I added a variable that can be used to access parts of an xcap uri

Re: [SR-Users] #!endif and SUBSCRIBE issues 3.0.x

2010-10-19 Thread Daniel-Constantin Mierla
Hello, On 10/17/10 3:52 PM, Alex Balashov wrote: On 10/17/2010 05:39 AM, Jeremya wrote: I've discovered - after quite a while - that #!endif doesn't work if there is extra text on the line #!endif works #!endif # someblock doesn't work. Yep, we've noticed it too. core cookbook is open

Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1

2010-10-19 Thread Daniel-Constantin Mierla
Hello, as said in a previous email, first you have to use last git version of kamailio_3.0 branch. There was a fix for xmpp module since release of 3.0.1. Also you can switch to 3.1.0, or wait few days untill 3.0.4 is released. You have to think the architecture like: xmmp-user --- xmp

Re: [SR-Users] Fwd: perl_exec() using parameter?

2010-10-19 Thread Daniel-Constantin Mierla
Hello, On 10/15/10 5:21 PM, "Nicolas Rüger" wrote: Hello, just realized that something like the following works now with kamailio v3.1... perl_exec("mytest",$fu); Whoever changed it...THANK YOU :) right, this is probably due to Andrei's new API for module functions that id

Re: [SR-Users] Fwd: perl_exec() using parameter?

2010-10-19 Thread Daniel-Constantin Mierla
Hello, On 10/15/10 3:43 PM, "Nicolas Rüger" wrote: Hello, thanks for adding it to the list. The feature would help me a lot. In the meanwhile... I tried to use AVPs instead, but didn't work. I guess I use them in a wrong way...!? $avp(i:3) = $fu; perl_exec("mytest","$avp(i:3)");

Re: [SR-Users] Get registration information of a specific subscriber in script

2010-10-19 Thread Daniel-Constantin Mierla
Hello, the lookup("location") is the one that you look for. In this particular case, you have to make a backup of r-uri username, change it with spa3102 username, do location lookup and then set back the r-uri username with pstn number and relay. There is a function to fetch details of regi