[SR-Users] unexpected char - status 6

2017-01-05 Thread AL S
Hi, Kamailio is throwing error message from "parse_to.c" with status=6. The source code shows status 6 as URI_ENCLOSED. However, tcpdump of the call does not show any enclosed angle bracket is missing. (tcpdump pcap file is attached.) Kamailio log Jan 4 10:18:21 orl-ar-openser01 /usr/sbin/

Re: [SR-Users] unexpected char [#015]

2017-01-04 Thread AL S
rom: ;tag=gK0c9dcf07 To: ;tag=gK0c002371 FROM and TO in INVITE forward by Kamailio for the same call From: ;tag=gK0c9dcf07 To: ;tag=gK0c002371 Thanks, AS From: sr-users on behalf of AL S Sent: Wednesday, January 4, 2017 10:00:52 AM To: sr-users@lists.sip-r

[SR-Users] unexpected char [#015]

2017-01-04 Thread AL S
Hi, Kamailio is complaining about unexpected char [#015] in TO header of INVITE: Jan 3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]: ERROR: [parser/parse_to.c:626]: ERROR: parse_to : unexpected char [#015] in status 6: <<> . Jan 3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]: E

[SR-Users] unusual characters added to reINVITE message by Kamailio

2016-12-16 Thread AL S
Hi, An INVITE with following FROM and TO headers received by Kamailio: From: ;tag=gK006cb08b To: Kamailio forward it to next node with following FROM and TO headers: From: ;tag=gK006cb08b To: After 15 min, reINVITE for the same call received by Kamailio with following FROM and TO heade

[SR-Users] (Correction) unusual characters added to reINVITE message

2016-12-16 Thread AL S
Hi, An INVITE with following FROM and TO headers received by Kamailio: From: ;tag=gK006cb08b To: Kamailio forward it to next node with following FROM and TO headers: From: ;tag=gK006cb08b To: After 15 min, reINVITE for the same call received by Kamailio with following FROM and TO heade

[SR-Users] username of Contact header

2016-05-27 Thread Al S
Hi, I am trying to read username portion of Contact header: My Contact header content has a URI value such as: sip:813111@10.10.10.10.:5060 and I am trying to read : 813111 I tried the following perl similar RE and it didn't work: ($var(main_number2)) = $ct =~ /sip:(.*)@/; Thanks,AS

Re: [SR-Users] extra characters in re-invite "TO" field

2016-05-20 Thread Al S
uot; field Hello, are you using uac module to replace the to/from header for initial invite? Cheers, Daniel On 20/05/16 15:15, Al S wrote: Hi, Kamailio adds extra characters in the re-invite

[SR-Users] extra characters in re-invite "TO" field

2016-05-20 Thread Al S
Hi, Kamailio adds extra characters in the re-invite "TO" field during session timer. There is no header manipulation in our route[WITHINDLG] block. Re-INVITE received by KamailioTo: ;tag=1c1048632956 Re-INVITE forwarded by KamailioTo: ;tag=1c1048632956 Your help would be greatly appreciated. T

[SR-Users] kamailio not authenticate a subscribed username

2016-05-16 Thread Al S
Hi,1) A generic subscriber is added to kamailio database:kamctl add pbx password2) Our UAC simulator (sipp) sends a call from a non subscribed username=818111@local_domain using a subscribed username for authentication (username=pbx, realm=local_domain) but kamailio does not authenticated th

[SR-Users] kamailio not authenticate a call with subscribed username

2016-05-16 Thread Al S
Hi, 1) A generic subscriber is added to kamailio database:kamctl add pbx password 2) Our UAC simulator (sipp) sends a call from a non subscribed username=818111@local_domain using a subscribed username for authentication (username=pbx, realm=local_domain) but kamailio does not authenticated t

[SR-Users] ACK not forwarded by Proxy when LOCATION lookup

2016-05-04 Thread Al S
Hi, I am trying to simulate Inbound calls from UAC to Kamailio to UAS. Kamailio performs location lookup within route[LOCATION] and updates URI with the address of UAS. However, it does not add a new Record-Route. Therefore, ACK message sent by UAC is not routed by the proxy: UAC ---> (send INVI

[SR-Users] stateful messages in a dialog

2016-03-30 Thread Al S
Hi, I would like to know how I can make subsequent messages in a dialog (ACK and BYE) to be stateful.Your help will be greatly appreciated. // reroute INVITE after timeout.failure_route[MANAGE_FAILURE]{ if (t_branch_timeout()) { # change to new destination IP $rd = "10.10.10.10";

[SR-Users] Destination Timeout (ACK message)

2016-03-29 Thread Al S
Hi, The destination node is down. By adding the following code Kamailo re-routing INVITE to a new destination after getting 408 timeout (as below). failure_route[MANAGE_FAILURE]{ if (t_branch_timeout()) { # change to new destination IP $rd = "10.10.10.10"; t_relay(); exi

Re: [SR-Users] Timeout Handling (update)

2016-03-28 Thread Al S
Thank you. > To: sr-users@lists.sip-router.org > From: abalas...@evaristesys.com > Date: Mon, 28 Mar 2016 15:27:14 -0400 > Subject: Re: [SR-Users] Timeout Handling (update) > > Hello, > > You cannot handle SIP eventualities by checking the return value of > t_relay(); a call to t_relay() will a

[SR-Users] Timeout Handling (update)

2016-03-28 Thread Al S
Hi, I am trying to re-route to a different $ru after timeout and right before Kamailio reply with a 408.I made the changes right before sl_reply_error(), however it does not work as I expected. Any help will be appreciated. Also, $rm represents the request message received by Kamailio. Is there

[SR-Users] timeout function

2016-03-28 Thread Al S
Hi, I am routing call traffic thru proxy to destination A. If destination A is down, we need to reroute to destination B. What function we can use to process timeout so we can reroute the calls to different node? Thanks,ARM__

Re: [SR-Users] no response, re-route calls to a different address

2015-09-11 Thread Al S
ut"); } else { # Relay the request to the gateway t_relay(); } } failure_route[1] { if (t_check_status("408|5[0-9][0-9]")) { #choose route domain 1 of the default carrier if(cr_route(“SONUS", "1", "$rU", "$rU", "call_

[SR-Users] no response, re-route calls to a different address

2015-09-11 Thread Al S
Hi, Can we make Kamailio to re-route calls from an address that does not respond to a different address? Thanks,Al ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-rout

Re: [SR-Users] authorize a client in bulk registration

2015-08-31 Thread Al S
] if traffic comes from PBX and execute return; if TRUE Else, you may create a list of allowed users in db/config and perform checks based on $au 2015-08-31 20:49 GMT+03:00 Al S : My PBX registered in bulk to Kamailio successfully.PBX --> Register --> kamailioPBX <-- 401 with no

[SR-Users] authorize a client in bulk registration

2015-08-31 Thread Al S
My PBX registered in bulk to Kamailio successfully.PBX --> Register --> kamailioPBX <-- 401 with nonce value <-- kamailioPBX --> Register with nonce and md5 response values --> kamailioBOX <-- 200ok <-- kamailioHowever, when one of the PBX client sends an invite out, kamailio AUTH module does no

[SR-Users] sending INVTE with Digest values

2015-07-23 Thread Al S
I am registering my client to kamailo successfully. client --> Register --> kamailioclient <-- 401 with nonce value <-- kamailioclient --> Register with nonce and md5 response values --> kamailioclient <-- 200ok <-- kamailio However, when the client sends an invite with the same digest values, ka

[SR-Users] replace From header username for AUTH

2015-07-21 Thread Al S
Hi, I was wondering how can I replace From header username to perform the following authentication check with the new value: route[AUTH]..if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "1");exit;}... Thanks,Al __

[SR-Users] using uac_replace_from( )

2015-06-17 Thread Al S
Hi, I am trying to change only the "display name" of the FROM header using uac_replace_from().However, the value is not being changed (see below) request_route { xlog ("L_INFO", "fu=$fu"); uac_replace_from("pbx", ""); xlog ("L_INFO", "fu=$fu"); # authentication route(AUTH); ..

[SR-Users] Getting 407 response when calling out (on bulk registration)

2015-06-17 Thread Al S
Hi, A bulk registration has been added to the "location" table:*** 1. row *** id: 113 ruid: uloc-55808d5a-33bc-1 username: pbx domain: NULL contact: sip:pbx@10.10.10.157:5060;bnc received: NULL path: NU

Re: [SR-Users] lookup("location") question

2015-06-12 Thread Al S
Yes, There was another entry in the table.It is fixed now. Thank you very much. Al > Date: Fri, 12 Jun 2015 10:48:15 -0400 > From: abalas...@evaristesys.com > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] lookup("location") question > > Hello Al, > > I would agree that, at first gl

[SR-Users] lookup("location") question

2015-06-12 Thread Al S
Hi, lookup("location") functions extracts username from Request-URI and relay INVITE without any username, causing UAC sends a CANCEL message. Is the function suppose to replace uri with "contact" field in the found entry in "location" table? INVITE uri arrives at Kamailio:Request-Line: INVITE

[SR-Users] Kamailio fails to start if cannot connect to MySQL

2015-06-04 Thread Al S
Hi, We have verified if MySQL server is offline when Kamailio is starting, Kamailio fails to start correctly.Is this a bug? Jun 4 10:53:22 ape /usr/sbin/kamailio[10630]: ERROR: db_mysql [km_my_con.c:109]: driver error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.

[SR-Users] delay on "location" table update

2015-06-02 Thread Al S
Hi, I was wondering if it's normal for "location" table to be updated almost 10 sec after receiving REGISTER. Thanks,Al ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip

Re: [SR-Users] RFC 6140

2015-06-02 Thread Al S
normalize the registration username to a specific value. Also, the bnc parameter is not removed, it is easy to do via some subst operation after lookup location. Cheers, Daniel On 01/06/15 21:58, Al S wrote: Hi,

[SR-Users] RFC 6140

2015-06-01 Thread Al S
Hi, I was wondering if Kamailio support RFC 6140 to register Addresses of Record (AORs) in bulk map to a unique set of contacts. REGISTER sip:kamailio.example.com SIP/2.0 Via: SIP/2.0/UDP 198.51.100.3:5060;branch=z9hG4bKnashds7 Max-Forwards: 70 To: From: ;tag=a23589 Call-ID: 843

[SR-Users] j...@tutpro.com

2015-05-29 Thread Al S
> Date: Fri, 29 May 2015 17:30:51 +0300 > To: sr-users@lists.sip-router.org > From: j...@tutpro.com > Subject: [SR-Users] "Multiple Phone Numbers" registration > > Al S writes: > > > Does Kamilio have a predefined module to support "Multiple Phone >

[SR-Users] "Multiple Phone Numbers" registration

2015-05-29 Thread Al S
Hi, Does Kamilio have a predefined module to support "Multiple Phone Numbers" registration with a single Registration?I am trying to register multiple numbers on behalf of IP-PBXs. Thanks,Al

Re: [SR-Users] log the value of "from_uri" and "myself"

2015-05-28 Thread Al S
es > ‎ > All these can be logged.‎ > > -- > Alex Balashov | Principal | Evariste Systems LLC > 303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com

[SR-Users] log the value of "from_uri" and "myself"

2015-05-28 Thread Al S
Hi, I would like to know how to log the value of "from_uri" and "myself" attributes on kamailio 3.3.7 ?None of the following works: xlog("L_INFO","from_uri: $dlg(from_uri)"); $var(x) = from_uri;xlog("L_INFO","$var(x)"); Thanks,Al ___