Re: [SR-Users] binary name

2011-03-23 Thread Daniel-Constantin Mierla
Hello, ser and sip-router flavours are completely the same, just different names for binaries and tools. Historically, being the initial project, ser stays the default flavour kamailio is different, installing what was traditionally provided by kamailio (openser), one being the database stru

Re: [SR-Users] event_route and acc_db_request().

2011-03-23 Thread Daniel-Constantin Mierla
Hello, On 3/17/11 5:45 PM, Alexandre Abreu wrote: Hello. Why acc_db_request() doesn't work on event_route? I will take a look. Is the BYE generated by dialog timeout or you trigger it by kamctl/xmlrpc? Cheers, Daniel Mar 17 13:15:44 devel kamailio[25209]: INFO:

Re: [SR-Users] Authentication using a PSTN phone

2011-03-23 Thread Daniel-Constantin Mierla
Hello, On 3/17/11 12:59 PM, Miguel Tadeu wrote: Hi, I have a service that requires a user to authenticate, in order to bill him at the end of the service. I also need real- time check of the balance during a call, in order to signal when the amount is too low to continue the call. Is this poss

Re: [SR-Users] RTPPROXY timeout patch.

2011-03-23 Thread Carsten Bock
Hi all, by the way, the RTPProxy-Repository already contains a fix for this: author sobomax Sun, 27 Feb 2011 03:26:31 + (19:26 -0800) Move initialization of the notification thread after the rtpp_daemon() call. Threads started before fork(2) may not remain running afterwards. Reported by

[SR-Users] RES: event_route and acc_db_request().

2011-03-23 Thread Alexandre Abreu
Hello Daniel. The BYE is generated by kamctl/xmlrpc (dlg_terminate_dlg). Alexandre De: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Enviada em: quarta-feira, 23 de março de 2011 04:55 Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Cc: Alexandre Ab

Re: [SR-Users] RES: event_route and acc_db_request().

2011-03-23 Thread Daniel-Constantin Mierla
Hello, On 3/23/11 1:44 PM, Alexandre Abreu wrote: Hello Daniel. The BYE is generated by kamctl/xmlrpc (dlg_terminate_dlg). is xmlrpc via mi_xmlrpc or via xmlrpc module? I have to double check, but looks very likely to be the fact that acc db connection was not initialized for MI/RPC childre

Re: [SR-Users] binary name

2011-03-23 Thread Claudio Furrer
> Hello, > > ser and sip-router flavours are completely the same, just different names for > binaries and tools. Historically, being the initial project, ser stays the > default flavour I can't get different names for binaries and tools, ser flavour or sip-router flavour give me always "sbin/ser

[SR-Users] RES: event_route and acc_db_request().

2011-03-23 Thread Alexandre Abreu
Hello Daniel. The module being used is 'mi_xmlrpc.so' I am using the Carsten's rtpproxy patch. RTPPROXY detects the media timeout and send a notification through XMLRPC lib with 'dlg_terminate_dlg callid' to Kamailio. After that, I configured the event_route to catch the local generated requests f

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Spinov Evgeniy
Hi, I've installed, as you advised Kamailio 3.1.2 and used msg_apply_changes(). However, even when I'm not changing anything in the packet and just calling msg_apply_changes() I get errors from K: 7(31755) : [msg_translator.c:519]: ERROR: lump_check_opt: null send socket 7(31755) : [msg_trans

Re: [SR-Users] binary name

2011-03-23 Thread Daniel-Constantin Mierla
Hello, On 3/23/11 2:33 PM, Claudio Furrer wrote: Hello, ser and sip-router flavours are completely the same, just different names for binaries and tools. Historically, being the initial project, ser stays the default flavour I can't get different names for binaries and tools, ser flavour or si

Re: [SR-Users] RES: event_route and acc_db_request().

2011-03-23 Thread Daniel-Constantin Mierla
Hello, On 3/23/11 2:36 PM, Alexandre Abreu wrote: Hello Daniel. The module being used is 'mi_xmlrpc.so' ok, this one creates a new process for handling xmlrpc requests. It is pretty much clear that is very likely what I suspected first time. If you have time, try load instead xmlrpc module a

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Daniel-Constantin Mierla
Hello, I have to look into the sources and doubel check, but the log messages seem to be harmless. For the moment, you can just set a flag when you change something in the message and then call msg_apply_changes() only when the flag is set, e.g., remove_hf("From"); setflag(20); ... if(isf

Re: [SR-Users] binary name

2011-03-23 Thread Claudio Furrer
> > The sercmd is always with this name, even for kamailio flavour, since it is > kind of separate application. What changes are the ctl tools, like kamctl or > serctl. Yes, you're right. Only ctl tools changes. > > > Only by modifying the Makefile.defs, the flavour variable get a binary > > na

[SR-Users] RES: RES: event_route and acc_db_request().

2011-03-23 Thread Alexandre Abreu
Hi Daniel, Look the request/reply. <...> . . mi dlg_terminate_dlg. . 065fa668d8485f33. . . <...> faultCode 500 faultString Method Not Found This is module xmlrpc handling the POST at route[XMLRPC]. I am not sure if I understand correctly how you suggested the use of 'mi dlg_termina

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Spinov Evgeniy
On Wed, 2011-03-23 at 15:16 +0100, Daniel-Constantin Mierla wrote: Well, unfortunately no. When I use msg_apply_changes() and I see this messages, signalization doesn't work fine. Actually call is not being established - it's just getting timeouts from K and failure routes are being executed. As

Re: [SR-Users] [Kamailio-Users] Rewrite $tU

2011-03-23 Thread Daniel-Constantin Mierla
Hello, if you watch the SIP traffic with ngrep, do you see the message sent out? Can you reproduce this case easily? If yes, can you start kamailio with extra parameters '-E -ddd' and send here all the debug messages printed for such case, from the moment the SIP request is received. Cheers,

Re: [SR-Users] binary name

2011-03-23 Thread Daniel-Constantin Mierla
On 3/23/11 3:28 PM, Claudio Furrer wrote: The sercmd is always with this name, even for kamailio flavour, since it is kind of separate application. What changes are the ctl tools, like kamctl or serctl. Yes, you're right. Only ctl tools changes. Only by modifying the Makefile.defs, the flavo

Re: [SR-Users] RES: RES: event_route and acc_db_request().

2011-03-23 Thread Daniel-Constantin Mierla
Hello, the method name is 'mi' then the first parameter is dlg_terminate_dlg and the next parameters are the ones required by the dlg_terminate_dlg. The XMLRPC command 'mi' is to execute commands from the old control interface that we named MI: http://kamailio.org/docs/modules/stable/module