Re: [SR-Users] kamailio and virtual IP

2013-06-13 Thread Victor Torre Antunez
If you run kamailio under Linux, you could change this kernel parameter: # *echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind * http://linux-ip.net/html/adv-nonlocal-bind.html If set, allows processes to bind() to non-local IP addresses. I tested in Kamailio 3.x.x (I don´t remember wich version) and

[SR-Users] kamailio and virtual IP

2013-06-13 Thread Mino Haluz
Hi, I want to do this: 2 hosts, with 2 running kamailios, every host has 1 IP address and hostA has virtualIP assigned. kamailio should run on both hosts. I made a script which can transfer virtual IP from hostA to hostB. The problem is, I cannot tell kamailio to use virtualIP on hostB because,

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Good day people, I downloaded the source code for Kamailio on my CentOS 6 server and did the following : Modified the modules.ls to add db_mysql and app_python. Did the make all Did the make install Copied the configuration and had the same result. Seeing this, I installed myself a copy of ubun

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Could you please compress and attach core file. 2013/6/13 phil lemelin > Ok, I disabled WITH_MYSQL and left loadmodule "app_python.so" at the end > of all the other loadmodule directive and here is the output: > > 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: app_python > 0(3572) DEBUG:

[SR-Users] ds_is_from_list does not work in my code

2013-06-13 Thread Mino Haluz
Hi, what this function in fact does? It only compares host from dispatcher list and $si ? or it compares with source port as well ? I'm distributing traffic across multiple gateways with dispatcher module, these gateways create another leg and send it back to proxy. I would like to compare it wit

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Ok, I disabled WITH_MYSQL and left loadmodule "app_python.so" at the end of all the other loadmodule directive and here is the output: 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: app_python 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: mi_fifo 0(3572) DEBUG: mi_fifo [mi_fifo.c:124]

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Yes, you're correct. Default values are: modparam("app_python", "script_name", "/usr/local/etc/sip-router/handler.py" modparam("app_python", "mod_init_function", "mod_init") modparam("app_python", "child_init_method", "child_init") But app_python is nothing related to db_mysql. Anyways, see my te

Re: [SR-Users] How to lock hashtable variable

2013-06-13 Thread Mino Haluz
Ok so this is my case: I have rtimer which checks for shv(startload) variable. If it is set, it will run LOAD_DATA route which deletes the hashtable a fills with fresh data from database. These hashtables contains prefixes and some custom data. So I'm afraid when doing an update, data can be incon

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
If i remove ' loadmodule "app_python.so" ', Kamailio starts just fine. This only appears when the app_python module is loaded. Is there anything else than mysql to enable when using the app_python ? Here is the ouput when I only enable mysql. The module is loaded and there are no issues... *

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Andrew Mortensen
On Jun 13, 2013, at 7:23 AM, phil lemelin wrote: > Good morning, > > I'm trying to use the app_python module with Kamailio but i'm unable to even > reach a point where it loads my python module. It's actually failing even before that. It's unable to load the db_mysql module: > 0(751) DEBUG

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
As describe in my original post: The installed packages: [root@host ~]# rpm -qa | grep kamai kamailio-4.0.1-1.1.x86_64 kamailio-mysql-4.0.1-1.1.x86_ 64 kamailio-python-4.0.1-1.1.x86_64 So, Kamailio 4.0.1-1.1 My understanding is that the default values are the following: modparam("app_python", "

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Hello, What version of kamailio are you using ? It is not enough just to add 'loadmodule "app_python.so"'. This module have to be configured properly. For example: modparam("app_python", "script_name", "/path/to/python/file.py" modparam("app_python", "mod_init_function", "mod_init") modparam("app_

[SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Good morning, I'm trying to use the app_python module with Kamailio but i'm unable to even reach a point where it loads my python module. My host: CentOS release 6.3 (Final) 2.6.32-042stab076.7 x86_64 The installed packages: [root@host ~]# rpm -qa | grep kamai kamailio-4.0.1-1.1.x86_64 kamaili

Re: [SR-Users] Lync Client through Kamailio

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/13/13 10:27 AM, Jens Grönningberg wrote: Hi! Has someone managed to get the Microsoft Lync client communicate with the Lync Server through Kamailio? I tried but the Lync Server behaved differently, refusing to send BENOTIFY requests. This caused presence not to work properly, and I

Re: [SR-Users] automatic call termination when websocket connection is closed

2013-06-13 Thread Peter Dunkley
Hello, I think the only way to do this would be to use the dialog module. However, as far as I know the appropriate dialog function (dlg_bye) needs to be run from a route where the SIP message is within the dialog in question. In other words, there is no way you could run this from event_route[w

[SR-Users] automatic call termination when websocket connection is closed

2013-06-13 Thread Iwan Budi Kusnanto
Related to 'Doing automatic unregister when a WEBSOCKET connection is closed' thread. http://sip-router.1086192.n5.nabble.com/Doing-automatic-unregister-when-a-WEBSOCKET-connection-is-closed-td118083.html Any hint to implement automatic call termination when websocket connection is closed? Some o

[SR-Users] Lync Client through Kamailio

2013-06-13 Thread Jens Grönningberg
Hi! Has someone managed to get the Microsoft Lync client communicate with the Lync Server through Kamailio? I tried but the Lync Server behaved differently, refusing to send BENOTIFY requests. This caused presence not to work properly, and IM not to work at all. I would be happy to hear if someone

Re: [SR-Users] To simply run a route from externally

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/13 8:25 AM, Mino Haluz wrote: Hi, I need to update some hash tables inside kamailio, but this update should be triggered externally. I know there is xmlrpc or xhttp, but I am just curious if there is some easier way how to run this route. I have to run it instantly, so setti

Re: [SR-Users] Kamailio 4.0.1 presence support

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/11/13 2:49 PM, Rupayan Dutta wrote: Hello, I've been trying to make the Presence thing work with kamailio 4.0.1 and SipML5 browser client .I have loaded only the modules which are already in the Kamailio.cfg file loadmodule "presence.so" loadmodule "presence_xml.so" Is

Re: [SR-Users] How to lock hashtable variable

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/13 9:04 AM, Mino Haluz wrote: Hi, I need to lock the hashtable but this lock("$sht(a)"); does not work. Any hints? htable locks are inside the code and per slot, not per hash table, why you would need to lock it? For synchronous access in config file, you can use the locks f

Re: [SR-Users] [sr-dev] Register VoIP phones with Kamailio server

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/13 8:35 AM, Ravindra Gowda wrote: Dear Daniel, Thank you for your previous reply. I am working on Kamailio (V 4.0) server to bring up VoIP features (Voice call, SMS) on my Hand-held, Wi-Fi enabled devices (Which are not GSM supportable). 1) I would like you to confirm that,

Re: [SR-Users] TLS questions

2013-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/13 3:50 PM, Fabian Borot wrote: Hi, please help me out with these questions: Is it possible to configure kamailio to use different certificates, one per peer? Do we just add them to the same "calist.pem" file? look at tls.cfg structure, you can define sections for various case

[SR-Users] RPM packages for v4.0.2

2013-06-13 Thread Daniel-Constantin Mierla
Hello, rpm packages for v4.0.2 are no available on opensuse build service - more details and download links at: - http://www.kamailio.org/wiki/packages/rpms Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda K