Re: [SR-Users] [SR_USers] Authenticate asterisk-kamailio

2015-04-30 Thread SamyGo
Hi, The important thing to consider here is this line. #!define WITH_ASTERISK so if you've defined this on the very top of your kamailio.cfg then it will go and check username/passwords from the sipusers table from the Database defined by this: DBASTURL if (!auth_check($fd, sipusers, 1)) {

Re: [SR-Users] NO VOICE AFTER MSILO

2015-04-30 Thread SamyGo
Could you provide your section of the code where you're using msilo ? how you're using it ! I just wonder how could it just tell kamailio to skip rtpproxy stuff !! On Wed, Apr 29, 2015 at 11:55 PM, sscc androids...@gmail.com wrote: i have configured msilo module successful but there isn't any

Re: [SR-Users] Kamailio and rtpengine - client behind NAT

2015-04-30 Thread Martin Schiøtz
Hi I'm still struggling with this problem. My setup is: mobile sipproviderA kamailio1 - kamailio2 - SIP user 2001 The SIP user calls the mobile and every thing works fine until the mobile hangup and the sipproviderA sends a BYE to kamailio1. That bye message has to

[SR-Users] NO VOICE AFTER MSILO

2015-04-30 Thread sscc
i have configured msilo module successful but there isn't any voice with msilo. i debug and compare the call flow with and without msilo. with msilo in call flow it didn't follow to relay and consequently didnt activate rtpproxy befor the call is answered. due to which during call there isn't any

[SR-Users] Transaction good practices with t_relay t_newtran and t_release

2015-04-30 Thread Dirk Teurlings - SIGNET B.V.
Hi, In our config we don't use presence, but I do have a question about transactions. We're using dialogs as well as transactions in the routing. To keep things simplyfied, let's assume we have the following stripped out route setup: request_route { if (is_method(CANCEL)) {

[SR-Users] SBC and HA with Kamailio

2015-04-30 Thread kai.ohnacker
Hello, I'm new with Kamailio and have to do a research project with Kamailio server. My task is to realize a SIP infrastructure with NATing and a High Availability Cluster with two Kamailio server. For the NAT problem I found a solution with SEMS, but for security I need authentication on the

Re: [SR-Users] UAC Module

2015-04-30 Thread Ali Jibran
Thanks for the awesome detailed explanation :) I talked to Voipfone(trunk) and they only allow registered endpoints to make/receive calls. So I can't do IP Auth as of now. I'll try the other method by rewriting $fu and $du. Hopefully that'll work. Thanks for the help again. AJ On

Re: [SR-Users] NO VOICE AFTER MSILO

2015-04-30 Thread sscc
# - msilo params - #!ifdef WITH_MSILO modparam(msilo, db_url, mysql://kamailio:abc@localhost/kamailio) modparam(msilo, from_address, sip:regist...@sscc.tk) modparam(msilo, contact_hdr, Contact: regist...@sscc.tk;msilo=yes\r\n) modparam(msilo, content_type_hdr,

Re: [SR-Users] Transaction good practices with t_relay t_newtran and t_release

2015-04-30 Thread Alex Balashov
There are really no healthy applications of Kamailio in which processing of a request should take a long time, due to Kamailio's limited number (necessarily so) of SIP worker threads. So, the temporal delta from initial message receipt to t_relay() should not be high, and once t_relay() is

[SR-Users] NO VOICE AFTER MSILO

2015-04-30 Thread sscc
hello i have configured msilo module successful but there isn't any voice with msilo. i debug and compare the call flow with and without msilo. with msilo in call flow it didn't follow to relay and consequently didnt activate rtpproxy befor the call is answered. due to which during call there

Re: [SR-Users] sr-users Digest, Vol 119, Issue 28

2015-04-30 Thread Yufei Tao
Hi I've realised that I should put '^' after Dlg= (rather than before), i.e. sht_rm_name_re(Dlg=^$var(callid)::tenant); - this works. But it doesn't seem to like '$' at the end of the regexp - Kamailio failed to start up with error: ERROR: htable [ht_var.c:176]: pv_parse_ht_name(): wrong format.

Re: [SR-Users] UAC not answer with new register after 401 reply from porvider

2015-04-30 Thread Daniel-Constantin Mierla
Hello, does that happen in all cases or just for some records? Can you rung with debug=3 and check the syslog messages for what happens at that moment when 401 is processed? Cheers, Daniel On 30/04/15 11:37, Yuriy Gorlichenko wrote: Hello. We have an issue with REGISTER to Provider. When

Re: [SR-Users] Transaction good practices with t_relay t_newtran and t_release

2015-04-30 Thread Daniel-Constantin Mierla
Hello, there is a rather new lightweight mechanism to detect retransmissions without creating the transaction before relaying. It is already part of 4.2 and in the default configuration file -- see t_precheck_trans() from tmx module. Cheers, Daniel On 30/04/15 10:31, Mickael Marrache wrote:

Re: [SR-Users] UAC not answer with new register after 401 reply from porvider

2015-04-30 Thread Yuriy Gorlichenko
This happens only with one trunk. We also have plivo trunks and it works fine. Syslog show nothing when this message comes Started with debug mode and saw that realms didn't mach. Sorry for stupid questions. All works fine. 2015-04-30 13:24 GMT+03:00 Daniel-Constantin Mierla mico...@gmail.com:

Re: [SR-Users] SIP INVITE and To Header

2015-04-30 Thread Alex Balashov
On 04/30/2015 07:31 AM, Andres wrote: I am inclined to believe this is perfectly normal and compliant but let me know what you think. Yep, it's normal. Moreover, only the RURI value should be used for routing purposes or for anything else that's consequential in relation to the destination;

Re: [SR-Users] SIP INVITE and To Header

2015-04-30 Thread Alex Balashov
No, that's not correct. The provider needs to send DNIS in the RURI in these cases, and providers should have a setting to enable this. It does require overriding the Contact binding of the registrant (if applicable), which is not RFC-compliant, but that's okay. -- Alex Balashov | Principal | 

Re: [SR-Users] UAC Module

2015-04-30 Thread Ali Jibran
#!ifdef WITH_FREESWITCH if(is_method(INVITE) route(FROMFREESWITCH))) { xlog(L_INFO ,[$fU/$tU@$si:$sp]{$rm} Call from FreeSWITCH needs to be sent TOVOIP \n); route(TOVOIP); t_on_failure(F_VOIP); exit; }

Re: [SR-Users] SIP INVITE and To Header

2015-04-30 Thread Andres
On 4/30/15 7:35 AM, Alex Balashov wrote: On 04/30/2015 07:31 AM, Andres wrote: I am inclined to believe this is perfectly normal and compliant but let me know what you think. Yep, it's normal. Moreover, only the RURI value should be used for routing purposes or for anything else that's

[SR-Users] SIP INVITE and To Header

2015-04-30 Thread Andres
I have a general question maybe somebody can help me out with. We have a new SIP Trunk setup with a provider. The SIP Trunk has a username of 'jane' and it handles 400 DIDs. When the incoming INVITE from the provider comes in, the URI in the Invite is the username of the trunk while the To

[SR-Users] UAC not answer with new register after 401 reply from porvider

2015-04-30 Thread Yuriy Gorlichenko
Hello. We have an issue with REGISTER to Provider. When Provider answers 401 Kamailio don't send any REGISTER with digest auth IP ourservice.com.5068 provider.dev.5060: UDP, length 468 E...U...@.3' ..AREGISTER sip:provider.dev SIP/2.0 Via: SIP/2.0/UDP ourservice.com:5068

Re: [SR-Users] Transaction good practices with t_relay t_newtran and t_release

2015-04-30 Thread Dirk Teurlings - SIGNET B.V.
Hi, Thanks for all responses, I think we can do completely without the t_newtran too now. We got it originally from one of the older CNXCC routing examples. But it seems we can skip it entirely indeed. TMX might also be good for us to use earlier transaction detection. I'll look into that

Re: [SR-Users] UAC Module

2015-04-30 Thread Ali Jibran
Perfect. Yeah got the working. Just one last issue. I don’t think this is rewriting the header. When I log the header again after the changes it still shows me the old values. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of SamyGo Sent: Thursday, April 30, 2015

Re: [SR-Users] [SR_USers] Authenticate asterisk-kamailio

2015-04-30 Thread Mauricio Tejeda
Front of my eyes and I did not see it. Thank you very much. -Mensaje original- De: sr-users [mailto:sr-users-boun...@lists.sip-router.org] En nombre de Daniel Tryba Enviado el: jueves, 30 de abril de 2015 13:44 Para: sr-users@lists.sip-router.org Asunto: Re: [SR-Users] [SR_USers]

Re: [SR-Users] SIP INVITE and To Header

2015-04-30 Thread Andres
On 4/30/15 9:28 AM, Alex Balashov wrote: No, that's not correct. The provider needs to send DNIS in the RURI in these cases, and providers should have a setting to enable this. It does require overriding the Contact binding of the registrant (if applicable), which is not RFC-compliant, but

Re: [SR-Users] UAC Module

2015-04-30 Thread SamyGo
t_on_failure(F_VOIP) to be used before t_relay(); That will arm the call to go to F_VOIP on failure responses. On Thu, Apr 30, 2015 at 9:33 AM, Ali Jibran alijib...@vividtech.io wrote: #!ifdef WITH_FREESWITCH if(is_method(INVITE) route(FROMFREESWITCH))) {

Re: [SR-Users] UAC Module

2015-04-30 Thread SamyGo
I'd like you to google around, there is a function available from another module which will apply the changes in SIP Message. On Thu, Apr 30, 2015 at 9:51 AM, Ali Jibran alijib...@vividtech.io wrote: Perfect. Yeah got the working. Just one last issue. I don’t think this is rewriting the

Re: [SR-Users] [SR_USers] Authenticate asterisk-kamailio

2015-04-30 Thread Mauricio Tejeda
Hi. Asterisk users are fine. Register subscribers Kamailio is my problem. #!ifdef WITH_ASTERISK if (!auth_check($fd, sipusers, 1)) { # OK Asterisk Users are no problem #!else