Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread MÉSZÁROS Mihály
Hi, Your patch didn't work for me. The kamailio didn't start if i use "if ( _rank != PROC_MAIN)" So i commented out, both if statement, and now "out of sync problem disappeared" --- a/modules_k/usrloc/ul_mod.c +++ b/modules_k/usrloc/ul_mod.c @@ -355,8 +355,11 @@ static int child_init(int _ran

Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread Alex Hermann
On Monday 29 August 2011, MÉSZÁROS Mihály wrote: > Your patch didn't work for me. The kamailio didn't start if i use "if ( > _rank != PROC_MAIN)" > So i commented out, both if statement, and now "out of sync problem > disappeared" That should do the trick, but it might be possible to create a zombi

[SR-Users] Hunting Groups In SIP-Router

2011-08-29 Thread afshin afzali
Hi Guys, I'm newbie in SER. I need to implement a hunting group service in SER. After some digging in the modules I could only find AVPOPS which seems to be able to use. I'll appreciate every advise on this. BEST, -- afshin ___ SIP Express Router (SER)

Re: [SR-Users] Hunting Groups In SIP-Router

2011-08-29 Thread Klaus Darilion
You have to implement it your self. It is called "serial forking". You have to understand how forking (multiple branches) and failure route handling works. Part's of it can be automated using the functions t_load_contacts() and t_next_contacts(), see: http://www.kamailio.org/docs/modules/3.1.x/mo

Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread MÉSZÁROS Mihály
Hi, Thank You Alex for your help! Others? Daniel? Can You please help me? Thanks, Misi 2011-08-29 13:09 keltezéssel, Alex Hermann írta: On Monday 29 August 2011, MÉSZÁROS Mihály wrote: Your patch didn't work for me. The kamailio didn't start if i use "if ( _rank != PROC_MAIN)" So i commented

Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread Alex Hermann
On Monday 29 August 2011, MÉSZÁROS Mihály wrote: > I am experiencing that in usrloc module, still more then one worker > process share the same sql connection: I'm sorry, the first patch was totally bogus. Due to the forking of the childs, they have the same memory layout and a very high chance

[SR-Users] Kamailio as simple SIP proxy between client and SIP server.

2011-08-29 Thread Henrik Aagaard Sørensen
This is my current setup, which works: SIP client <-> SIP server. As I've currently moved to another country I would like to be able to do the following setup: SIP client <-> Kamailio SIP proxy <-> SIP server. As the SIP server only accept packets from specific IP's. Is it possible? I've manage

Re: [SR-Users] Kamailio as simple SIP proxy between client and SIP server.

2011-08-29 Thread Edson - Lists
Hi, Henrik... Sip-Router is "just" a SIP Proxy... but a dam good one... You have to take a step back... You are mixing concepts when affirming that SR is playing SIP-Server roles... Please take a better look on the definitions (SIP-Proxy, SIP-Server, Registrar, etc) and find wich system play

Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread MÉSZÁROS Mihály
Hi, I find the following: grep "con: 17212" Aug 29 17:05:27 hal /usr/sbin/kamailio[24001]: INFO: db_mysql [km_dbase.c:83]: submit_query: con: 17212 table: location query: insert into location (username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,la

Re: [SR-Users] Kamailio as simple SIP proxy between client and SIP server.

2011-08-29 Thread Edson - Lists
Hi, Henrik... Please, never, ever, forget to copy the list in a thread initiated there... other may be "curious" on it... ;) About your configuration, it seems that you just need a 'simple forward' server. It's very simple to accomplish... Make a simple forward configuration script (you can

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
i started to test sr presence and for some reason sr does not send out any publish request when i issue one via pua_mi. i have in route [xmlrpc_requests]: xlog("L_INFO", "Handling XMLRPC $rm from <$si> with body <$(rb{re.subst,/[\n\r\t]//g})>\n"); set_reply_no_connect(); set_reply_cl

[SR-Users] parse errors in rr-callback of path module

2011-08-29 Thread Andreas Granig
Hi, path module calls register_rrcb when "use_received" is set to 1 to extract the "received=" param and set its content as dst-uri if present. Now I've noticed that when e.g. a message has a pre-loaded route like "Route: ", then kamailio (at least 3.1.3) spits the following error message: /usr/

[SR-Users] Siremis User Role permissions

2011-08-29 Thread Camila Troncoso
Hi, I have a question about the assignment of Role permissions to limit some Users privileges in Siremis. I defined a user , and then a Role denying some actions, but I couldn’t deny the action from de SER menu . The Role permissions only show the modules on Application Menu from Administration

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
i added some debug to pua_mi/mi_pua_publish() function and pua/send_publish() function and got to syslog: Aug 29 20:57:41 sip /usr/sbin/pres-serv[3861]: INFO: pua_mi [mi_func.c:254]: send publish Aug 29 20:57:41 sip /usr/sbin/pres-serv[3861]: INFO: pua [send_publish.c:403]: pres_uri=sip:j...@vm.

[SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Juha Heinanen writes: > pua/send_publish() function and it spits out 418 in this piece of code: > > presentity= search_htable(&pres, hash_code); > if(publ->etag && presentity== NULL) > { > lock_release(&HashT->p_records[hash_code].lock); > return 418;

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Daniel-Constantin Mierla
Hello, On 8/29/11 8:49 PM, Juha Heinanen wrote: Juha Heinanen writes: pua/send_publish() function and it spits out 418 in this piece of code: presentity= search_htable(&pres, hash_code); if(publ->etag&& presentity== NULL) { lock_release(&HashT->p_recor

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > looking at the xmlrpc command content, I see the E-Tag value set, for > the first publish, shouldn't it be empty and the presence server returns > the value to be used later for updates? daniel, my app that sends mi pua publish, takes etag from presentity tab

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Daniel-Constantin Mierla
On 8/29/11 10:06 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: looking at the xmlrpc command content, I see the E-Tag value set, for the first publish, shouldn't it be empty and the presence server returns the value to be used later for updates? daniel, my app that sends mi pua

Re: [SR-Users] SEMS 1.4.2 released

2011-08-29 Thread Stefan Sayer
Hello, o Daniel-Constantin Mierla on 08/28/2011 09:31 AM: Hello, > ... is there any site kept updated with documentation or just some folder in the source tree? the combined documentation http://ftp.iptel.org/pub/sems/doc/current/index.html which is linked from the main SEMS site at ht

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The presentity table is built when a PUBLISH is received, did you sent > another PUBLISH before so that you have a record in this table? Or how > was it added in this table so that you could get the etag value? there are several sources that can send publish f

Re: [SR-Users] parse errors in rr-callback of path module

2011-08-29 Thread Daniel-Constantin Mierla
Hello, On 8/29/11 7:17 PM, Andreas Granig wrote: Hi, path module calls register_rrcb when "use_received" is set to 1 to extract the "received=" param and set its content as dst-uri if present. Now I've noticed that when e.g. a message has a pre-loaded route like "Route:", then kamailio (at lea

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Daniel-Constantin Mierla
On 8/29/11 10:23 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: The presentity table is built when a PUBLISH is received, did you sent another PUBLISH before so that you have a record in this table? Or how was it added in this table so that you could get the etag value? there are

Re: [SR-Users] db_mysql "Commands out of sync; you can't run this command now "

2011-08-29 Thread MÉSZÁROS Mihály
Hi, With this debug i can see that all tcp connections are using the same db connection(18549). Any suggestion highly appreciated! Please read collected information on the bottom of my email. Misi --- a/modules_k/usrloc/Makefile +++ b/modules_k/usrloc/Makefile @@ -8,12 +8,16 @@ include ../..

[SR-Users] registered("location") not working

2011-08-29 Thread Skyler
Hi all, I am attempting to only reply to NOTIFY when the request is originating from a user/device that is authenticated on kamailio already. There are 2 ways I've tried (below) but neither will work. Any idea on what I am doing wrong or suggestions on how to do it right? TIA, Skyler if(is

Re: [SR-Users] registered("location") not working

2011-08-29 Thread Alex Balashov
On 08/29/2011 07:28 PM, Skyler wrote: Hi all, I am attempting to only reply to NOTIFY when the request is originating from a user/device that is authenticated on kamailio already. There are 2 ways I've tried (below) but neither will work. Any idea on what I am doing wrong or suggestions on

Re: [SR-Users] registered("location") not working

2011-08-29 Thread Skyler
Hi, On Mon, 2011-08-29 at 19:32 -0400, Alex Balashov wrote: > It sounds like there might be a mismatch. For instance, if the > registered AOR were 'sip:sky...@chopperguy.com' but the request line > of the NOTIFY message said 'sip:skyler@1.2.3.4:5060', registered() > wouldn't match. > > Cheers

Re: [SR-Users] registered("location") not working

2011-08-29 Thread Skyler
Sorry, that was a stupid question. My question should be, how do I rewrite $fu so that registered can look it up successfully? ie: strip sip: from $fu first? On Mon, 2011-08-29 at 16:53 -0700, Skyler wrote: > Hi, > > On Mon, 2011-08-29 at 19:32 -0400, Alex Balashov wrote: > > It sounds like t

Re: [SR-Users] no publish from pua/pua_mi to outbound proxy

2011-08-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > >> In the xmlrpc command, there was an etag value, have you tried with '.' > >> as etag? > > i haven't tried with "." etag yet. i'll try that tomorrow. mi pua publish from different UAs on same presentity seems to work ok, when UAs always use "." as tag param.