<div dir="ltr">How to configure 3 kamailio on three different node, and they work as a single kamailio proxy. which module or method need to implement.<br> <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 22, 2014 at 3:30 PM,  <span dir="ltr"><<a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send sr-users mailing list submissions to<br>
        <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:sr-users-request@lists.sip-router.org">sr-users-request@lists.sip-router.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sr-users-owner@lists.sip-router.org">sr-users-owner@lists.sip-router.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of sr-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. force_send_socket in event route tm:local-request<br>
      (Kristian F. H?gh)<br>
   2. Re: SIP Trunk (Satish Patel)<br>
   3. Re: SIP Trunk (Yuriy Gorlichenko)<br>
   4. Re: CNXCC curious case (Carlos Ruiz D?az)<br>
   5. Kamailio script editor (Grant Bagdasarian)<br>
   6. Re: Kamailio script editor (Narsay, Deep)<br>
   7. Re: Kamailio script editor (Grant Bagdasarian)<br>
   8. Re: Kamailio script editor (Alex Balashov)<br>
   9. Re: force_send_socket in event route tm:local-request<br>
      (Daniel-Constantin Mierla)<br>
  10. Re: Kamailio script editor (Daniel-Constantin Mierla)<br>
  11. switch kamailio to domain (Mihai Marin)<br>
  12. Re: SIP Trunk (Satish Patel)<br>
  13. Re: Kamailio script editor (M?ns Nilsson)<br>
  14. Re: force_send_socket in event route tm:local-request<br>
      (Kristian Frederik H?gh)<br>
  15. How to uniquely identify SIP WS / WSS endpoint (Muhammad Shahzad)<br>
  16. nat_traversal vs nathelper for mediaproxy (Satish Patel)<br>
  17. Re: switch kamailio to domain (Daniel-Constantin Mierla)<br>
  18. Re: switch kamailio to domain (Mihai Marin)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 21 Aug 2014 12:00:49 +0200<br>
From: Kristian F. H?gh <<a href="mailto:kfh@uni-tel.dk">kfh@uni-tel.dk</a>><br>
To: <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: [SR-Users] force_send_socket in event route tm:local-request<br>
Message-ID: <25156162.LDl4apoH3L@kfh-laptop><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.<br>
The PUBLISH requests generated by pua* appear in tm:local-request event route.<br>
<br>
Before sending, we call set_advertised_address and force_send_socket.<br>
Still the requests have the IP address from the first "listen=" as source and Via address.<br>
The requests are send out using the correct interface and no errors are logged.<br>
<br>
When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.<br>
<br>
mhomed=1 solves the issue, but I prefer force_send_socket.<br>
<br>
Regards,<br>
Kristian H?gh<br>
Uni-tel<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 21 Aug 2014 06:43:15 -0400<br>
From: Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Cc: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] SIP Trunk<br>
Message-ID: <<a href="mailto:A3BD87DA-AE2A-4E52-B70A-031A875DF111@gmail.com">A3BD87DA-AE2A-4E52-B70A-031A875DF111@gmail.com</a>><br>
Content-Type: text/plain;       charset=us-ascii<br>
<br>
I will give it a try again today, can you please make sure my t_relay() syntax is correct?<br>
<br>
So t_relay will rewrite my host past right and send call to trunk.<br>
<br>
While ago I was using rewritehost() function but I think it's not working with UAC registrant module.<br>
<br>
<br>
Sent from my iPhone<br>
<br>
On Aug 21, 2014, at 3:53 AM, Daniel Tryba <<a href="mailto:daniel@pocos.nl">daniel@pocos.nl</a>> wrote:<br>
<br>
> On Thursday 21 August 2014 05:56:46 Satish Patel wrote:<br>
>>                if ( $rU =~ "sip:1[0-9]@*") {<br>
><br>
> Try $ru instead, $rU only contains the dialled "number". So<br>
> $ru =~ "sip:1[0-9]@*"<br>
> or<br>
> $rU =~ "1[0-9]"<br>
><br>
> But note the regexp, that only matches the exact numbers 10 to 19, if you are<br>
> trying to match prefixes you are doing it wrong (tm).<br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 21 Aug 2014 15:37:38 +0400<br>
From: Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com">ovoshlook@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] SIP Trunk<br>
Message-ID:<br>
        <CABSP_VczfN-giH5ghuT2A9Gnqyk_+VNa=<a href="mailto:XFtX3tAaWDqM4kZTg@mail.gmail.com">XFtX3tAaWDqM4kZTg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
rewritehost() sucessfully work with UAC. But As I know<br>
1) It statless function<br>
2) It read only string argumetns, and do not read variables<br>
<br>
<br>
2014-08-21 14:43 GMT+04:00 Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>>:<br>
<br>
> I will give it a try again today, can you please make sure my t_relay()<br>
> syntax is correct?<br>
><br>
> So t_relay will rewrite my host past right and send call to trunk.<br>
><br>
> While ago I was using rewritehost() function but I think it's not working<br>
> with UAC registrant module.<br>
><br>
><br>
> Sent from my iPhone<br>
><br>
> On Aug 21, 2014, at 3:53 AM, Daniel Tryba <<a href="mailto:daniel@pocos.nl">daniel@pocos.nl</a>> wrote:<br>
><br>
> > On Thursday 21 August 2014 05:56:46 Satish Patel wrote:<br>
> >>                if ( $rU =~ "sip:1[0-9]@*") {<br>
> ><br>
> > Try $ru instead, $rU only contains the dialled "number". So<br>
> > $ru =~ "sip:1[0-9]@*"<br>
> > or<br>
> > $rU =~ "1[0-9]"<br>
> ><br>
> > But note the regexp, that only matches the exact numbers 10 to 19, if<br>
> you are<br>
> > trying to match prefixes you are doing it wrong (tm).<br>
> ><br>
> > _______________________________________________<br>
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> > <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> > <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/376e7219/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/376e7219/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 21 Aug 2014 08:22:03 -0500<br>
From: Carlos Ruiz D?az <<a href="mailto:carlos.ruizdiaz@gmail.com">carlos.ruizdiaz@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] CNXCC curious case<br>
Message-ID:<br>
        <<a href="mailto:CA%2B3gBcnmTi7NfxE0SNrr2Y%2B_XM0TLaqkL_cnmm77hzztsi3hzQ@mail.gmail.com">CA+3gBcnmTi7NfxE0SNrr2Y+_XM0TLaqkL_cnmm77hzztsi3hzQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thank you for the feedback Kelvin.<br>
<br>
<br>
On Thu, Aug 21, 2014 at 2:48 AM, Kelvin Chua <<a href="mailto:kelchy@gmail.com">kelchy@gmail.com</a>> wrote:<br>
<br>
> just to close this issue,<br>
> it does not happen on 4.1.5<br>
><br>
> Kelvin Chua<br>
><br>
><br>
> On Thu, Jul 10, 2014 at 9:26 PM, Carlos Ruiz D?az <<br>
> <a href="mailto:carlos.ruizdiaz@gmail.com">carlos.ruizdiaz@gmail.com</a>> wrote:<br>
><br>
>> Hi Kevin,<br>
>><br>
>> what are the steps to reproduce this?<br>
>><br>
>> Also, do you have the latest update of the module? I remember fixing a<br>
>> deadlock that could be the root cause of this problem.<br>
>><br>
>> Regards,<br>
>> Carlos<br>
>><br>
>><br>
>> On Thu, Jul 10, 2014 at 12:03 AM, Kelvin Chua <<a href="mailto:kelchy@gmail.com">kelchy@gmail.com</a>> wrote:<br>
>><br>
>>> I am using  cnxcc_set_max_channels and set the max channels to 1<br>
>>> after the 1st call goes through and hangs up, the 2nd one would be<br>
>>> blocked<br>
>>> even if there are no more active dialogs. could it be a dialog state<br>
>>> issue?<br>
>>><br>
>>> Kelvin Chua<br>
>>><br>
>>> _______________________________________________<br>
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>>><br>
>>><br>
>><br>
>><br>
>> --<br>
>> Carlos<br>
>> <a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a><br>
>> <a href="http://ngvoice.com" target="_blank">http://ngvoice.com</a><br>
>> +52 55 3048 3303<br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
<br>
<br>
--<br>
Carlos<br>
<a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a><br>
<a href="http://ngvoice.com" target="_blank">http://ngvoice.com</a><br>
+52 55 3048 3303<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/f9c994bd/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/f9c994bd/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 21 Aug 2014 16:08:43 +0200<br>
From: Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>><br>
To: "<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>" <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: [SR-Users] Kamailio script editor<br>
Message-ID:<br>
        <FB7D97A214987F458242ACBDF87614073D8391AA0C@clubvirtual40.ClubMessage.local><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hello,<br>
<br>
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.<br>

Are there perhaps any plans for developing an editor for the kamailio config script? With code completion, etc.<br>
<br>
Regards,<br>
<br>
Grant<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/42947a61/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/42947a61/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 21 Aug 2014 10:24:25 -0400<br>
From: "Narsay, Deep" <<a href="mailto:deep.narsay@mezocliq.com">deep.narsay@mezocliq.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio script editor<br>
Message-ID:<br>
        <<a href="mailto:CAN0Hqb_j_sX0LvuRxBNnDBDjD6_OCrhRpkcrZXCY%2BEwMsAoBrA@mail.gmail.com">CAN0Hqb_j_sX0LvuRxBNnDBDjD6_OCrhRpkcrZXCY+EwMsAoBrA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
vi (vim/gvim)  or sublime text are more efficient than notepad. (They also<br>
have multiple color schemes) .<br>
<br>
<br>
On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>> wrote:<br>
<br>
> Hello,<br>
><br>
><br>
><br>
> What editor do most of you use for editing the kamailio config script? I?m<br>
> using notepad, which works fine, but sometimes I wish I had something like<br>
> text coloring and other useful stuff found in most scripting editors.<br>
><br>
> Are there perhaps any plans for developing an editor for the kamailio<br>
> config script? With code completion, etc.<br>
><br>
><br>
><br>
> Regards,<br>
><br>
><br>
><br>
> Grant<br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/a0f35236/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/a0f35236/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 21 Aug 2014 16:39:59 +0200<br>
From: Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio script editor<br>
Message-ID:<br>
        <FB7D97A214987F458242ACBDF87614073D8391AA17@clubvirtual40.ClubMessage.local><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Right. I have sublime text installed. Any recommendations for a color scheme?<br>
<br>
From: <a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a> [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] On Behalf Of Narsay, Deep<br>

Sent: Thursday, August 21, 2014 4:24 PM<br>
To: Kamailio (SER) - Users Mailing List<br>
Subject: Re: [SR-Users] Kamailio script editor<br>
<br>
vi (vim/gvim)  or sublime text are more efficient than notepad. (They also have multiple color schemes) .<br>
<br>
On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a><mailto:<a href="mailto:GB@cm.nl">GB@cm.nl</a>>> wrote:<br>
Hello,<br>
<br>
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.<br>

Are there perhaps any plans for developing an editor for the kamailio config script? With code completion, etc.<br>
<br>
Regards,<br>
<br>
Grant<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/05ee5792/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/05ee5792/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Thu, 21 Aug 2014 10:51:28 -0400<br>
From: Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio script editor<br>
Message-ID: <<a href="mailto:bee4efae-e922-41a0-a383-6325e76e8c8a@email.android.com">bee4efae-e922-41a0-a383-6325e76e8c8a@email.android.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Vim + :syntax on does a fine job with Kamailio route script.<br>
<br>
Mostly.<br>
<br>
<br>
On 21 August 2014 10:39:59 GMT-04:00, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>> wrote:<br>
>Right. I have sublime text installed. Any recommendations for a color<br>
>scheme?<br>
><br>
>From: <a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a><br>
>[mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] On Behalf Of Narsay,<br>
>Deep<br>
>Sent: Thursday, August 21, 2014 4:24 PM<br>
>To: Kamailio (SER) - Users Mailing List<br>
>Subject: Re: [SR-Users] Kamailio script editor<br>
><br>
>vi (vim/gvim)  or sublime text are more efficient than notepad. (They<br>
>also have multiple color schemes) .<br>
><br>
>On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian<br>
><<a href="mailto:GB@cm.nl">GB@cm.nl</a><mailto:<a href="mailto:GB@cm.nl">GB@cm.nl</a>>> wrote:<br>
>Hello,<br>
><br>
>What editor do most of you use for editing the kamailio config script?<br>
>I?m using notepad, which works fine, but sometimes I wish I had<br>
>something like text coloring and other useful stuff found in most<br>
>scripting editors.<br>
>Are there perhaps any plans for developing an editor for the kamailio<br>
>config script? With code completion, etc.<br>
><br>
>Regards,<br>
><br>
>Grant<br>
><br>
>_______________________________________________<br>
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
><br>
>------------------------------------------------------------------------<br>
><br>
>_______________________________________________<br>
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.<br>
<br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
United States<br>
Tel: +1-678-954-0671<br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com" target="_blank">http://www.alexbalashov.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/44f5e83b/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/44f5e83b/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Thu, 21 Aug 2014 17:11:14 +0200<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] force_send_socket in event route<br>
        tm:local-request<br>
Message-ID: <<a href="mailto:53F60C12.8000602@gmail.com">53F60C12.8000602@gmail.com</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
Hello,<br>
<br>
I think the ougoing request is already created in that event route, the<br>
set advertise address being used too late from that perspective --<br>
however, there is no hook before to set it.<br>
<br>
Open an enhancement issue on the tracker not to forget about it and I<br>
will check to see if there is a possibility to add this feature.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 21/08/14 12:00, Kristian F. H?gh wrote:<br>
> Hi,<br>
><br>
> Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.<br>
> The PUBLISH requests generated by pua* appear in tm:local-request event route.<br>
><br>
> Before sending, we call set_advertised_address and force_send_socket.<br>
> Still the requests have the IP address from the first "listen=" as source and Via address.<br>
> The requests are send out using the correct interface and no errors are logged.<br>
><br>
> When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.<br>
><br>
> mhomed=1 solves the issue, but I prefer force_send_socket.<br>
><br>
> Regards,<br>
> Kristian H?gh<br>
> Uni-tel<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Thu, 21 Aug 2014 17:17:59 +0200<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio script editor<br>
Message-ID: <<a href="mailto:53F60DA7.9020109@gmail.com">53F60DA7.9020109@gmail.com</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
Kamailio has a dedicated syntax file for vim -- from sources, do (as<br>
user editing the config):<br>
<br>
cd utils/misc/vim<br>
make install<br>
<br>
After that, when you open kamailio.cfg, vim/gvim/kvim/macvim should<br>
detect that it is kamailio syntax and with do proper highlighting.<br>
Perhaps some tokens/keywords added lately are missing from the syntax<br>
file, but it is still very good. I use it everywhere.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 21/08/14 16:51, Alex Balashov wrote:<br>
> Vim + :syntax on does a fine job with Kamailio route script.<br>
><br>
> Mostly.<br>
><br>
><br>
> On 21 August 2014 10:39:59 GMT-04:00, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>> wrote:<br>
><br>
>     Right. I have sublime text installed. Any recommendations for a<br>
>     color scheme?<br>
><br>
>     *From:*<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a><br>
>     [mailto:<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] *On Behalf Of<br>
>     *Narsay, Deep<br>
>     *Sent:* Thursday, August 21, 2014 4:24 PM<br>
>     *To:* Kamailio (SER) - Users Mailing List<br>
>     *Subject:* Re: [SR-Users] Kamailio script editor<br>
><br>
>     vi (vim/gvim)  or sublime text are more efficient than notepad.<br>
>     (They also have multiple color schemes) .<br>
><br>
>     On Thu, Aug 21, 2014 at 10:08 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a><br>
>     <mailto:<a href="mailto:GB@cm.nl">GB@cm.nl</a>>> wrote:<br>
><br>
>     Hello,<br>
><br>
>     What editor do most of you use for editing the kamailio config<br>
>     script? I?m using notepad, which works fine, but sometimes I wish<br>
>     I had something like text coloring and other useful stuff found in<br>
>     most scripting editors.<br>
><br>
>     Are there perhaps any plans for developing an editor for the<br>
>     kamailio config script? With code completion, etc.<br>
><br>
>     Regards,<br>
><br>
>     Grant<br>
><br>
><br>
>     _______________________________________________<br>
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>     list<br>
>     <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
>     <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
>     ------------------------------------------------------------------------<br>
><br>
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>     <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>     <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
> --<br>
> Sent from my mobile, and thus lacking in the refinement one might<br>
> expect from a fully fledged keyboard.<br>
><br>
> Alex Balashov - Principal<br>
> Evariste Systems LLC<br>
> 235 E Ponce de Leon Ave<br>
> Suite 106<br>
> Decatur, GA 30030<br>
> United States<br>
> Tel: +1-678-954-0671<br>
> Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com" target="_blank">http://www.alexbalashov.com</a><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/664b2b84/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/664b2b84/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Thu, 21 Aug 2014 20:06:26 +0300<br>
From: Mihai Marin <<a href="mailto:marinmihai@gmail.com">marinmihai@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: [SR-Users] switch kamailio to domain<br>
Message-ID:<br>
        <<a href="mailto:CACKuv4W2ii5DyqOCij3Lt6%2BhTXgvNkYmsbfAwKAvGwQUJjwNiA@mail.gmail.com">CACKuv4W2ii5DyqOCij3Lt6+hTXgvNkYmsbfAwKAvGwQUJjwNiA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello Sirs,<br>
The RLS module is eating my life. I just managed to make it work 2 months<br>
ago and now is not working anymore after I tried to put the kamailio under<br>
domain (until now it was simple ip).<br>
I don't understand why is not working but I saw a big difference that I<br>
don't understand:<br>
My environment:<br>
- the domain "<a href="http://domain.com" target="_blank">domain.com</a>" is pointing to the web server<br>
- kamailio is hosted under <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br>
- DNS has <a href="http://domain.com" target="_blank">domain.com</a> A record for web server's ip, <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> A record<br>
for kamailio's ip and SRV record for _sip._<a href="http://tcp.domain.com" target="_blank">tcp.domain.com</a> poting to<br>
sip.domain.dom<br>
Problem:<br>
kamailio presence is not working anymore and I think, the error is:<br>
grep_sock_info - checking if host==us: 11==14 && [<a href="http://domain.com" target="_blank">domain.com</a>] ==<br>
[xx.xx.xx.xx witch is the <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> IP]<br>
<br>
If, I change <a href="http://domain.com" target="_blank">domain.com</a> in DNS to point on the same ip as <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br>
RLS is working. This, I can't understand. Can anyone explain me why is not<br>
working using this configuration? Also, the RLS is working if i change my<br>
domain to be <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> (ex: <a href="mailto:sip%3Auser@sip.domain.com">sip:user@sip.domain.com</a>).<br>
<br>
<br>
Thank you.<br>
<br>
<br>
Best regards,<br>
Mihai M<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cac79a07/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cac79a07/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 12<br>
Date: Thu, 21 Aug 2014 15:12:22 -0400<br>
From: Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] SIP Trunk<br>
Message-ID:<br>
        <<a href="mailto:CAPgF-foDyt12cOfghr-S8V6y56BJj6XdYhZXf1MNM39hEBvwEg@mail.gmail.com">CAPgF-foDyt12cOfghr-S8V6y56BJj6XdYhZXf1MNM39hEBvwEg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I have tried following rule but somehow opensips challenging it from<br>
authentication<br>
<br>
route[3]{<br>
<br>
         if ( $ru =~ "^sip:011[0-9]*@") {<br>
                rewritehostport("<a href="http://65.65.65.65:5065" target="_blank">65.65.65.65:5065</a>");<br>
                xlog("Redirecting to SIP Provider... $ru\n");<br>
        exit;<br>
        };<br>
}<br>
<br>
<br>
<br>
<br>
U <a href="http://198.198.198.198:56186" target="_blank">198.198.198.198:56186</a> -> <a href="http://182.182.182.182:5060" target="_blank">182.182.182.182:5060</a><br>
INVITE <a href="mailto:sip%3A0116663332222@sip.a1routes.com">sip:0116663332222@sip.a1routes.com</a> SIP/2.0.<br>
Via: SIP/2.0/UDP <a href="http://198.198.198.198:56186" target="_blank">198.198.198.198:56186</a><br>
;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport.<br>
Max-Forwards: 70.<br>
Contact: <sip:1001@198.198.198.198:56186;transport=UDP>.<br>
To: <<a href="mailto:sip%3A0116663332222@sip.a1routes.com">sip:0116663332222@sip.a1routes.com</a>>.<br>
From: "1001"<<a href="mailto:sip%3A1001@sip.a1routes.com">sip:1001@sip.a1routes.com</a>>;tag=3894f90f.<br>
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...<br>
CSeq: 1 INVITE.<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE.<br>
Content-Type: application/sdp.<br>
Supported: replaces, norefersub.<br>
User-Agent: SessionTalk Version 4.52.<br>
Content-Length: 334.<br>
.<br>
v=0.<br>
o=- 1408648022732773 1408648022732773 IN IP4 10.199.232.27.<br>
s=-.<br>
c=IN IP4 10.199.232.27.<br>
t=0 0.<br>
m=audio 4004 RTP/AVP 3 102 0 8 9 101.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:102 iLBC/8000.<br>
a=fmtp:102 mode=30.<br>
a=rtpmap:0 PCMU/8000.<br>
a=rtpmap:8 PCMA/8000.<br>
a=rtpmap:9 G722/8000.<br>
a=rtpmap:101 telephone-event/8000.<br>
a=fmtp:101 0-15.<br>
a=sendrecv.<br>
<br>
#<br>
U <a href="http://182.182.182.182:5060" target="_blank">182.182.182.182:5060</a> -> <a href="http://198.198.198.198:56186" target="_blank">198.198.198.198:56186</a><br>
SIP/2.0 407 Proxy Authentication Required.<br>
Via: SIP/2.0/UDP <a href="http://198.198.198.198:56186" target="_blank">198.198.198.198:56186</a><br>
;received=198.198.198.198;branch=z9hG4bK-524287-1---cf509553a10c6e60;rport=56186.<br>
To: <<a href="mailto:sip%3A0116663332222@sip.a1routes.com">sip:0116663332222@sip.a1routes.com</a><br>
>;tag=c223d9b6a566b5450d01aad8764c61fe.1e68.<br>
From: "1001"<<a href="mailto:sip%3A1001@sip.a1routes.com">sip:1001@sip.a1routes.com</a>>;tag=3894f90f.<br>
Call-ID: rcKLOO3Z1CXYS2EtiCLt3w...<br>
CSeq: 1 INVITE.<br>
Proxy-Authenticate: Digest realm="<a href="http://sip.a1routes.com" target="_blank">sip.a1routes.com</a>",<br>
nonce="53f6436f0000009672b0aa913a92b9afaecefe5810253453".<br>
Server: OpenSIPS (1.11.2-tls (x86_64/linux)).<br>
Content-Length: 0.<br>
.<br>
<br>
<br>
<br>
On Thu, Aug 21, 2014 at 7:37 AM, Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com">ovoshlook@gmail.com</a>><br>
wrote:<br>
<br>
> rewritehost() sucessfully work with UAC. But As I know<br>
> 1) It statless function<br>
> 2) It read only string argumetns, and do not read variables<br>
><br>
><br>
> 2014-08-21 14:43 GMT+04:00 Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>>:<br>
><br>
> I will give it a try again today, can you please make sure my t_relay()<br>
>> syntax is correct?<br>
>><br>
>> So t_relay will rewrite my host past right and send call to trunk.<br>
>><br>
>> While ago I was using rewritehost() function but I think it's not working<br>
>> with UAC registrant module.<br>
>><br>
>><br>
>> Sent from my iPhone<br>
>><br>
>> On Aug 21, 2014, at 3:53 AM, Daniel Tryba <<a href="mailto:daniel@pocos.nl">daniel@pocos.nl</a>> wrote:<br>
>><br>
>> > On Thursday 21 August 2014 05:56:46 Satish Patel wrote:<br>
>> >>                if ( $rU =~ "sip:1[0-9]@*") {<br>
>> ><br>
>> > Try $ru instead, $rU only contains the dialled "number". So<br>
>> > $ru =~ "sip:1[0-9]@*"<br>
>> > or<br>
>> > $rU =~ "1[0-9]"<br>
>> ><br>
>> > But note the regexp, that only matches the exact numbers 10 to 19, if<br>
>> you are<br>
>> > trying to match prefixes you are doing it wrong (tm).<br>
>> ><br>
>> > _______________________________________________<br>
>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> > <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> > <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/ab2e5d6f/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/ab2e5d6f/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 13<br>
Date: Thu, 21 Aug 2014 22:16:07 +0200<br>
From: M?ns Nilsson <<a href="mailto:mansaxel@besserwisser.org">mansaxel@besserwisser.org</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio script editor<br>
Message-ID: <<a href="mailto:20140821201607.GB27938@besserwisser.org">20140821201607.GB27938@besserwisser.org</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Subject: [SR-Users] Kamailio script editor Date: Thu, Aug 21, 2014 at 04:08:43PM +0200 Quoting Grant Bagdasarian (<a href="mailto:GB@cm.nl">GB@cm.nl</a>):<br>
> Hello,<br>
><br>
> What editor do most of you use for editing the kamailio config script?<br>
<br>
nvi or emacs. (can't stand vim, to much bloat. bloat is ok in emacs but<br>
not in vim;  go figure ;-))<br>
<br>
> I'm using notepad,<br>
<br>
Poor you.<br>
<br>
--<br>
M?ns Nilsson     primary/secondary/besserwisser/machina<br>
MN-1334-RIPE                             +46 705 989668<br>
I hope you millionaires are having fun!  I just invested half your life<br>
savings in yeast!!<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 198 bytes<br>
Desc: Digital signature<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/dee2674f/attachment-0001.pgp" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/dee2674f/attachment-0001.pgp</a>><br>

<br>
------------------------------<br>
<br>
Message: 14<br>
Date: Thu, 21 Aug 2014 21:31:43 +0000<br>
From: Kristian Frederik H?gh <<a href="mailto:kfh@uni-tel.dk">kfh@uni-tel.dk</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] force_send_socket in event route<br>
        tm:local-request<br>
Message-ID: <<a href="mailto:1408656703494.69964@uni-tel.dk">1408656703494.69964@uni-tel.dk</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Daniel,<br>
<br>
FS#462 created<br>
<a href="http://sip-router.org/tracker/index.php?do=details&task_id=462" target="_blank">http://sip-router.org/tracker/index.php?do=details&task_id=462</a><br>
<br>
/Kristian.<br>
<br>
________________________________________<br>
Fra: <a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a> <<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>> p? vegne af Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>

Sendt: 21. august 2014 17:11<br>
Til: Kamailio (SER) - Users Mailing List<br>
Emne: Re: [SR-Users] force_send_socket in event route tm:local-request<br>
<br>
Hello,<br>
<br>
I think the ougoing request is already created in that event route, the<br>
set advertise address being used too late from that perspective --<br>
however, there is no hook before to set it.<br>
<br>
Open an enhancement issue on the tracker not to forget about it and I<br>
will check to see if there is a possibility to add this feature.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 21/08/14 12:00, Kristian F. H?gh wrote:<br>
> Hi,<br>
><br>
> Our kamailio 4.0.6 proxy uses pua/pua_dialoginfo and an external presence server.<br>
> The PUBLISH requests generated by pua* appear in tm:local-request event route.<br>
><br>
> Before sending, we call set_advertised_address and force_send_socket.<br>
> Still the requests have the IP address from the first "listen=" as source and Via address.<br>
> The requests are send out using the correct interface and no errors are logged.<br>
><br>
> When forwarding SUBSCRIBE requests received from clients, force_send_socket before t_relay_to_udp do work as expected.<br>
><br>
> mhomed=1 solves the issue, but I prefer force_send_socket.<br>
><br>
> Regards,<br>
> Kristian H?gh<br>
> Uni-tel<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Fri, 22 Aug 2014 05:26:08 +0500<br>
From: Muhammad Shahzad <<a href="mailto:shaheryarkh@gmail.com">shaheryarkh@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>>,        "Kamailio (SER) - Development<br>
        Mailing List" <<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>><br>
Subject: [SR-Users] How to uniquely identify SIP WS / WSS endpoint<br>
Message-ID:<br>
        <CAFZQphwtEcKE9c+nL=<a href="mailto:4%2B1dV4m7UtFDfk75a8ZeakYDisQSMKsA@mail.gmail.com">4+1dV4m7UtFDfk75a8ZeakYDisQSMKsA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Sorry for putting this question on both dev and user mailing lists, as it<br>
is a rather theoretical question and i hope some SIP guru on either mail<br>
list will answer.<br>
<br>
For non-WS endpoints which use TCP or UDP for SIP transport, each upstream<br>
request has top most VIA header pointing to the previous hop which<br>
forwarded the request to current hop while each downstream request has top<br>
most VIA header pointing to next hop to which it will be forwarded from<br>
current hop.<br>
<br>
But for WS endpoints, the top most VIA has dummy static value, so there is<br>
no way to identify who sent this request or to whom the reply is going to.<br>
<br>
Please note that i am not specifically interested in network address of<br>
remote endpoint (though VIA header is suppose to provide it), i only need<br>
to match requests and responses from / to a specific device using SIP v2.0<br>
standard.<br>
<br>
Any help is highly appreciated.<br>
<br>
Thank you.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/b56a1f67/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/b56a1f67/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 16<br>
Date: Thu, 21 Aug 2014 22:37:33 -0400<br>
From: Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: [SR-Users] nat_traversal vs nathelper for mediaproxy<br>
Message-ID:<br>
        <CAPgF-fpHGiR=ABxS3xHZECRXp6YA+1xo1V=<a href="mailto:pQMCk6msxeXJJ2g@mail.gmail.com">pQMCk6msxeXJJ2g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I am planing to implement mediaproxy so which NAT module will be good for<br>
media proxy and why?<br>
<br>
should i use nat_traversal ro nathelper ?  I haven't see any example people<br>
using nat_traversa. most of example i found on google are based on<br>
nathelper so just want to make sure which one i should use and why?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cdbf9cfc/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140821/cdbf9cfc/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 17<br>
Date: Fri, 22 Aug 2014 09:38:09 +0200<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>>,        Mihai Marin <<a href="mailto:marinmihai@gmail.com">marinmihai@gmail.com</a>><br>
Subject: Re: [SR-Users] switch kamailio to domain<br>
Message-ID: <<a href="mailto:53F6F361.6020607@gmail.com">53F6F361.6020607@gmail.com</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
Hello,<br>
<br>
if you want to handle the <a href="http://domain.com" target="_blank">domain.com</a> on the SIP server but the IP of<br>
that domain is pointing elsewhere, just add in kamailio.cfg:<br>
<br>
alias=<a href="http://domain.com" target="_blank">domain.com</a><br>
<br>
An alternative is to use domain module (suitable when you have many<br>
domains and you want to store them in database).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 21/08/14 19:06, Mihai Marin wrote:<br>
> Hello Sirs,<br>
> The RLS module is eating my life. I just managed to make it work 2<br>
> months ago and now is not working anymore after I tried to put the<br>
> kamailio under domain (until now it was simple ip).<br>
> I don't understand why is not working but I saw a big difference that<br>
> I don't understand:<br>
> My environment:<br>
> - the domain "<a href="http://domain.com" target="_blank">domain.com</a> <<a href="http://domain.com" target="_blank">http://domain.com</a>>" is pointing to the web<br>
> server<br>
> - kamailio is hosted under <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>><br>
> - DNS has <a href="http://domain.com" target="_blank">domain.com</a> <<a href="http://domain.com" target="_blank">http://domain.com</a>> A record for web server's ip,<br>
> <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> A record for kamailio's ip and<br>
> SRV record for _sip._<a href="http://tcp.domain.com" target="_blank">tcp.domain.com</a> <<a href="http://tcp.domain.com" target="_blank">http://tcp.domain.com</a>> poting to<br>
> sip.domain.dom<br>
> Problem:<br>
> kamailio presence is not working anymore and I think, the error is:<br>
> grep_sock_info - checking if host==us: 11==14 && [<a href="http://domain.com" target="_blank">domain.com</a><br>
> <<a href="http://domain.com" target="_blank">http://domain.com</a>>] == [xx.xx.xx.xx witch is the <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br>
> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> IP]<br>
><br>
> If, I change <a href="http://domain.com" target="_blank">domain.com</a> <<a href="http://domain.com" target="_blank">http://domain.com</a>> in DNS to point on the<br>
> same ip as <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> RLS is working.<br>
> This, I can't understand. Can anyone explain me why is not working<br>
> using this configuration? Also, the RLS is working if i change my<br>
> domain to be <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> (ex:<br>
> <a href="mailto:sip%3Auser@sip.domain.com">sip:user@sip.domain.com</a> <mailto:<a href="mailto:sip%253Auser@sip.domain.com">sip%3Auser@sip.domain.com</a>>).<br>
><br>
><br>
> Thank you.<br>
><br>
><br>
> Best regards,<br>
> Mihai M<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/1256e83f/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/1256e83f/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 18<br>
Date: Fri, 22 Aug 2014 12:21:38 +0300<br>
From: Mihai Marin <<a href="mailto:marinmihai@gmail.com">marinmihai@gmail.com</a>><br>
To: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
Cc: "Kamailio \(SER\) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] switch kamailio to domain<br>
Message-ID:<br>
        <CACKuv4WZkrhz8Z+k=<a href="mailto:ZzTFZJuQ901r3vp4Pio25GXZHdwH7J25g@mail.gmail.com">ZzTFZJuQ901r3vp4Pio25GXZHdwH7J25g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello Daniel,<br>
Thank you for your answer. I managed to fix 20 minutes ago but the issue (I<br>
think) is in the RLS module. I had to add outbound_proxy and change the<br>
server_address parameters for the RLS to the real domain that ponts to<br>
kamailio.<br>
<br>
Previous (when this was not working) I had<br>
modparam("rls", "server_address", "<a href="mailto:sip%3Arls@domain.com">sip:rls@domain.com</a>")<br>
The fix was:<br>
modparam("rls", "server_address", "<a href="mailto:sip%3Arls@sip.domain.com">sip:rls@sip.domain.com</a>")<br>
modparam("rls", "outbound_proxy", "sip:<a href="http://sip.domain.com" target="_blank">sip.domain.com</a>")<br>
<br>
I'm like a beginner with this beautiful technology but I can't understand<br>
why this is happening. The RLS module checks for A record instead of SRV<br>
record in the DNS?<br>
<br>
As I mentioned in my previous e-mail, my DNS configuration for <a href="http://domain.com" target="_blank">domain.com</a><br>
is:<br>
A records:<br>
@  - > a web server ip<br>
sip - > kamailio's ip<br>
SRV records:<br>
_sip._<a href="http://udp.domain.com" target="_blank">udp.domain.com</a> -> <a href="http://sip.domain.com:5060" target="_blank">sip.domain.com:5060</a><br>
<br>
In my theory (what I understood) is that kamailio checks for the SRV<br>
record. So, to identify the IP, will follow the steps:<br>
1. check SRV record (_sip._<a href="http://proto.domain.com" target="_blank">proto.domain.com</a>) for <a href="http://domain.com" target="_blank">domain.com</a> ......<br>
<a href="http://sip.domain.com:5060" target="_blank">sip.domain.com:5060</a><br>
2. check A record for sip.domain.com.......xx.xx.xx.xx<br>
3. send to xx.xx.xx.xx:5060<br>
In a multidomain scenario, all the domains should have the SRV record in<br>
DNS pointing to <a href="http://sip.domain.com:5060" target="_blank">sip.domain.com:5060</a>.<br>
<br>
I can't see how this RLS could work with a multi-domain scenario. Is it<br>
correct? Do I misunderstand something in the theory?<br>
<br>
I hope I don't tell stupid things here.<br>
<br>
Thank you.<br>
<br>
Best regards,<br>
Mihai M<br>
<br>
<br>
On Fri, Aug 22, 2014 at 10:38 AM, Daniel-Constantin Mierla <<br>
<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br>
<br>
>  Hello,<br>
><br>
> if you want to handle the <a href="http://domain.com" target="_blank">domain.com</a> on the SIP server but the IP of that<br>
> domain is pointing elsewhere, just add in kamailio.cfg:<br>
><br>
> alias=<a href="http://domain.com" target="_blank">domain.com</a><br>
><br>
> An alternative is to use domain module (suitable when you have many<br>
> domains and you want to store them in database).<br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
> On 21/08/14 19:06, Mihai Marin wrote:<br>
><br>
> Hello Sirs,<br>
> The RLS module is eating my life. I just managed to make it work 2 months<br>
> ago and now is not working anymore after I tried to put the kamailio under<br>
> domain (until now it was simple ip).<br>
> I don't understand why is not working but I saw a big difference that I<br>
> don't understand:<br>
> My environment:<br>
> - the domain "<a href="http://domain.com" target="_blank">domain.com</a>" is pointing to the web server<br>
> - kamailio is hosted under <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br>
> - DNS has <a href="http://domain.com" target="_blank">domain.com</a> A record for web server's ip, <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> A<br>
> record for kamailio's ip and SRV record for _sip._<a href="http://tcp.domain.com" target="_blank">tcp.domain.com</a> poting<br>
> to sip.domain.dom<br>
> Problem:<br>
> kamailio presence is not working anymore and I think, the error is:<br>
> grep_sock_info - checking if host==us: 11==14 && [<a href="http://domain.com" target="_blank">domain.com</a>] ==<br>
> [xx.xx.xx.xx witch is the <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> IP]<br>
><br>
>  If, I change <a href="http://domain.com" target="_blank">domain.com</a> in DNS to point on the same ip as <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br>
> RLS is working. This, I can't understand. Can anyone explain me why is not<br>
> working using this configuration? Also, the RLS is working if i change my<br>
> domain to be <a href="http://sip.domain.com" target="_blank">sip.domain.com</a> (ex: <a href="mailto:sip%3Auser@sip.domain.com">sip:user@sip.domain.com</a>).<br>
><br>
><br>
>  Thank you.<br>
><br>
><br>
>  Best regards,<br>
> Mihai M<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>

><br>
><br>
> --<br>
> Daniel-Constantin Mierlahttp://<a href="http://twitter.com/#!/miconda" target="_blank">twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>

> Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA<br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/92f9db28/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20140822/92f9db28/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
End of sr-users Digest, Vol 111, Issue 21<br>
*****************************************<br>
</blockquote></div><br></div>