Re: [SR-Users] python sample

2012-10-22 Thread Victor Seva
Hi, 2012/10/22 Vadim F. : > Hi all, > > Could you please give a Kamailio's routing logic sample for python ? > Thx modules/app_python/handler.py [0] But my advise is that if the task is not very simple, use lua. My 2 cents. [0] http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob

[SR-Users] udp transport in rtpproxy sockets

2012-10-22 Thread Juha Heinanen
rtpproxy module readme gives impression that udp transport is the only possibility: 4.1. rtpproxy_sock (string) Definition of socket(s) used to connect to (a set) RTPProxy. It may specify a UNIX socket or an IPv4/IPv6 UDP socket. if that is the case, what is the justification for it, i.e, why is

Re: [SR-Users] rtpproxy delete fails

2012-10-22 Thread Daniel-Constantin Mierla
On 10/19/12 9:40 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: But in this case the call is completed, because negative response codes are absorbed by tm, 200ok being sent back, so no need to destroy any rtp session. iirc, for all branches of a parallel fork there is one rtp sessio

Re: [SR-Users] rtpproxy delete fails

2012-10-22 Thread Daniel-Constantin Mierla
Hello, you can commit, but add it also to force_rtp_proxy, where it should be just ignored -- in this way rtpproxy_manage() can be used for all requests and replies with same parameter. Cheers, Daniel On 10/20/12 9:17 AM, Juha Heinanen wrote: the patch below adds 't' flag to rtpproxy_destro

Re: [SR-Users] Listen on all IPv6 addresses

2012-10-22 Thread Daniel-Constantin Mierla
Hello, have you set the config parameter for it? http://www.kamailio.org/wiki/cookbooks/devel/core#auto_bind_ipv6 Cheers, Daniel On 10/19/12 7:21 PM, Anton Kvashenkin wrote: Hello guys. In the Kamailio v.3.3.0 release notes http://www.kamailio.org/w/kamailio-v3-3-0-release-notes/ it says:

Re: [SR-Users] Kamailio 3.1.5 crashing during TLS connection setup

2012-10-22 Thread Daniel-Constantin Mierla
Hello, it seems you are having a version of ssl lib that does a free(null) operation. It is fixed in master and 3.3 branch. Can you upgrade to 3.3.x? Alternative is to compile 3.1.x with f_malloc -- edit Makefile.defs and set MEMDBG=0 Or, backport patches from mem/ done last month -- you ca

[SR-Users] Hangup call on leg B side

2012-10-22 Thread pars3c
Hi , i don't know how to realize this: A --- INVITE>proxy INVITE> B <--- 200 OK ---BYE> ---INVITE ->C <--- 200 OK p

Re: [SR-Users] rtpproxy delete fails

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > You can set a transaction flag when you force rtpproxy for a branch, > then in onreply route, if you get a 200ok from a branch not involving > rtp relay and that flag is set, then destroy the rtp relaying session. that is exactly what i tried to do, but it req

Re: [SR-Users] Hangup call on leg B side

2012-10-22 Thread Alex Balashov
This is impossible, by definition, with a proxy. That is because a proxy is a proxy, not a back-to-back user agent (B2BUA), so it does not create two different, logically independent call legs and bridge them. Instead, one call leg A comes in, and that same call leg B goes out. On 10/22/2012

Re: [SR-Users] udp transport in rtpproxy sockets

2012-10-22 Thread Andreas Granig
Hi Juha, On 10/22/2012 09:50 AM, Juha Heinanen wrote: > Definition of socket(s) used to connect to (a set) RTPProxy. It may > specify a UNIX socket or an IPv4/IPv6 UDP socket. > > if that is the case, what is the justification for it, i.e, why is tcp > (and better yet tls) transport not supported

Re: [SR-Users] udp transport in rtpproxy sockets

2012-10-22 Thread Juha Heinanen
Andreas Granig writes: > I fully agree that TCP (as a first step) should be a good improvement. > We've already briefly talked about redesigning the overall rtpproxy > control protocol some time ago, but we haven't had the time yet to start > with it, however we've it on our list for December. ok

[SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
lcr_gw table has: ip_addr varchar(47) trusted table has: src_ip varchar(50) address table has: ip_addr varchar(48) why is it that they are not all the same? also, why the common length is not 8 * 4 + 7 = 39 (http://en.wikipedia.org/wiki/IPv6#Address_format)? -- juha __

[SR-Users] Remote Commands

2012-10-22 Thread Ed Brady
Hi, I am trying to get a company who handles our billing and account provisioning connected to our Kamailio instance. I understand that XMLRPC is likely the best method for doing this, but I am unable to find direct commands equivalent to "kamctl add" or "kamctl rm". Is there a resource that lists

Re: [SR-Users] Remote Commands

2012-10-22 Thread Alex Balashov
Such things would most likely be done by database manipulations. XMLRPC/MI are really for the manipulation of more low-level, technical kinds of traits of the proxy process itself. Mostly. On 10/22/2012 11:01 AM, Ed Brady wrote: Hi, I am trying to get a company who handles our billing and a

Re: [SR-Users] Remote Commands

2012-10-22 Thread Ed Brady
Is there a tool available for this or will I need to devise something of my own? Thanks, Ed On Mon, Oct 22, 2012 at 11:03 AM, Alex Balashov wrote: > Such things would most likely be done by database manipulations. XMLRPC/MI > are really for the manipulation of more low-level, technical kinds

Re: [SR-Users] Remote Commands

2012-10-22 Thread Alex Balashov
On 10/22/2012 11:06 AM, Ed Brady wrote: Is there a tool available for this or will I need to devise something of my own? Well, that depends on how you're handling billing and account management. :-) Kamailio provides some built-in modules for handling some aspects of this, though non-trivi

Re: [SR-Users] Remote Commands

2012-10-22 Thread Ed Brady
This is connecting to a completely separate B/OSS that also handles this sort of integration with our other SIP switch (different purpose and software), and with our cellular admin interface. For all of these they have used SOAP APIs as that is what has been available to interface with the other sy

Re: [SR-Users] rtpproxy module flags 1 and 2 question

2012-10-22 Thread Klaus Darilion
Please ask Andreas about those flags - he commited it regards klaus On 17.10.2012 20:18, Juha Heinanen wrote: Juha Heinanen writes: is the setup without the 1/2 flags like this: uac invite -> proxy -> invite -> proxy -> invite -> first uas -> cancel -> proxy -> canc

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 4:11 PM, Juha Heinanen wrote: lcr_gw table has: ip_addr varchar(47) trusted table has: src_ip varchar(50) address table has: ip_addr varchar(48) why is it that they are not all the same? also, why the common length is not 8 * 4 + 7 = 39 (http://en.wikipedia.org/wiki/IPv6#Addr

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > For safety, i would use 48, to allow zero termination why 48 when max length of ipv6 addr is 39 chars? did you mean 40? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@li

Re: [SR-Users] ip address fields

2012-10-22 Thread Richard Fuchs
On 10/22/12 13:59, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> For safety, i would use 48, to allow zero termination > > why 48 when max length of ipv6 addr is 39 chars? did you mean 40? If you use 4-in-6 mapped format, omit zeroes compression and add square brackets, you get 4

Re: [SR-Users] ip address fields

2012-10-22 Thread Olle E. Johansson
22 okt 2012 kl. 19:59 skrev Juha Heinanen : > Daniel-Constantin Mierla writes: > >> For safety, i would use 48, to allow zero termination > > why 48 when max length of ipv6 addr is 39 chars? did you mean 40? It's hard to judge the max length of IPv6, since there are many notations. With IPv4

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 7:59 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: For safety, i would use 48, to allow zero termination why 48 when max length of ipv6 addr is 39 chars? did you mean 40? text representation can use ipv4 format for last 4 bytes: http://tools.ietf.org/html/rfc4291#pa

[SR-Users] turning off rev. dns

2012-10-22 Thread Christopher Holland
I'm setting up Homer with kamailio for sip capturing. I've got it all set up and am getting this error. I have one interface for packet capture on a mirroired port and one interface for managment. I'm thinking that I have to only have kamailio listen on the packet capture interface and not the

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Richard Fuchs writes: > If you use 4-in-6 mapped format, omit zeroes compression and add square > brackets, you get 47 characters: > > [::::::123.123.123.123] why would someone use such a format when there is canonical format specified in http://tools.ietf.org/html/rfc595

Re: [SR-Users] ip address fields

2012-10-22 Thread Richard Fuchs
On 10/22/12 14:14, Juha Heinanen wrote: > Richard Fuchs writes: > >> If you use 4-in-6 mapped format, omit zeroes compression and add square >> brackets, you get 47 characters: >> >> [::::::123.123.123.123] > > why would someone use such a format when there is canonical fo

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Olle E. Johansson writes: > It's hard to judge the max length of IPv6, since there are many > notations. With IPv4 embedded IPv6 the text is expanded. With scoped > addresses where the interface name is added, it grows again. ipv6 is even bigger mesh than what i ever thought. as i wrote, there i

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Then add 3 for the square brackets and the ending 0. where are square brackets specifies? there is nothing about them in http://tools.ietf.org/html/rfc4291. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER

Re: [SR-Users] turning off rev. dns

2012-10-22 Thread Daniel-Constantin Mierla
Hello, that message is printed by the mechanism that tries to discover local hostnames to add them to aliases list. To turn that off, use '-a no' in command line or 'auto_aliases=no' in configuration file. Cheers, Daniel On 10/22/12 8:11 PM, Christopher Holland wrote: I'm setting up Homer

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 8:23 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: Then add 3 for the square brackets and the ending 0. where are square brackets specifies? there is nothing about them in http://tools.ietf.org/html/rfc4291. I gave the link to show the ipv4 representation. Square brac

Re: [SR-Users] ip address fields

2012-10-22 Thread Richard Fuchs
On 10/22/12 14:19, Juha Heinanen wrote: > to me it makes sense to store addresses only in canonical format to > database in order to make sure that address comparison can be made > uniquely. Using the string representation of an address for anything other than to provide a human readable version

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I gave the link to show the ipv4 representation. Square brackets are > commonly used in ipv6 representations, specially in url/uri -- wikipedia > link you provided mentions that.. yes, but when they are used in url, square brackets are not part of the address.

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 8:19 PM, Juha Heinanen wrote: Olle E. Johansson writes: It's hard to judge the max length of IPv6, since there are many notations. With IPv4 embedded IPv6 the text is expanded. With scoped addresses where the interface name is added, it grows again. ipv6 is even bigger mesh than w

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > text representation can use ipv4 format for last 4 bytes: > > http://tools.ietf.org/html/rfc4291#page-4 > > common for cases when tunneling ipv4 over ipv6. > > That is: > > (6 * 4 + 5) + 1 + (4 * 3 + 3) = 45 > > Then add 3 for the square brackets and th

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 8:36 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: I gave the link to show the ipv4 representation. Square brackets are commonly used in ipv6 representations, specially in url/uri -- wikipedia link you provided mentions that.. yes, but when they are used in url, square

Re: [SR-Users] turning off rev. dns

2012-10-22 Thread Olle E. Johansson
22 okt 2012 kl. 20:24 skrev Daniel-Constantin Mierla : > Hello, > > that message is printed by the mechanism that tries to discover local > hostnames to add them to aliases list. > > To turn that off, use '-a no' in command line or 'auto_aliases=no' in > configuration file. Which is a command

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > many times the management system sits between chair and keyboard :-) , > being able to read/add human representation is really crucial in this > case. leaving out square brackets, which are not specified in ipv6 address rfc, should not be an overwhelming task f

Re: [SR-Users] turning off rev. dns

2012-10-22 Thread Olle E. Johansson
22 okt 2012 kl. 20:24 skrev Daniel-Constantin Mierla : > Hello, > > that message is printed by the mechanism that tries to discover local > hostnames to add them to aliases list. > > To turn that off, use '-a no' in command line or 'auto_aliases=no' in > configuration file. http://www.kamaili

Re: [SR-Users] ip address fields

2012-10-22 Thread Daniel-Constantin Mierla
On 10/22/12 9:01 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: many times the management system sits between chair and keyboard :-) , being able to read/add human representation is really crucial in this case. leaving out square brackets, which are not specified in ipv6 address rfc

Re: [SR-Users] ip address fields

2012-10-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I am not sure anymore the reason of the debate here. Saving two optional > bytes which are not allocated if not used in a db varchar field? it started because there is three different lengths of ip address field in three different tables, which does not make an

Re: [SR-Users] Message Routing To/From Gateway

2012-10-22 Thread Ed Brady
I have this all working now. I had previously configured this as a gateway and once issues were fixed on our vendor's end, it worked. Is there a disadvantage to using this method rather than the permissions module? On a related note (though maybe not related enough), when we get responses from the

[SR-Users] Entries in PUA List and RLS Watchers List

2012-10-22 Thread Sangeeta Shah
Hello All, I am hoping the authors of the RLS/PUA modules can answer this question since I am not sure what's going on. I have the rls module enabled, with the following config spec: # --rls module params -- modparam("rls", "db_url", DBURL) modparam("rls", "db_mode", 2) modparam("rls",

[SR-Users] getting siptrace error on start up

2012-10-22 Thread Christopher Holland
getting this error: kamailio: ERROR: [modparam.c:151]: set_mod_param_regex: parameter not found in module parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 63, column 46: Can't set module parameter I have set this to modparam("siptrace", "trace_to_database", "0") in my

Re: [SR-Users] rtpproxy module flags 1 and 2 question

2012-10-22 Thread Andreas Granig
Hi, On 10/22/2012 07:04 PM, Klaus Darilion wrote: > Please ask Andreas about those flags - he commited it It's actually about serial hunting e.g. on ring-timeout (maybe the term "forking" is ambiguous). Consider this scenario: A sends INVITE to proxy, which calls rtpproxy_offer to create a new

Re: [SR-Users] Entries in PUA List and RLS Watchers List

2012-10-22 Thread Sangeeta Shah
To be a bit more clear: the server_address has the ip of the kamailio server. Not sure if that's correct. Also not sure what the pua default_domain is supposed to be set to: right now it's the server's ip. Sangeeta On Mon, Oct 22, 2012 at 3:32 PM, Sangeeta Shah wrote: > Hello All, >I am ho

[SR-Users] Entries in PUA List and RLS Watchers List

2012-10-22 Thread Juha Heinanen
Sangeeta Shah writes: > Only error I see in the syslog: > Oct 22 15:22:22 RCS-Presence /usr/local/sbin/kamailio[11745]: ERROR: > db_mysql [km_dbase.c:122]: driver error on query: Duplicate entry > '1350937406' for key 'expires_idx' if this comes from pua table, check that the index has been defin