[SR-Users] Testing for user=phone with siputils uri_param() doesn't work

2017-10-13 Thread George Diamantopoulos
Hello, In my script I've had to test for the user=phone parameter in URIs. I thought uri_param() from siputils would be handy for this operation on the RURI, so I did: if ( !uri_param("user","phone") ) { add_uri_param("user=phone"); } Unfortunately this wouldn't work (uri_param r

Re: [SR-Users] Having kamailio bind to a VRF device

2017-10-12 Thread George Diamantopoulos
Just one last thing, are you absolutely certain there's no firewall doing the damage there? It's quite common for firewall-blocked traffic to show up with tcpdump, but never reach the application... On 12 October 2017 at 20:26, Mark Boyce wrote: > Hi > > Now using listen=udp:0.0.0.0:9060 > > net

Re: [SR-Users] Having kamailio bind to a VRF device

2017-10-12 Thread George Diamantopoulos
.9060: SIP > 0x: 4510 0181 7883 4011 c03f 894a abd8 E...x...@..?.J.. > 0x0010: 0a05 0172 13c4 2364 016d e2e2 0110 0216 ...r..#d.m.. > 0x0020: 07a8 13c5 5c17 3523 894a abd8 4143 4b20 \.5#.J..ACK. > > > … but nothing seen in kamailio. > &

Re: [SR-Users] Having kamailio bind to a VRF device

2017-10-12 Thread George Diamantopoulos
traffic arriving. > > Anyone seen / solved this before? > > Cheers > Mark > > On 11 Oct 2017, at 22:07, George Diamantopoulos > wrote: > > Hello Daniel, > > I'm including the original sketch for clarity: > > +

Re: [SR-Users] Having kamailio bind to a VRF device

2017-10-11 Thread George Diamantopoulos
On 26 September 2017 at 09:52, Daniel-Constantin Mierla wrote: > > Hello, > > I haven't worked with vrf here, so no first hand experience ... > > What happens if you try with next option? > > listen=vrf-green:5060 advertise 2.2.2.2:5060 > > Cheers, > Daniel &g

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
Never mind, I'm certain by now: http://sip-router.1086192.n5.nabble.com/DB-select-htable-mod-init-doesn-t-work-td127717.html https://lists.kamailio.org/pipermail/sr-dev/2013-February/018484.html On 28 September 2017 at 22:18, George Diamantopoulos wrote: > Also, I' found this post

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
but the sqlops connections are initialized in child init. So maybe this is the case for 5.0.3 as well? sqlops functions can't be used in event_route[htable:mod-init] yet? On 28 September 2017 at 20:18, George Diamantopoulos wrote: > Hello, > > I've tested again, this time includ

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
nce, after core and module initialization, but before Kamailio forks any child processes. Does this mean that I don't have (perhaps) access to pseudovariables during execution of this route? Is this the reason why kamailio exits prematurely? Thanks, George On 26 September 2017 at 15:37, G

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-26 Thread George Diamantopoulos
I forgot to mention, I'm using Kamailio 5.0.3 on debian "stretch". On 26 September 2017 at 14:40, George Diamantopoulos wrote: > Hello all, > > I've been trying to utilise event_route[htable:mod-init] in order to load > information from the database into an htab

[SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-26 Thread George Diamantopoulos
Hello all, I've been trying to utilise event_route[htable:mod-init] in order to load information from the database into an htable on startup. However, Kamailio exits with an error for no obvious (to me) reason. Here's the log output: DEBUG: htable [htable.c:226]: child_init(): rank is (-127) DEBU

Re: [SR-Users] Having kamailio bind to a VRF device

2017-09-25 Thread George Diamantopoulos
Sorry to bump this, but it would be very useful if I knew whether there's any point in pursuing this or not. Any hints? On 21 September 2017 at 14:06, George Diamantopoulos wrote: > Hello, > > I have a use case where I need to have kamailio bind to a VRF device. The > configur

[SR-Users] Having kamailio bind to a VRF device

2017-09-21 Thread George Diamantopoulos
Hello, I have a use case where I need to have kamailio bind to a VRF device. The configuration in question is similar to the example below, where eth1 is a slave to the VRF-lite device: +--+ +---+ | eth0 | |vrf-green | | 1.1.1.1 | |127.0

Re: [SR-Users] Loading keys with key_type="1" from database for htable - Module params help needed

2017-09-06 Thread George Diamantopoulos
> > The array type is something that was supposed to help keeping keys simpler > in database, but the key is concatenated with the index, is not really an > array. > > Cheers, > Daniel > > On 30.08.17 20:06, George Diamantopoulos wrote: > > Hello all, I'm becom

[SR-Users] Loading keys with key_type="1" from database for htable - Module params help needed

2017-08-30 Thread George Diamantopoulos
Hello all, I'm becoming a regular here now, aren't I? So I have this table in mysql: +--+--++---+-+ | key_name | key_type | value1 | value2 | value3 | +--+--++++ | key1 | 1| valueA | valueF | valueK | | key

Re: [SR-Users] Kamailio fails to process ACK to 487 from Cisco-SIPGateway/IOS-12.x?

2017-08-26 Thread George Diamantopoulos
so show the invite sent by the > peer? > Cheers, > Daniel > > > On 23.08.17 16:17, George Diamantopoulos wrote: > > A clarification: > > The two exchanges-examples I included in the original message are not from > the same peer. The issue is reproducible every time wi

[SR-Users] Fwd: Weird issue with kamailio relaying messages to itself

2017-08-26 Thread George Diamantopoulos
Stupid gmail replying to sender only... -- Forwarded message -- From: George Diamantopoulos Date: 27 August 2017 at 02:29 Subject: Re: [SR-Users] Weird issue with kamailio relaying messages to itself To: Daniel-Constantin Mierla Hello all, I've figured out what was goi

Re: [SR-Users] Kamailio fails to process ACK to 487 from Cisco-SIPGateway/IOS-12.x?

2017-08-23 Thread George Diamantopoulos
) for comparison and to prove a point. On 23 August 2017 at 17:13, George Diamantopoulos wrote: > Hello all, > > I'm having a weird issue with Kamailio failing to properly process an ACK > received to a 487 it sent, resulting in retransmissions of the 487. I > assume it'

[SR-Users] Kamailio fails to process ACK to 487 from Cisco-SIPGateway/IOS-12.x?

2017-08-23 Thread George Diamantopoulos
Hello all, I'm having a weird issue with Kamailio failing to properly process an ACK received to a 487 it sent, resulting in retransmissions of the 487. I assume it's because it can't match the ACK to the transaction, but I could be wrong. I'm using a modified version of the default configuration

Re: [SR-Users] Kamailio example configuration: auth section incomplete?

2017-08-02 Thread George Diamantopoulos
uch call will > finish in location route and eventually will reach user. > > I hope I understood you and I didn't messed anything again. :) > > With kind regards, > > Jurijs > > On Wed, Aug 2, 2017 at 4:01 PM, George Diamantopoulos < > georged...@gmail.com> w

Re: [SR-Users] Kamailio example configuration: auth section incomplete?

2017-08-02 Thread George Diamantopoulos
. So any request which is not related to us we will > not serve. > > Keep in mind that "to" header by sip RFC can contain anything and we don't > care in most cases what is there. > > https://tools.ietf.org/html/rfc3261#page-36 > > With kind regards, >

Re: [SR-Users] SIP Proxy/Redirect

2017-08-02 Thread George Diamantopoulos
Have you checked Asipto's Freeswitch integration tutorial at https://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc? But keep in mind that if by "isolated network" you mean private or otherwise "unrouteable" network, you will need an RTP proxy too, such as rtpproxy or rtpengine for m

[SR-Users] Kamailio example configuration: auth section incomplete?

2017-08-02 Thread George Diamantopoulos
Hello again, Still getting familiar with kamailio, and I'm wondering about the AUTH route in the example configuration file. Here's a reducted-simplified version of it for reference (from git master, without IP AUTH and comments): __ route[AUTH] { i

[SR-Users] Weird issue with kamailio relaying messages to itself

2017-07-31 Thread George Diamantopoulos
Hello all, I have been toying with kamailio lately, and I thought I had gotten to the point where I had a mostly working (tm) prototype. I gave it a test drive with some real calls, however, and an issue manifested at least once, where homer received packets originating from the kamailio host, and

<    1   2