Re: [SR-Users] MSRP question

2016-04-01 Thread Daniel-Constantin Mierla
If the config file is too big, then it is not easy to analyze anyhow. Can you try to run with debug=3 in conifiguration file, then generate some msrp traffic to see if you can spot some hints of what happens from syslog messages? Cheers, Daniel On 31/03/16 15:53, Hussein Said wrote: > Thank you

Re: [SR-Users] Stateful Outbound Proxy...

2016-04-01 Thread Daniel-Constantin Mierla
Hello, yes -- if you use t_relay() to send out the SIP requests, then kamailio acts as a stateful proxy. If you use record_route() and loose_route() in kamailio.cfg (the default kamailio.cfg uses them, so you can look at it if you started something from scratch), then requests within dialog end t

Re: [SR-Users] SQlite DB Lock with Presence

2016-04-01 Thread Daniel-Constantin Mierla
On 31/03/16 21:05, David Holl wrote: > I'm curious why the kamailio sqlite module doesn't export a > transaction API, especially since the native sqlite API does support > transactions according to https://www.sqlite.org/transactional.html > Maybe someday, I'd get time to dig into the kamailio

Re: [SR-Users] stateful messages in a dialog

2016-04-01 Thread Daniel-Constantin Mierla
Hello, transaction stateful relaying is done by using t_relay(). For handling them with dialog, use dlg_manage() for those requests. Cheers, Daniel On 30/03/16 14:35, Al S wrote: > Hi, > > > I would like to know how I can make subsequent messages in a dialog > (ACK and BYE) to be stateful. > Yo

Re: [SR-Users] How can I send 404 to the caller instead of BYE?

2016-04-01 Thread Daniel-Constantin Mierla
Hello, not sure I understand properly, but it seems you want to send a response (404) to caller, but the caller hasn't sent any request. Even you would be able to do that, is useless, the caller won't do anything with it. Again, might be my misunderstanding, so re-phrase if you meant something el

Re: [SR-Users] HOW send 4XX to the caller when the callee response to bye is 481 Call leg/transaction does not exist

2016-04-01 Thread Daniel-Constantin Mierla
Hello, the 481 is sent by the caller, meaning it doesn't know the call anymore. To help troubleshooting, you have to send the full sip trace of the call, from initial invite to the bye, including the responses, taken on sip server, in both directions. You can use ngrep, like: ngrep -d any -qt -

Re: [SR-Users] Framework/Lib to create SIP packets

2016-04-01 Thread Daniel-Constantin Mierla
Hello, to add a bit more to the suggestions offered by the others ... if you have the sip packet in a file, you can send it over with protoshoot (included in kamailio at utils/protoshoot/). Maybe more useful will be sipsak, it allows to do a lot of sip stuff from command line -- this should be pa

[SR-Users] Kamailio start up issue

2016-04-01 Thread NITESH BANSAL
Hello, I installed Kamailio 4.3 on debian wheezy machine using debian package from https://www.kamailio.org/wiki/packages/debsThe installation went fine, but I'm unable to start kamailio. It seems that Kamailio is having issue locating the issues.Kamailio installed all the modules in location '

Re: [SR-Users] Kamailio start up issue

2016-04-01 Thread NITESH BANSAL
The error message looks like the following ' ERROR: [sr_module.c:576]: load_module(): could not find module in 0(24421)' Nitesh From: nitesh.ban...@outlook.com To: sr-users@lists.sip-router.org Date: Fri, 1 Apr 2016 12:12:39 +0200 Subject: [SR-Users] Kamailio start up issue Hello, I instal

[SR-Users] Load balancing traffic based on SIP URI

2016-04-01 Thread NITESH BANSAL
Hello, I want to use Kamailio to load balance traffic across multiple asterisks.The problem is that my SIP traffic is related to conference, so if a SIP callfor a particular URI is sent to an Asterisk instance, any subsequent calls for thatSIP URI should be sent to the same Asterisk instance.Is

[SR-Users] Acc INVITE dialog start timing difference

2016-04-01 Thread Dirk Teurlings - Signet B.V.
Hi, I'm seeing a difference in timestamp for acc modules recorderd INVITES and the dialog start event. This is the log entry: Apr 1 12:55:59 host /usr/sbin/kamailio[15642]: INFO:

[SR-Users] Make Kamailio Great Again!

2016-04-01 Thread Alex Balashov
For immediate release: ATLANTA, GA (1 April 2016)--Alex J. Balashov, a self-styled businessman based in Atlanta, Georgia, USA, has a plan to "Make Kamailio Great Again". "Evariste Systems is huge. My name is on the building," said Balashov of his iconic VoIP consulting brand. "And you know what

Re: [SR-Users] Load balancing traffic based on SIP URI

2016-04-01 Thread Alberto Sagredo
I have done something similar as follows if($rU=~"^[0-3][0-9][0-9]$") { $var(valor)=1; } And later.. if(!ds_select_domain("$var(valor)", "4")) { sl_send_reply("500", "Service Unavailable"); xlog("L_INFO","[$fU@$si:$sp]{$rm} Sin destinos disponibles para $rd \n");

[SR-Users] pseudo variables in strings

2016-04-01 Thread Juha Heinanen
If I have a string that contains pseudo variables, e.g,, $var(uri_pattern) = "sip:$f...@tutpro.com"; is it somehow possible to replace them with their values, something like: $var(uri) = eval("$var(uri_pattern)"); -- Juha ___ SIP Express Router (SER

Re: [SR-Users] pseudo variables in strings

2016-04-01 Thread Alex Balashov
‎Juha, Yes, either by separating the PV elements, e.g. $var(x) = $fU + "abc"; ... or with the newer $_s() PV created for this purpose: $var(x) = $_s($fUabc); -- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30309 United States Tel: +1-800-250

[SR-Users] about xml rpc response behavior

2016-04-01 Thread Yasin CANER
Hello;     Xml rpc is useful module for kamailio that improve flexibility and can help to addons. But there is a little problem about it when use non-value response that reply  empty xml or no response so there isnt ack about what happened after command sends. at

Re: [SR-Users] Load balancing traffic based on SIP URI

2016-04-01 Thread Federico Cabiddu
Hi, if I understand correctly your problem is that the first INVITE for a specific URI will go to a server and the conference will be instantiated there. Then you must route all the INVITEs from the other participants to the same server, is it right? If this is the case why not use algorithm 3 in d

Re: [SR-Users] Make Kamailio Great Again!

2016-04-01 Thread SamyGo
I just took a printout of it and will be framing it in my office. :D My vote for Alex B. On Apr 1, 2016 07:27, "Alex Balashov" wrote: > For immediate release: > > ATLANTA, GA (1 April 2016)--Alex J. Balashov, a self-styled > businessman based in Atlanta, Georgia, USA, has a plan to "Make > Kamai

Re: [SR-Users] Load balancing traffic based on SIP URI

2016-04-01 Thread Alberto Sagredo
Hi Federico. In mi case i have to force some RURIs to a determinate Asterisk . There was some logic to do that instead letting kamailio to handle that situations I haven't tested option 3 , but it must do what you expect i think. Maybe you would need to adjust ds_hash_expire Regards 2016-04-01 1

[SR-Users] Kamailio as a presence server

2016-04-01 Thread Igor Olhovskiy
Hi! I want to create custom Presence server. Main idea - phones subscribes to it (for ex, extension 100@domain). This subscription actually lit BLF button on a phone. But main idea - change status of BLF can arrive from different locations via PUBLISH, I assume. Problem - phones has different type

[SR-Users] KAMAILIO tcp_send query, connection problem

2016-04-01 Thread Ed Todd
KAMAILIO tcp_send query, connection problem I have a KAMAILIO SIP server on a static IP from Comcast, using a modem/router Cisco DPC39412B. I have a PC application server which is successfully signing on to the SIP server, via a LAN cable on the same network as the SIP server (Cisco). In my se

[SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Bruno Emer
Hello all. I have problem here and I tried to find a solution and search over internet, but without success. My scenario is the following: I have an application that must be registered in Kamailio when a user logs in the web interface, so he can get calls (something like a web softphone using web

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Olle E. Johansson
> On 01 Apr 2016, at 21:31, Bruno Emer wrote: > > Hello all. > > I have problem here and I tried to find a solution and search over internet, > but without success. > > My scenario is the following: I have an application that must be registered > in Kamailio when a user logs in the web inter

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Olle E. Johansson
> On 01 Apr 2016, at 21:59, Olle E. Johansson wrote: > > >> On 01 Apr 2016, at 21:31, Bruno Emer > > wrote: >> >> Hello all. >> >> I have problem here and I tried to find a solution and search over internet, >> but without success. >> >> My scenario is the follow

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Bruno Emer
Hello, *Olle!* *Thanks for your help in this case, and don't worry about the time (actually I wasn't even expecting to get an answer today).* *I know the max_contacts parameter. But the problem is that if I set the max_contacts to 2, when the user tries to register again, he gets an error messag

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Olle E. Johansson
> On 01 Apr 2016, at 22:07, Bruno Emer wrote: > > Hello, Olle! > > Thanks for your help in this case, and don't worry about the time (actually I > wasn't even expecting to get an answer today). > > I know the max_contacts parameter. But the problem is that if I set the > max_contacts to 2, w

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Bruno Emer
This is my problem... I want to have 2 contacts for AOR, and not only one. When the 3rd arrives, it must remove the oldest and continue with 2... *If I am using the 0x04 parameter, it will save just one contact, and the user will not be able to get the Invite both, in the mobile device and web in

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Olle E. Johansson
That requires a bit more of reading the same doc page, but I still think you can do it. Run reg_fetch_contacts and check how many you have. Loop through them and unregister by the ruri (id) of the one that expires first if you have too many. We’ve made this function to make the location databas

Re: [SR-Users] Multiple Registrations - Overwrite oldest contact

2016-04-01 Thread Bruno Emer
Sure it is! This is exactly what I was looking for! Actually I wasn't able to see that there was a way to perform this action! Thanks for your help, Olle! I will try to create this, and when I have it done, I will post my script here, so if someone else need the same problem I can help. Now, I

Re: [SR-Users] Trouble initializing TLS on Fedora 23

2016-04-01 Thread Anthony Messina
On Tuesday, January 05, 2016 07:32:32 PM Daniel-Constantin Mierla wrote: > Hello, > > On 02/01/16 03:11, Anthony Messina wrote: > > On Friday, January 01, 2016 04:43:56 PM Bruce Ferrell wrote: > >> On 01/01/2016 03:34 PM, Anthony Messina wrote: > >>> Happy New Year! > >>> > >>> I've just upgraded

Re: [SR-Users] SQlite DB Lock with Presence

2016-04-01 Thread Kristian Kielhofner
I tried this method and seem to have exchanged one set of errors for another: Apr 2 06:30:06 pbx kamailio[9526]: INFO: pua_dialoginfo [dialog_publish.c:386]: dialog_publish_multi(): CALLING dialog_publish for URI sip:9197@192.168.111.216;transport=UDP Apr 2 06:30:06 pbx kamailio[9519]: INFO: pre