Re: [SR-Users] Releasing Kamailio v4.3.5

2016-03-02 Thread Daniel-Constantin Mierla
Hello, the release is going to be packaged today -- so the usual short info to avoid conflicts with packaging and commits in branch 4.3 -- if anyone plans any backports there, do it before 12:00UTC (noon), after that write first on sr-dev mailing lists. Cheers, Daniel On 01/03/16 08:55, Daniel-C

Re: [SR-Users] question about dlg_var

2016-03-02 Thread Federico Cabiddu
Hi, $dlg_var is not available at this stage of the dialog: http://www.kamailio.org/docs/modules/devel/modules/dialog.html#idp19330392 To achieve your goal you can use there an avp or a flag, which are bound to transactions. Something like: #define INIT_FLAG if (is_method("INVITE") && !has_totag

[SR-Users] question about dlg_var

2016-03-02 Thread 张顺通
I want to distingguish 200 OK is for INVITE or reINVITE。 so I do this: request_route { if (is_method("INVITE") && !has_totag()) { $dlg_var(is_init_invite) = "1"; } } onreply_route { xlog("L_INFO","[$rs-$rr][is_init_invite:$dlg_var(is_init_invite)]"); if (is_method("INVITE"

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tristan Mahé
You're dealing with the signalisation, introducing a webapp driven configuration can lead to some nice timeout/response time issues left to investigate, or create an additional spof... Regarding your example of offering a kamailio hosting service, or dedicated proxies, I would do the absolute oppo

Re: [SR-Users] change the to_tag on send_reply() or sl_send_reply()

2016-03-02 Thread Uri Shacked
*I tried sl_send_reply(), send_reply() and t_reply() (after t_newtran() for the last one).* *all did not work.* *if i send reply before the cancel arrives, yes, no problem.* *but i want to reply to the cancel with 487, and it does not seem to work.* *the only differences between my reply and th

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tim Chubb
Indeed I would have an almost immediate use for such a feature if it was possible, same if you wanted to offer a kamailio hosting service or dedicated proxies per carrier, reseller or customer. It would also make the creation of a kamailio config/dev webapp quite straight forward (install kam,

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tim Chubb
I agree I would and do use automation tools like chef and puppet for that very reason. My original post did leave a fairly important potential benefit to native HTTP loading of config though, that is you could dynamically generate config in a webapp which the mooted 5.0 runtime routing reloadin

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Alex Balashov
On 03/02/2016 02:20 PM, Tim Chubb wrote: Another impetus for wanting to load config from HTTP is that you could serve dynamic config from a web app, i.e. customer specific configs for dedicated proxies Yeah, that's true. I could see that being useful for those exotic cases where a large amoun

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tim Chubb
I wasn't asking for a suggestion, I use a very similar setup myself currently as a matter of fact, server specifics abstracted into includes, simple script to select the right abstraction all under source control. Another impetus for wanting to load config from HTTP is that you could serve dyn

Re: [SR-Users] Handling of messages with manipulated Event header.

2016-03-02 Thread Christopher Vella
Hi Vasiliy! > try this function before search_event: > http://www.kamailio.org/docs/modules/4.3.x/modules/textopsx.html#textopsx.f.msg_apply_changes Thank you for pointing this out. It's exactly what I need. -vella ___ SIP Express Router (SER) and Kam

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tristan Mahé
Chef, Ansible, Puppet, and others, their job is exactly that, ensuring that nodes are configured accordingly, also ensuring that any operation needed for that configuration change is applied ( reloading dispatcher in case of new config, restarting kamailio in case the whole config file changed, ...

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Daniel-Constantin Mierla
Kamailio can read the configuration file from stdin, which obviously useful for redirecting the output of some tool to it rather than typing the whole configuration. So you can do: wget ... http://cfgserver.com/kamailio.cfg | kamailio -f - ... The dots are for the specific parameters. This shou

Re: [SR-Users] Kamailio 5.0 - B2BUA

2016-03-02 Thread Fred Posner
On 03/02/2016 12:45 PM, Alex Balashov wrote: > Hi, > > I wanted to raise the possibility of an inline signalling-only B2BUA > component to Kamailio. > +1 for this... for many reasons including seeing what happens when the following threshold is met: > I myself am philosophically opposed to a B2

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Jason Penton
We use svn to manage the cfgs. The prod instances regularly update svn. On 02 Mar 2016 7:39 PM, "Alex Balashov" wrote: > On 03/02/2016 12:38 PM, Daniel Tryba wrote: > > This problem has been solved by the many configuration management tools >> readily available. >> > > +1, from my vantage point.

[SR-Users] Kamailio 5.0 - B2BUA

2016-03-02 Thread Alex Balashov
Hi, I wanted to raise the possibility of an inline signalling-only B2BUA component to Kamailio. I know that's an extremely poor fit for Kamailio, and not at all what it's supposed to do. And there are many things about the OpenSIPS B2BUA module that reveal how awkwardly it is situated, as a

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Alex Balashov
On 03/02/2016 12:38 PM, Daniel Tryba wrote: This problem has been solved by the many configuration management tools readily available. +1, from my vantage point. -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-

Re: [SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Daniel Tryba
On Wed, Mar 02, 2016 at 05:10:15PM +, Tim Chubb wrote: > As a suggestion for 5.0 being able to load config files from a URL, > with any includes being taken relative to the URL would be a really > handy feature. It would allow a central source for config files in a > cluster and make it a much

[SR-Users] Kamailio 5.0 - Scripted DB Migrations

2016-03-02 Thread Tim Chubb
As a suggestion for 5.0 having a scripted DB migration system would make upgrading much easier. Something like what Asterisk now uses (Alembic https://pypi.python.org/pypi/alembic) would be ideal, as it works in a DB agnostic manner and you would just have to ensure that there is a driver for t

[SR-Users] options_reply() - ruri contains username

2016-03-02 Thread Alex Balashov
Hello, This may have been discussed before, but when options_reply() from the siputils module is used to respond to OPTIONS requests and those OPTIONS requests come in with an RURI containing a user part, the following error is emitted to the logs: LM_ERR("ruri contains username\n"); No

[SR-Users] Kamailio 5.0 - HTTP loading of config files

2016-03-02 Thread Tim Chubb
As a suggestion for 5.0 being able to load config files from a URL, with any includes being taken relative to the URL would be a really handy feature. It would allow a central source for config files in a cluster and make it a much simpler process to push out changes to routing to all nodes.

Re: [SR-Users] kamailio 4.3.4 crash

2016-03-02 Thread Rene Montilva
Hi Daniel it was from tarball, i'll wait till tomorrow to check it out On Wed, Mar 2, 2016 at 3:05 AM, Daniel-Constantin Mierla wrote: > Hello, > > using packages/tarball of 4.3.4 or the branch 4.3? > > The were some fixes in the branch to be part of 4.3.5 out tomorrow. > > Cheers, > Daniel >

Re: [SR-Users] Kamailio as a front-end proxy

2016-03-02 Thread Daniel-Constantin Mierla
On 02/03/16 14:19, Anton Tonev wrote: > [...] > > > *A: At the moment I am not very sure but I think that my sip server > does not implement the Path header.* > > Maybe looking at the tutorials about integration with kamailio is going to help: - http://kb.asipto.com/asterisk:index It should

Re: [SR-Users] Kamailio as a front-end proxy

2016-03-02 Thread Anton Tonev
Hello Richard, thank you for the reply. My comments are below between the lines. 2016-03-01 23:09 GMT+01:00 Richard Brady : > You have several options: > > 1. If your SIP server supports an "outbound proxy" configuration, set that > parameter to the IP:port of Kamailio, then it will send all INV

Re: [SR-Users] Kamailio and UCARP with Multiple VIPs defined

2016-03-02 Thread Daniel-Constantin Mierla
Hello, can you see if the socket lists includes the IP address giving problems? Use the command: kamcmd core.sockets_list Cheers, Daniel On 02/03/16 10:14, Jonathan Hunter wrote: > Hi Guys, > > Using Centos 6.7, kamailio 4.2 and Ucarp I am testing multiple VIPs on > the same server and having s

Re: [SR-Users] LCR Commands Kamctl

2016-03-02 Thread Daniel-Constantin Mierla
On 02/03/16 08:54, Juha Heinanen wrote: > Alberto Sagredo writes: > >> I have just edited kamctl in order to make lcr commands work. Hope that >> helps someone. >> >> Using Kamailio 4.3.0 >> >> Please find kamctl attached also > Alberto, > > Thanks for your kamctl contribution. If you like it to

Re: [SR-Users] change the to_tag on send_reply() or sl_send_reply()

2016-03-02 Thread Daniel-Constantin Mierla
On 01/03/16 17:23, Uri Shacked wrote: > >/On 01 Mar 2016, at 16:29, Uri Shacked > wrote: > />//>/Hi, />//>/Is i possible to control the to_tag when i send my own > stateless reply > from kamailio. / > Why would you want to do that?

[SR-Users] Kamailio and UCARP with Multiple VIPs defined

2016-03-02 Thread Jonathan Hunter
Hi Guys, Using Centos 6.7, kamailio 4.2 and Ucarp I am testing multiple VIPs on the same server and having some issues. I have ucarp running, with 1 Public and 1 Private VIP defined, and both are pingable and failover in a cluster. The Public is for Subscribers to Register with, and the Private