Send sr-users mailing list submissions to
sr-users@lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request@lists.sip-router.org
You can reach the person managing the list at
sr-users-owner@lists.sip-router.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of sr-users digest..."
Today's Topics:
1. force_send_socket in event route tm:local-request
(Kristian F. H?gh)
2. Re: SIP Trunk (Satish Patel)
3. Re: SIP Trunk (Yuriy Gorlichenko)
4. Re: CNXCC curious case (Carlos Ruiz D?az)
5. Kamailio script editor (Grant Bagdasarian)
6. Re: Kamailio script editor (Narsay, Deep)
7. Re: Kamailio script editor (Grant Bagdasarian)
8. Re: Kamailio script editor (Alex Balashov)
9. Re: force_send_socket in event route tm:local-request
(Daniel-Constantin Mierla)
10. Re: Kamailio script editor (Daniel-Constantin Mierla)
11. switch kamailio to domain (Mihai Marin)
12. Re: SIP Trunk (Satish Patel)
13. Re: Kamailio script editor (M?ns Nilsson)
14. Re: force_send_socket in event route tm:local-request
(Kristian Frederik H?gh)
15. How to uniquely identify SIP WS / WSS endpoint (Muhammad Shahzad)
16. nat_traversal vs nathelper for mediaproxy (Satish Patel)
17. Re: switch kamailio to domain (Daniel-Constantin Mierla)
18. Re: switch kamailio to domain (Mihai Marin)
----------------------------------------------------------------------
Message: 1
Date: Thu, 21 Aug 2014 12:00:49 +0200
From: Kristian F. H?gh <kfh@uni-tel.dk>
To: <sr-users@lists.sip-router.org>
Subject: [SR-Users] force_send_socket in event route tm:local-request
Message-ID: <25156162.LDl4apoH3L@kfh-laptop>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.
The PUBLISH requests generated by pua* appear in tm:local-request event route.
Before sending, we call set_advertised_address and force_send_socket.
Still the requests have the IP address from the first "listen=" as source and Via address.
The requests are send out using the correct interface and no errors are logged.
When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.
mhomed=1 solves the issue, but I prefer force_send_socket.
Regards,
Kristian H?gh
Uni-tel
------------------------------
Message: 2
Date: Thu, 21 Aug 2014 06:43:15 -0400
From: Satish Patel <satish.txt@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Cc: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] SIP Trunk
Message-ID: <A3BD87DA-AE2A-4E52-B70A-031A875DF111@gmail.com>
Content-Type: text/plain; charset=us-ascii
I will give it a try again today, can you please make sure my t_relay() syntax is correct?
So t_relay will rewrite my host past right and send call to trunk.
While ago I was using rewritehost() function but I think it's not working with UAC registrant module.
Sent from my iPhone
On Aug 21, 2014, at 3:53 AM, Daniel Tryba <daniel@pocos.nl> wrote:
> On Thursday 21 August 2014 05:56:46 Satish Patel wrote:
>> if ( $rU =~ "sip:1[0-9]@*") {
>
> Try $ru instead, $rU only contains the dialled "number". So
> $ru =~ "sip:1[0-9]@*"
> or
> $rU =~ "1[0-9]"
>
> But note the regexp, that only matches the exact numbers 10 to 19, if you are
> trying to match prefixes you are doing it wrong (tm).
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
------------------------------
Message: 3
Date: Thu, 21 Aug 2014 15:37:38 +0400
From: Yuriy Gorlichenko <ovoshlook@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] SIP Trunk
Message-ID:
<CABSP_VczfN-giH5ghuT2A9Gnqyk_+VNa=XFtX3tAaWDqM4kZTg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
rewritehost() sucessfully work with UAC. But As I know
1) It statless function
2) It read only string argumetns, and do not read variables
2014-08-21 14:43 GMT+04:00 Satish Patel <satish.txt@gmail.com>:
> I will give it a try again today, can you please make sure my t_relay()
> syntax is correct?
>
> So t_relay will rewrite my host past right and send call to trunk.
>
> While ago I was using rewritehost() function but I think it's not working
> with UAC registrant module.
>
>
> Sent from my iPhone
>
> On Aug 21, 2014, at 3:53 AM, Daniel Tryba <daniel@pocos.nl> wrote:
>
> > On Thursday 21 August 2014 05:56:46 Satish Patel wrote:
> >> if ( $rU =~ "sip:1[0-9]@*") {
> >
> > Try $ru instead, $rU only contains the dialled "number". So
> > $ru =~ "sip:1[0-9]@*"
> > or
> > $rU =~ "1[0-9]"
> >
> > But note the regexp, that only matches the exact numbers 10 to 19, if
> you are
> > trying to match prefixes you are doing it wrong (tm).
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users@lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/376e7219/attachment-0001.html>
------------------------------
Message: 4
Date: Thu, 21 Aug 2014 08:22:03 -0500
From: Carlos Ruiz D?az <carlos.ruizdiaz@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] CNXCC curious case
Message-ID:
<CA+3gBcnmTi7NfxE0SNrr2Y+_XM0TLaqkL_cnmm77hzztsi3hzQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Thank you for the feedback Kelvin.
On Thu, Aug 21, 2014 at 2:48 AM, Kelvin Chua <kelchy@gmail.com> wrote:
> just to close this issue,
> it does not happen on 4.1.5
>
> Kelvin Chua
>
>
> On Thu, Jul 10, 2014 at 9:26 PM, Carlos Ruiz D?az <
> carlos.ruizdiaz@gmail.com> wrote:
>
>> Hi Kevin,
>>
>> what are the steps to reproduce this?
>>
>> Also, do you have the latest update of the module? I remember fixing a
>> deadlock that could be the root cause of this problem.
>>
>> Regards,
>> Carlos
>>
>>
>> On Thu, Jul 10, 2014 at 12:03 AM, Kelvin Chua <kelchy@gmail.com> wrote:
>>
>>> I am using cnxcc_set_max_channels and set the max channels to 1
>>> after the 1st call goes through and hangs up, the 2nd one would be
>>> blocked
>>> even if there are no more active dialogs. could it be a dialog state
>>> issue?
>>>
>>> Kelvin Chua
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users@lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Carlos
>> http://caruizdiaz.com
>> http://ngvoice.com
>> +52 55 3048 3303
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
--
Carlos
http://caruizdiaz.com
http://ngvoice.com
+52 55 3048 3303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/f9c994bd/attachment-0001.html>
------------------------------
Message: 5
Date: Thu, 21 Aug 2014 16:08:43 +0200
From: Grant Bagdasarian <GB@cm.nl>
To: "sr-users@lists.sip-router.org" <sr-users@lists.sip-router.org>
Subject: [SR-Users] Kamailio script editor
Message-ID:
<FB7D97A214987F458242ACBDF87614073D8391AA0C@clubvirtual40.ClubMessage.local>
Content-Type: text/plain; charset="us-ascii"
Hello,
What editor do most of you use for editing the kamailio config script? I'm using notepad, which works fine, but sometimes I wish I had something like text coloring and other useful stuff found in most scripting editors.
Are there perhaps any plans for developing an editor for the kamailio config script? With code completion, etc.
Regards,
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/42947a61/attachment-0001.html>
------------------------------
Message: 6
Date: Thu, 21 Aug 2014 10:24:25 -0400
From: "Narsay, Deep" <deep.narsay@mezocliq.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio script editor
Message-ID:
<CAN0Hqb_j_sX0LvuRxBNnDBDjD6_OCrhRpkcrZXCY+EwMsAoBrA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
vi (vim/gvim) or sublime text are more efficient than notepad. (They also
have multiple color schemes) .
On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <GB@cm.nl> wrote:
> Hello,
>
>
>
> What editor do most of you use for editing the kamailio config script? I?m
> using notepad, which works fine, but sometimes I wish I had something like
> text coloring and other useful stuff found in most scripting editors.
>
> Are there perhaps any plans for developing an editor for the kamailio
> config script? With code completion, etc.
>
>
>
> Regards,
>
>
>
> Grant
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/a0f35236/attachment-0001.html>
------------------------------
Message: 7
Date: Thu, 21 Aug 2014 16:39:59 +0200
From: Grant Bagdasarian <GB@cm.nl>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio script editor
Message-ID:
<FB7D97A214987F458242ACBDF87614073D8391AA17@clubvirtual40.ClubMessage.local>
Content-Type: text/plain; charset="utf-8"
Right. I have sublime text installed. Any recommendations for a color scheme?
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Narsay, Deep
Sent: Thursday, August 21, 2014 4:24 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio script editor
vi (vim/gvim) or sublime text are more efficient than notepad. (They also have multiple color schemes) .
On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <GB@cm.nl<mailto:GB@cm.nl>> wrote:
Hello,
What editor do most of you use for editing the kamailio config script? I?m using notepad, which works fine, but sometimes I wish I had something like text coloring and other useful stuff found in most scripting editors.
Are there perhaps any plans for developing an editor for the kamailio config script? With code completion, etc.
Regards,
Grant
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/05ee5792/attachment-0001.html>
------------------------------
Message: 8
Date: Thu, 21 Aug 2014 10:51:28 -0400
From: Alex Balashov <abalashov@evaristesys.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio script editor
Message-ID: <bee4efae-e922-41a0-a383-6325e76e8c8a@email.android.com>
Content-Type: text/plain; charset="utf-8"
Vim + :syntax on does a fine job with Kamailio route script.
Mostly.
On 21 August 2014 10:39:59 GMT-04:00, Grant Bagdasarian <GB@cm.nl> wrote:
>Right. I have sublime text installed. Any recommendations for a color
>scheme?
>
>From: sr-users-bounces@lists.sip-router.org
>[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Narsay,
>Deep
>Sent: Thursday, August 21, 2014 4:24 PM
>To: Kamailio (SER) - Users Mailing List
>Subject: Re: [SR-Users] Kamailio script editor
>
>vi (vim/gvim) or sublime text are more efficient than notepad. (They
>also have multiple color schemes) .
>
>On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian
><GB@cm.nl<mailto:GB@cm.nl>> wrote:
>Hello,
>
>What editor do most of you use for editing the kamailio config script?
>I?m using notepad, which works fine, but sometimes I wish I had
>something like text coloring and other useful stuff found in most
>scripting editors.
>Are there perhaps any plans for developing an editor for the kamailio
>config script? With code completion, etc.
>
>Regards,
>
>Grant
>
>_______________________________________________
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>sr-users@lists.sip-router.org<mailto:sr-users@lists.sip-router.org>
>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>sr-users@lists.sip-router.org
>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0671
Web: http://www.evaristesys.com/, http://www.alexbalashov.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/44f5e83b/attachment-0001.html>
------------------------------
Message: 9
Date: Thu, 21 Aug 2014 17:11:14 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] force_send_socket in event route
tm:local-request
Message-ID: <53F60C12.8000602@gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Hello,
I think the ougoing request is already created in that event route, the
set advertise address being used too late from that perspective --
however, there is no hook before to set it.
Open an enhancement issue on the tracker not to forget about it and I
will check to see if there is a possibility to add this feature.
Cheers,
Daniel
On 21/08/14 12:00, Kristian F. H?gh wrote:
> Hi,
>
> Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.
> The PUBLISH requests generated by pua* appear in tm:local-request event route.
>
> Before sending, we call set_advertised_address and force_send_socket.
> Still the requests have the IP address from the first "listen=" as source and Via address.
> The requests are send out using the correct interface and no errors are logged.
>
> When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.
>
> mhomed=1 solves the issue, but I prefer force_send_socket.
>
> Regards,
> Kristian H?gh
> Uni-tel
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
------------------------------
Message: 10
Date: Thu, 21 Aug 2014 17:17:59 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio script editor
Message-ID: <53F60DA7.9020109@gmail.com>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Kamailio has a dedicated syntax file for vim -- from sources, do (as
user editing the config):
cd utils/misc/vim
make install
After that, when you open kamailio.cfg, vim/gvim/kvim/macvim should
detect that it is kamailio syntax and with do proper highlighting.
Perhaps some tokens/keywords added lately are missing from the syntax
file, but it is still very good. I use it everywhere.
Cheers,
Daniel
On 21/08/14 16:51, Alex Balashov wrote:
> Vim + :syntax on does a fine job with Kamailio route script.
>
> Mostly.
>
>
> On 21 August 2014 10:39:59 GMT-04:00, Grant Bagdasarian <GB@cm.nl> wrote:
>
> Right. I have sublime text installed. Any recommendations for a
> color scheme?
>
> *From:*sr-users-bounces@lists.sip-router.org
> [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of
> *Narsay, Deep
> *Sent:* Thursday, August 21, 2014 4:24 PM
> *To:* Kamailio (SER) - Users Mailing List
> *Subject:* Re: [SR-Users] Kamailio script editor
>
> vi (vim/gvim) or sublime text are more efficient than notepad.
> (They also have multiple color schemes) .
>
> On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <GB@cm.nl
> <mailto:GB@cm.nl>> wrote:
>
> Hello,
>
> What editor do most of you use for editing the kamailio config
> script? I?m using notepad, which works fine, but sometimes I wish
> I had something like text coloring and other useful stuff found in
> most scripting editors.
>
> Are there perhaps any plans for developing an editor for the
> kamailio config script? With code completion, etc.
>
> Regards,
>
> Grant
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> ------------------------------------------------------------------------
>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Sent from my mobile, and thus lacking in the refinement one might
> expect from a fully fledged keyboard.
>
> Alex Balashov - Principal
> Evariste Systems LLC
> 235 E Ponce de Leon Ave
> Suite 106
> Decatur, GA 30030
> United States
> Tel: +1-678-954-0671
> Web: http://www.evaristesys.com/, http://www.alexbalashov.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/664b2b84/attachment-0001.html>
------------------------------
Message: 11
Date: Thu, 21 Aug 2014 20:06:26 +0300
From: Mihai Marin <marinmihai@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: [SR-Users] switch kamailio to domain
Message-ID:
<CACKuv4W2ii5DyqOCij3Lt6+hTXgvNkYmsbfAwKAvGwQUJjwNiA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello Sirs,
The RLS module is eating my life. I just managed to make it work 2 months
ago and now is not working anymore after I tried to put the kamailio under
domain (until now it was simple ip).
I don't understand why is not working but I saw a big difference that I
don't understand:
My environment:
- the domain "domain.com" is pointing to the web server
- kamailio is hosted under sip.domain.com
- DNS has domain.com A record for web server's ip, sip.domain.com A record
for kamailio's ip and SRV record for _sip._tcp.domain.com poting to
sip.domain.dom
Problem:
kamailio presence is not working anymore and I think, the error is:
grep_sock_info - checking if host==us: 11==14 && [domain.com] ==
[xx.xx.xx.xx witch is the sip.domain.com IP]
If, I change domain.com in DNS to point on the same ip as sip.domain.com
RLS is working. This, I can't understand. Can anyone explain me why is not
working using this configuration? Also, the RLS is working if i change my
domain to be sip.domain.com (ex: sip:user@sip.domain.com).
Thank you.
Best regards,
Mihai M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cac79a07/attachment-0001.html>
------------------------------
Message: 12
Date: Thu, 21 Aug 2014 15:12:22 -0400
From: Satish Patel <satish.txt@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] SIP Trunk
Message-ID:
<CAPgF-foDyt12cOfghr-S8V6y56BJj6XdYhZXf1MNM39hEBvwEg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I have tried following rule but somehow opensips challenging it from
authentication
route[3]{
if ( $ru =~ "^sip:011[0-9]*@") {
rewritehostport("65.65.65.65:5065");
xlog("Redirecting to SIP Provider... $ru\n");
exit;
};
}
U 198.198.198.198:56186 -> 182.182.182.182:5060
INVITE sip:0116663332222@sip.a1routes.com SIP/2.0.
Via: SIP/2.0/UDP 198.198.198.198:56186
;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport.
Max-Forwards: 70.
Contact: <sip:1001@198.198.198.198:56186;transport=UDP>.
To: <sip:0116663332222@sip.a1routes.com>.
From: "1001"<sip:1001@sip.a1routes.com>;tag=3894f90f.
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces, norefersub.
User-Agent: SessionTalk Version 4.52.
Content-Length: 334.
.
v=0.
o=- 1408648022732773 1408648022732773 IN IP4 10.199.232.27.
s=-.
c=IN IP4 10.199.232.27.
t=0 0.
m=audio 4004 RTP/AVP 3 102 0 8 9 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:102 iLBC/8000.
a=fmtp:102 mode=30.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:9 G722/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.
#
U 182.182.182.182:5060 -> 198.198.198.198:56186
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 198.198.198.198:56186
;received=198.198.198.198;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport=56186.
To: <sip:0116663332222@sip.a1routes.com
>;tag=c223d9b6a566b5450d01aad8764c61fe.1e68.
From: "1001"<sip:1001@sip.a1routes.com>;tag=3894f90f.
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...
CSeq: 1 INVITE.
Proxy-Authenticate: Digest realm="sip.a1routes.com",
nonce="53f6436f0000009672b0aa913a92b9afaecefe5810253453".
Server: OpenSIPS (1.11.2-tls (x86_64/linux)).
Content-Length: 0.
.
On Thu, Aug 21, 2014 at 7:37 AM, Yuriy Gorlichenko <ovoshlook@gmail.com>
wrote:
> rewritehost() sucessfully work with UAC. But As I know
> 1) It statless function
> 2) It read only string argumetns, and do not read variables
>
>
> 2014-08-21 14:43 GMT+04:00 Satish Patel <satish.txt@gmail.com>:
>
> I will give it a try again today, can you please make sure my t_relay()
>> syntax is correct?
>>
>> So t_relay will rewrite my host past right and send call to trunk.
>>
>> While ago I was using rewritehost() function but I think it's not working
>> with UAC registrant module.
>>
>>
>> Sent from my iPhone
>>
>> On Aug 21, 2014, at 3:53 AM, Daniel Tryba <daniel@pocos.nl> wrote:
>>
>> > On Thursday 21 August 2014 05:56:46 Satish Patel wrote:
>> >> if ( $rU =~ "sip:1[0-9]@*") {
>> >
>> > Try $ru instead, $rU only contains the dialled "number". So
>> > $ru =~ "sip:1[0-9]@*"
>> > or
>> > $rU =~ "1[0-9]"
>> >
>> > But note the regexp, that only matches the exact numbers 10 to 19, if
>> you are
>> > trying to match prefixes you are doing it wrong (tm).
>> >
>> > _______________________________________________
>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> > sr-users@lists.sip-router.org
>> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/ab2e5d6f/attachment-0001.html>
------------------------------
Message: 13
Date: Thu, 21 Aug 2014 22:16:07 +0200
From: M?ns Nilsson <mansaxel@besserwisser.org>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio script editor
Message-ID: <20140821201607.GB27938@besserwisser.org>
Content-Type: text/plain; charset="utf-8"
Subject: [SR-Users] Kamailio script editor Date: Thu, Aug 21, 2014 at 04:08:43PM +0200 Quoting Grant Bagdasarian (GB@cm.nl):
> Hello,
>
> What editor do most of you use for editing the kamailio config script?
nvi or emacs. (can't stand vim, to much bloat. bloat is ok in emacs but
not in vim; go figure ;-))
> I'm using notepad,
Poor you.
--
M?ns Nilsson primary/secondary/besserwisser/machina
MN-1334-RIPE +46 705 989668
I hope you millionaires are having fun! I just invested half your life
savings in yeast!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/dee2674f/attachment-0001.pgp>
------------------------------
Message: 14
Date: Thu, 21 Aug 2014 21:31:43 +0000
From: Kristian Frederik H?gh <kfh@uni-tel.dk>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] force_send_socket in event route
tm:local-request
Message-ID: <1408656703494.69964@uni-tel.dk>
Content-Type: text/plain; charset="iso-8859-1"
Hi Daniel,
FS#462 created
http://sip-router.org/tracker/index.php?do=details&task_id=462
/Kristian.
________________________________________
Fra: sr-users-bounces@lists.sip-router.org <sr-users-bounces@lists.sip-router.org> p? vegne af Daniel-Constantin Mierla <miconda@gmail.com>
Sendt: 21. august 2014 17:11
Til: Kamailio (SER) - Users Mailing List
Emne: Re: [SR-Users] force_send_socket in event route tm:local-request
Hello,
I think the ougoing request is already created in that event route, the
set advertise address being used too late from that perspective --
however, there is no hook before to set it.
Open an enhancement issue on the tracker not to forget about it and I
will check to see if there is a possibility to add this feature.
Cheers,
Daniel
On 21/08/14 12:00, Kristian F. H?gh wrote:
> Hi,
>
> Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.
> The PUBLISH requests generated by pua* appear in tm:local-request event route.
>
> Before sending, we call set_advertised_address and force_send_socket.
> Still the requests have the IP address from the first "listen=" as source and Via address.
> The requests are send out using the correct interface and no errors are logged.
>
> When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.
>
> mhomed=1 solves the issue, but I prefer force_send_socket.
>
> Regards,
> Kristian H?gh
> Uni-tel
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
------------------------------
Message: 15
Date: Fri, 22 Aug 2014 05:26:08 +0500
From: Muhammad Shahzad <shaheryarkh@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>, "Kamailio (SER) - Development
Mailing List" <sr-dev@lists.sip-router.org>
Subject: [SR-Users] How to uniquely identify SIP WS / WSS endpoint
Message-ID:
<CAFZQphwtEcKE9c+nL=4+1dV4m7UtFDfk75a8ZeakYDisQSMKsA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Sorry for putting this question on both dev and user mailing lists, as it
is a rather theoretical question and i hope some SIP guru on either mail
list will answer.
For non-WS endpoints which use TCP or UDP for SIP transport, each upstream
request has top most VIA header pointing to the previous hop which
forwarded the request to current hop while each downstream request has top
most VIA header pointing to next hop to which it will be forwarded from
current hop.
But for WS endpoints, the top most VIA has dummy static value, so there is
no way to identify who sent this request or to whom the reply is going to.
Please note that i am not specifically interested in network address of
remote endpoint (though VIA header is suppose to provide it), i only need
to match requests and responses from / to a specific device using SIP v2.0
standard.
Any help is highly appreciated.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/b56a1f67/attachment-0001.html>
------------------------------
Message: 16
Date: Thu, 21 Aug 2014 22:37:33 -0400
From: Satish Patel <satish.txt@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: [SR-Users] nat_traversal vs nathelper for mediaproxy
Message-ID:
<CAPgF-fpHGiR=ABxS3xHZECRXp6YA+1xo1V=pQMCk6msxeXJJ2g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I am planing to implement mediaproxy so which NAT module will be good for
media proxy and why?
should i use nat_traversal ro nathelper ? I haven't see any example people
using nat_traversa. most of example i found on google are based on
nathelper so just want to make sure which one i should use and why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cdbf9cfc/attachment-0001.html>
------------------------------
Message: 17
Date: Fri, 22 Aug 2014 09:38:09 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>, Mihai Marin <marinmihai@gmail.com>
Subject: Re: [SR-Users] switch kamailio to domain
Message-ID: <53F6F361.6020607@gmail.com>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Hello,
if you want to handle the domain.com on the SIP server but the IP of
that domain is pointing elsewhere, just add in kamailio.cfg:
alias=domain.com
An alternative is to use domain module (suitable when you have many
domains and you want to store them in database).
Cheers,
Daniel
On 21/08/14 19:06, Mihai Marin wrote:
> Hello Sirs,
> The RLS module is eating my life. I just managed to make it work 2
> months ago and now is not working anymore after I tried to put the
> kamailio under domain (until now it was simple ip).
> I don't understand why is not working but I saw a big difference that
> I don't understand:
> My environment:
> - the domain "domain.com <http://domain.com>" is pointing to the web
> server
> - kamailio is hosted under sip.domain.com <http://sip.domain.com>
> - DNS has domain.com <http://domain.com> A record for web server's ip,
> sip.domain.com <http://sip.domain.com> A record for kamailio's ip and
> SRV record for _sip._tcp.domain.com <http://tcp.domain.com> poting to
> sip.domain.dom
> Problem:
> kamailio presence is not working anymore and I think, the error is:
> grep_sock_info - checking if host==us: 11==14 && [domain.com
> <http://domain.com>] == [xx.xx.xx.xx witch is the sip.domain.com
> <http://sip.domain.com> IP]
>
> If, I change domain.com <http://domain.com> in DNS to point on the
> same ip as sip.domain.com <http://sip.domain.com> RLS is working.
> This, I can't understand. Can anyone explain me why is not working
> using this configuration? Also, the RLS is working if i change my
> domain to be sip.domain.com <http://sip.domain.com> (ex:
> sip:user@sip.domain.com <mailto:sip%3Auser@sip.domain.com>).
>
>
> Thank you.
>
>
> Best regards,
> Mihai M
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/1256e83f/attachment-0001.html>
------------------------------
Message: 18
Date: Fri, 22 Aug 2014 12:21:38 +0300
From: Mihai Marin <marinmihai@gmail.com>
To: Daniel-Constantin Mierla <miconda@gmail.com>
Cc: "Kamailio \(SER\) - Users Mailing List"
<sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] switch kamailio to domain
Message-ID:
<CACKuv4WZkrhz8Z+k=ZzTFZJuQ901r3vp4Pio25GXZHdwH7J25g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello Daniel,
Thank you for your answer. I managed to fix 20 minutes ago but the issue (I
think) is in the RLS module. I had to add outbound_proxy and change the
server_address parameters for the RLS to the real domain that ponts to
kamailio.
Previous (when this was not working) I had
modparam("rls", "server_address", "sip:rls@domain.com")
The fix was:
modparam("rls", "server_address", "sip:rls@sip.domain.com")
modparam("rls", "outbound_proxy", "sip:sip.domain.com")
I'm like a beginner with this beautiful technology but I can't understand
why this is happening. The RLS module checks for A record instead of SRV
record in the DNS?
As I mentioned in my previous e-mail, my DNS configuration for domain.com
is:
A records:
@ - > a web server ip
sip - > kamailio's ip
SRV records:
_sip._udp.domain.com -> sip.domain.com:5060
In my theory (what I understood) is that kamailio checks for the SRV
record. So, to identify the IP, will follow the steps:
1. check SRV record (_sip._proto.domain.com) for domain.com ......
sip.domain.com:5060
2. check A record for sip.domain.com.......xx.xx.xx.xx
3. send to xx.xx.xx.xx:5060
In a multidomain scenario, all the domains should have the SRV record in
DNS pointing to sip.domain.com:5060.
I can't see how this RLS could work with a multi-domain scenario. Is it
correct? Do I misunderstand something in the theory?
I hope I don't tell stupid things here.
Thank you.
Best regards,
Mihai M
On Fri, Aug 22, 2014 at 10:38 AM, Daniel-Constantin Mierla <
miconda@gmail.com> wrote:
> Hello,
>
> if you want to handle the domain.com on the SIP server but the IP of that
> domain is pointing elsewhere, just add in kamailio.cfg:
>
> alias=domain.com
>
> An alternative is to use domain module (suitable when you have many
> domains and you want to store them in database).
>
> Cheers,
> Daniel
>
>
> On 21/08/14 19:06, Mihai Marin wrote:
>
> Hello Sirs,
> The RLS module is eating my life. I just managed to make it work 2 months
> ago and now is not working anymore after I tried to put the kamailio under
> domain (until now it was simple ip).
> I don't understand why is not working but I saw a big difference that I
> don't understand:
> My environment:
> - the domain "domain.com" is pointing to the web server
> - kamailio is hosted under sip.domain.com
> - DNS has domain.com A record for web server's ip, sip.domain.com A
> record for kamailio's ip and SRV record for _sip._tcp.domain.com poting
> to sip.domain.dom
> Problem:
> kamailio presence is not working anymore and I think, the error is:
> grep_sock_info - checking if host==us: 11==14 && [domain.com] ==
> [xx.xx.xx.xx witch is the sip.domain.com IP]
>
> If, I change domain.com in DNS to point on the same ip as sip.domain.com
> RLS is working. This, I can't understand. Can anyone explain me why is not
> working using this configuration? Also, the RLS is working if i change my
> domain to be sip.domain.com (ex: sip:user@sip.domain.com).
>
>
> Thank you.
>
>
> Best regards,
> Mihai M
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/92f9db28/attachment-0001.html>
------------------------------
_______________________________________________
sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
End of sr-users Digest, Vol 111, Issue 21
*****************************************