Re: [SR-Users] Missing Route headers in locally generated BYE

2013-12-11 Thread Alex Balashov
I just tested this with dialog timeout and can confirm that there are no Route headers in the locally generated BYEs. The Record-Route set for the dialog is: Record-Route: The BYEs from Kamailio don't have a Route header at all. Just these: 03:27:37.464071 IP 172.30.105.18.5060 > 172.3

Re: [SR-Users] Missing Route headers in locally generated BYE

2013-12-11 Thread Carsten Bock
Hi, why should Kamailio add a route for himself to an outbound request? 172.30.105.18 is obviously the proxy itself; so adding the Route-Header makes no sense (at least from a SIP-Perspective). Record-Route: 03:27:37.464071 IP 172.30.105.18.5060 > 172.30.105.20.5060: SIP, length: 367 Or a

Re: [SR-Users] Missing Route headers in locally generated BYE

2013-12-11 Thread Alex Balashov
Carsten, On 12/11/2013 03:36 AM, Carsten Bock wrote: why should Kamailio add a route for himself to an outbound request? 172.30.105.18 is obviously the proxy itself; so adding the Route-Header makes no sense (at least from a SIP-Perspective). Record-Route: 03:27:37.464071 IP 172.30.105.

Re: [SR-Users] Missing Route headers in locally generated BYE

2013-12-11 Thread Daniel-Constantin Mierla
Hello, On 11/12/13 09:38, Alex Balashov wrote: Carsten, On 12/11/2013 03:36 AM, Carsten Bock wrote: why should Kamailio add a route for himself to an outbound request? 172.30.105.18 is obviously the proxy itself; so adding the Route-Header makes no sense (at least from a SIP-Perspective).

Re: [SR-Users] Missing Route headers in locally generated BYE

2013-12-11 Thread Alex Balashov
On 12/11/2013 03:41 AM, Daniel-Constantin Mierla wrote: there must not be any route for proxy itself, even when BYE is sent by end UA the Route is consumed by proxy, so it is no difference from this perspective. Oh, yeah. [slaps head] That's true. You and Carsten are correct. -- Alex -- A

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
Hello Daniel, I am using Debian Squeeze and I am moving the file before the rotate. Unfortunately i had not time to debug kamailio's code to find the issue, i read quickly some part of the db_flatstore module but i need to figure out how to debug and understand how kamcmd passes commands to each

Re: [SR-Users] Kamailio + mediaproxy-ng for webrtc to sip calls

2013-12-11 Thread Muhammad Shahzad
Thanks. I appreciate your help. Thank you. On Wed, Dec 11, 2013 at 8:48 AM, Daniel-Constantin Mierla wrote: > Hello, > > there were some config snippets on mailing lists (maybe sr-dev) about this > topic. > > Peter just published his slides at last event he presented on this topic: > - http

[SR-Users] force_send_socket

2013-12-11 Thread Keith
Hi, I am using force_send_socket as I have two interfaces. It works fine but at the moment I am hard coding the IP address. I want to use a variable instead, I have tried the following: force_send_socket($sel(cfg_get.kamailio.bindip); But kamailio doesn't start and complains about the format. A

Re: [SR-Users] force_send_socket

2013-12-11 Thread Alex Balashov
On 12/11/2013 04:31 AM, Keith wrote: Hi, I am using force_send_socket as I have two interfaces. It works fine but at the moment I am hard coding the IP address. I want to use a variable instead, I have tried the following: force_send_socket($sel(cfg_get.kamailio.bindip); But kamailio doesn't s

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Daniel-Constantin Mierla
Hello, On 11/12/13 10:03, Abdelkader Allam wrote: Hello Daniel, I am using Debian Squeeze and I am moving the file before the rotate. Unfortunately i had not time to debug kamailio's code to find the issue, i read quickly some part of the db_flatstore module but i need to figure out how to d

Re: [SR-Users] force_send_socket

2013-12-11 Thread Daniel-Constantin Mierla
On 11/12/13 10:35, Alex Balashov wrote: On 12/11/2013 04:31 AM, Keith wrote: Hi, I am using force_send_socket as I have two interfaces. It works fine but at the moment I am hard coding the IP address. I want to use a variable instead, I have tried the following: force_send_socket($sel(cfg_get

Re: [SR-Users] force_send_socket

2013-12-11 Thread Alex Balashov
On 12/11/2013 04:45 AM, Daniel-Constantin Mierla wrote: Actually, to work, the above line has to be: $fs = "udp:" + $sel(cfg_get.kamailio.bindip) + ":5060"; I never did understand that. Some PVs seem to be substituted inside a string literal, others are not. What's the rule? -- Alex

Re: [SR-Users] force_send_socket

2013-12-11 Thread Daniel-Constantin Mierla
On 11/12/13 10:46, Alex Balashov wrote: On 12/11/2013 04:45 AM, Daniel-Constantin Mierla wrote: Actually, to work, the above line has to be: $fs = "udp:" + $sel(cfg_get.kamailio.bindip) + ":5060"; I never did understand that. Some PVs seem to be substituted inside a string literal, ot

Re: [SR-Users] force_send_socket

2013-12-11 Thread Alex Balashov
On 12/11/2013 04:48 AM, Daniel-Constantin Mierla wrote: On 11/12/13 10:46, Alex Balashov wrote: On 12/11/2013 04:45 AM, Daniel-Constantin Mierla wrote: Actually, to work, the above line has to be: $fs = "udp:" + $sel(cfg_get.kamailio.bindip) + ":5060"; I never did understand that. Som

Re: [SR-Users] 500 I'm terribly sorry error

2013-12-11 Thread Daniel-Constantin Mierla
Hello, can you set debug=3 in your config file and look at the logs for more information on why is failing? To discover why a route block is not executed, you can use debugger module with cfgtrace parameter set to 1, then you will see what lines of configuration files are executed and spot w

Re: [SR-Users] force_send_socket

2013-12-11 Thread Daniel-Constantin Mierla
On 11/12/13 10:53, Alex Balashov wrote: On 12/11/2013 04:48 AM, Daniel-Constantin Mierla wrote: On 11/12/13 10:46, Alex Balashov wrote: On 12/11/2013 04:45 AM, Daniel-Constantin Mierla wrote: Actually, to work, the above line has to be: $fs = "udp:" + $sel(cfg_get.kamailio.bindip) + ":

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
Here is an example, today at 9:20 i did a rotate command, after renaming the files, you see that some files are not used so havent been changed since 9:20, but the remaining files are still used until now (10:06 AM). So basically the command had no effet (i launched the command two times -rw-r--r

[SR-Users] Selective load_credentials in auth_db

2013-12-11 Thread Alex Balashov
I have some extra columns to load from the 'subscriber' table': modparam("auth_db", "load_credentials", "$avp(s:fruit_id)=fruit_id"); Is there any way to get auth_db to only load this column for one realm and not another? I use multiple realms (tables) and one of them doesn't have th

Re: [SR-Users] force_send_socket

2013-12-11 Thread Keith
Thanks for the info guys, unfortunately it's not sending the from ip address properly now. I am using dispatcher to route these calls so not sure if the $fs is working properly? Any more ideas? Thanks Keith ___ SIP Express Router (SER) and Kamailio (Open

Re: [SR-Users] force_send_socket

2013-12-11 Thread Alex Balashov
On 12/11/2013 05:32 AM, Keith wrote: Thanks for the info guys, unfortunately it's not sending the from ip address properly now. I am using dispatcher to route these calls so not sure if the $fs is working properly? Can you be a little more specific as to what you mean? Are you saying that th

Re: [SR-Users] Selective load_credentials in auth_db

2013-12-11 Thread Alex Balashov
On 12/11/2013 05:31 AM, Alex Balashov wrote: I have some extra columns to load from the 'subscriber' table': modparam("auth_db", "load_credentials", "$avp(s:fruit_id)=fruit_id"); Is there any way to get auth_db to only load this column for one realm and not another? I use multiple r

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
Here is another try I made a code change to see if the kamcmd has really an effect on the module root@corex-mc1s:/usr/local/src/kamailio-4.1/kamailio# git diff diff --git a/modules/db_flatstore/flat_rpc.c b/modules/db_flatstore/flat_rpc.c index 2fe0d0f..9a51446 100644 --- a/modules/db_flatstore/

Re: [SR-Users] Selective load_credentials in auth_db

2013-12-11 Thread Daniel-Constantin Mierla
On 11/12/13 11:33, Alex Balashov wrote: On 12/11/2013 05:31 AM, Alex Balashov wrote: I have some extra columns to load from the 'subscriber' table': modparam("auth_db", "load_credentials", "$avp(s:fruit_id)=fruit_id"); Is there any way to get auth_db to only load this column for on

Re: [SR-Users] 500 I'm terribly sorry error

2013-12-11 Thread Helena Garcia-Nieto
Hi, The logs weren’t really helpful. I can see that it checked the from was server ips, and no error afterwards… I checked the configuration against the old working config I had in the test environment. Line by line and detected that the error is on the listen lines. I was listening onl

Re: [SR-Users] Kamailio 4.1.0 P-Asserted-Identity value - IMS

2013-12-11 Thread Carsten Bock
Hi Daniel, Hi Flavio, i've just replaced the custom P-Asserted-Identity Parser from the ims-library with the Parser from core. That should solve your issue. After some testing, i can cherry-pich for 4.1. Kind regards, Carsten 2013/12/9 Daniel-Constantin Mierla : > Hello, > > this is only in th

[SR-Users] Trying to understand the interal workings of Dispatcher and timers

2013-12-11 Thread Grant Bagdasarian
Hello, I'm trying to understand how the dispatcher module works and how the timers in the TM module influence the behavior. My architecture looks like this: UA1 SBC1 Kamailio - SBC2 FreeSWITCH App Server(x2) What I got so far: 1) UA1 sends an INVITE to SBC1, which brid

[SR-Users] S-CSCF strange execution effects

2013-12-11 Thread Flavio Battimo
Hello, i'm encountering in some strange behaviours while working with S-CSCF version: kamailio 4.1.0 (x86_64/linux) 350d2e Making some tests, in particular with Ro interface for online charging, the script execution doesn't follow normal flow (checking it by adding some xlog call). Looking at th

[SR-Users] Difference between Kamailio-3.1.1 and Kamailio-4.0

2013-12-11 Thread Owais ul Haq
Hello all, I want to know the difference between kamailio-3.1.1 and kamailio-4.0. As I am running kamailio-3.1.1 in my environment. I am interested to know what improvements will I enjoy if I reset the whole system and use kamailio-4.0(latest stable version). Replacing is quite a huge task, I h