[OpenSIPS-Users] Identify RFC1918 Address in request domain

2019-05-07 Thread Sunil More
Hi All,

I am using a setup on GCP with advertised IP address. It will be used as an
edge proxy to send/receive calls. I have a VPN client connecting directly
to the GCP instance on its private interface.

I want to forward inbound calls to clients. While doing this I want to
identify if the forwarding IP is private IP (RFC1918) or public IP and
likewise use the advertised IP address. How can I do this ?

Regards,
Sunil More
Ph. 919503338275
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] cluster dialog synchronization - 200Ok/180Ringing ?

2019-05-07 Thread Vlad Patrascu
Yes it is . But even if the dialog specific data would have been 
replicated sooner, transactions are not replicated. As such, when the 
backup node takes over it cannot make sense of the 200 OK anyway.


Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

On 05/07/2019 05:06 PM, Konrad Malewski wrote:


so if there is like 60 sec after 180ringing and 200ok - during that 
time this dialog is vulnerable to failover ?


On Tue, May 7, 2019 at 3:59 PM Vlad Patrascu > wrote:


Hi Konrad,

The dialog is replicated after the 200 OK is received.

Regards,

Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com



On 05/07/2019 04:43 PM, Konrad Malewski wrote:

Hello,

I have a question regarding dialog synchronization in opensips
cluster.

Does dialog synchronization happen after initial transaction is
complete or before ? (When backup is able to take over failed
active node?)

I am asking because it may be a lot of time after 180Ringing
before 200Ok arrives.

thanks,
-- 
Konrad Malewski



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org 

https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opensips.org_cgi-2Dbin_mailman_listinfo_users&d=DwIGaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=Fj_nyRYH9UHn3Dx85pRDIF29KpGk8e8xgDGDS9NQfe0&s=zNjisP_DWAX5QHdaLvr5SOM8oZ1MfdElR_5vfGOJ4ls&e=



--
--
Konrad Malewski


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] cluster dialog synchronization - 200Ok/180Ringing ?

2019-05-07 Thread Konrad Malewski
so if there is like 60 sec after 180ringing and 200ok - during that time
this dialog is vulnerable to failover ?

On Tue, May 7, 2019 at 3:59 PM Vlad Patrascu  wrote:

> Hi Konrad,
>
> The dialog is replicated after the 200 OK is received.
>
> Regards,
>
> Vlad Patrascu
> OpenSIPS Developerhttp://www.opensips-solutions.com 
> 
>
> On 05/07/2019 04:43 PM, Konrad Malewski wrote:
>
> Hello,
>
> I have a question regarding dialog synchronization in opensips cluster.
>
> Does dialog synchronization happen after initial transaction is complete
> or before ? (When backup is able to take over failed active node?)
>
> I am asking because it may be a lot of time after 180Ringing before 200Ok
> arrives.
>
> thanks,
> --
> Konrad Malewski
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  
> 
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opensips.org_cgi-2Dbin_mailman_listinfo_users&d=DwIGaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=Q2-P3NgorS0ZH4_aMeg5NL1og3Rsx6yNgM-aaPfa8xzzIkVlEcHJTs2jlyabbp9e&m=Fj_nyRYH9UHn3Dx85pRDIF29KpGk8e8xgDGDS9NQfe0&s=zNjisP_DWAX5QHdaLvr5SOM8oZ1MfdElR_5vfGOJ4ls&e=
>


-- 
-- 
Konrad Malewski
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] cluster dialog synchronization - 200Ok/180Ringing ?

2019-05-07 Thread Vlad Patrascu

Hi Konrad,

The dialog is replicated after the 200 OK is received.

Regards,

Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

On 05/07/2019 04:43 PM, Konrad Malewski wrote:

Hello,

I have a question regarding dialog synchronization in opensips cluster.

Does dialog synchronization happen after initial transaction is 
complete or before ? (When backup is able to take over failed active 
node?)


I am asking because it may be a lot of time after 180Ringing before 
200Ok arrives.


thanks,
--
Konrad Malewski


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] cluster dialog synchronization - 200Ok/180Ringing ?

2019-05-07 Thread Konrad Malewski
Hello,

I have a question regarding dialog synchronization in opensips cluster.

Does dialog synchronization happen after initial transaction is complete or
before ? (When backup is able to take over failed active node?)

I am asking because it may be a lot of time after 180Ringing before 200Ok
arrives.

thanks,
-- 
Konrad Malewski
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] check_source_address()

2019-05-07 Thread Mark Farmer
Thanks for everyones input on this. Removal of the domain name routing
resolved the issue.

Mark.


On Fri, 26 Apr 2019 at 14:28, Mark Farmer  wrote:

> Thanks Ben, that seems to be the case. I will update the list with the
> results.
>
> Mark.
>
>
> On Fri, 26 Apr 2019 at 14:09, Ben Newlin  wrote:
>
>> It would cause the issue if they are sending all requests to that domain,
>> including sequential requests like re-invite, and ignoring the Contact
>> provided in the 200 OK. That is not correct according to RFC 3261, but I
>> have seen many carriers do this.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Mark
>> Farmer 
>> *Reply-To: *OpenSIPS users mailling list 
>> *Date: *Friday, April 26, 2019 at 8:59 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *Re: [OpenSIPS-Users] check_source_address()
>>
>>
>>
>> Thank you, that makes sense now. I will keep that in mind for the future.
>>
>> In the meantime I have raised a query with our provider.
>>
>>
>>
>> Additionally, I realised this morning that at our request, our provider
>> is sending calls to us via a domain name instead of an IP. Would that
>> likely cause the issue even if they are using RFC 3261? I have asked for it
>> to be removed.
>>
>>
>>
>> Best regards
>>
>> Mark.
>>
>>
>>
>>
>>
>>
>>
>> On Thu, 25 Apr 2019 at 16:50, Liviu Chircu  wrote:
>>
>> On 25.04.2019 17:11, Mark Farmer wrote:
>>
>> Thanks so much for helping with this.
>>
>>
>>
>> I have applied the suggested config but the result is the same. OpenSIPS
>> routes the RE-INVITE to itself and it never gets routed back to the
>> Asterisk box.
>>
>> If the 2nd Route header in the RE-INVITE is the IP of the other interface
>> - will that not always be the case? It's as though the 2nd Route header
>> needs to be changed to have the IP of the Asterisk server.
>>
>>
>>
>> Sanitized RE-INVITE from provider:
>>
>>
>>
>> INVITE sip:aster...@my.host.name:5060 SIP/2.0
>>
>>
>>
>> If OpenSIPS identifies "my.host.name:5060" as a local domain, this will
>> screw up the routing,
>> as it will go from loose (RFC 3261) to strict (old, deprecated RFC 2543
>> mechanism).  Notice how
>> its not preserving the R-URI when it routes to itself as should happen
>> with RFC 3261 routing,
>> because it has fallen back to RFC 2543 routing.
>>
>> Your provider needs to follow RFC 3261 and use as Re-INVITE Request-URI
>> the exact Contact
>> advertised by the caller: 
>> , and not confuse your routing engine
>> with a random target such as: INVITE sip:aster...@my.host.name:5060.
>>
>> --
>>
>> Liviu Chircu
>>
>> OpenSIPS Developer
>>
>> http://www.opensips-solutions.com
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>> --
>>
>> Mark Farmer
>> farm...@gmail.com
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Mark Farmer
> farm...@gmail.com
>


-- 
Mark Farmer
farm...@gmail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users