Re: [SR-Users] Kamailio with 2 Public and Private IPs- SIP Call flow issues

2018-04-16 Thread Arik Halperin
Thanks, Issue is solved with double rr

Arik

> On 16 Apr 2018, at 12:13, Federico Cabiddu  wrote:
> 
> Hi,
> your INVITE contains a single Record-Route, with Kamailio's Public IP 
> address. Freewitch in the following in0dialog messages, as the BYE is, will 
> have nowhere else to send them than the public IP.
> If you want FS to send in-dialog messages to the private IP you have to have 
> two Record-Route headers:
> http://www.kamailio.org/docs/modules/devel/modules/rr.html#rr.p.enable_double_rr
>  
> 
> 
> Best regards,
> 
> Federico
> 
> On Mon, Apr 16, 2018 at 11:05 AM, arik halperin  > wrote:
> Hello,
> 
>  
> 
> I have the following setup:
> 
>  
> 
> Kamailio:
> 
>   Public Interface 70.36.25.65
> 
>   Private Interface 10.168.10.227
> 
>  
> 
> Freeswitch:
> 
>Private Interface 10.168.10.200
> 
>  
> 
> I’m routing calls from kamailio to freeswitch, but when I try to hang up the 
> call the freeswitch sends the BYE to the public address(70.36.25.65) and not 
> to the private address 10.168.10.227. 200OK and ACK work correctly. It’s only 
> the BYE that has an issue.
> 
>  
> 
>  
> 
> Showing INVITES:
> 
>  
> 
> Client Invite:
> 
>  
> 
> T 82.80.164.63:53871  -> 70.36.25.65:5099 
>  [AP]
> 
> INVITE sip:+972549428460@70.36.25.65:5099 
>  SIP/2.0.
> 
> Via: SIP/2.0/TCP 
> 10.0.0.42:51619;branch=z9hG4bK-524287-1---52dcc73ec891de14;rport.
> 
> Max-Forwards: 70.
> 
> Contact:  63:51620;rinstance=1f9d21b54116df89;transport=tcp>.
> 
> To:  >.
> 
> From: "972545234585" >;tag=902c5325.
> 
>  
> 
> Kamailio to FS:
> 
>  
> 
> T 10.168.10.227:46506  -> 10.168.10.200:5080 
>  [AP]
> 
> INVITE sip:+972549428460@70.36.25.65:5099 
>  SIP/2.0.
> 
> Record-Route:  ;transport=tcp;lr=on;ftag=902c5325;nat=yes>.
> 
> Via: SIP/2.0/TCP 
> 70.36.25.65:5099;branch=z9hG4bK1117.1b91cfe0632bd6f036b308f85898e862.1;i=1.
> 
> Via: SIP/2.0/TCP 
> 10.0.0.42:51619;received=82.80.164.63;branch=z9hG4bK-524287-1---9b6758521ff0f528;rport=53871.
> 
> Max-Forwards: 69.
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



smime.p7s
Description: S/MIME cryptographic signature
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio with 2 Public and Private IPs- SIP Call flow issues

2018-04-16 Thread Federico Cabiddu
Hi,
your INVITE contains a single Record-Route, with Kamailio's Public IP
address. Freewitch in the following in0dialog messages, as the BYE is, will
have nowhere else to send them than the public IP.
If you want FS to send in-dialog messages to the private IP you have to
have two Record-Route headers:
http://www.kamailio.org/docs/modules/devel/modules/rr.html#rr.p.enable_double_rr

Best regards,

Federico

On Mon, Apr 16, 2018 at 11:05 AM, arik halperin 
wrote:

> Hello,
>
>
>
> I have the following setup:
>
>
>
> Kamailio:
>
>   Public Interface 70.36.25.65
>
>   Private Interface 10.168.10.227
>
>
>
> Freeswitch:
>
>Private Interface 10.168.10.200
>
>
>
> I’m routing calls from kamailio to freeswitch, but when I try to hang up
> the call the freeswitch sends the BYE to the public address(70.36.25.65)
> and not to the private address 10.168.10.227. 200OK and ACK work correctly.
> It’s only the BYE that has an issue.
>
>
>
>
>
> Showing INVITES:
>
>
>
> Client Invite:
>
>
>
> T 82.80.164.63:53871 -> 70.36.25.65:5099 [AP]
>
> INVITE sip:+972549428460@70.36.25.65:5099 SIP/2.0.
>
> Via: SIP/2.0/TCP 10.0.0.42:51619;branch=z9hG4bK-524287-1---
> 52dcc73ec891de14;rport.
>
> Max-Forwards: 70.
>
> Contact:  1f9d21b54116df89;transport=tcp>.
>
> To: .
>
> From: "972545234585";tag=902c5325.
>
>
>
> Kamailio to FS:
>
>
>
> T 10.168.10.227:46506 -> 10.168.10.200:5080 [AP]
>
> INVITE sip:+972549428460@70.36.25.65:5099 SIP/2.0.
>
> Record-Route:  902c5325;nat=yes>.
>
> Via: SIP/2.0/TCP 70.36.25.65:5099;branch=z9hG4bK1117.
> 1b91cfe0632bd6f036b308f85898e862.1;i=1.
>
> Via: SIP/2.0/TCP 10.0.0.42:51619;received=82.80.164.63;branch=z9hG4bK-
> 524287-1---9b6758521ff0f528;rport=53871.
>
> Max-Forwards: 69.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio with 2 Public and Private IPs- SIP Call flow issues

2018-04-16 Thread arik halperin
Hello,

 

I have the following setup:

 

 Kamailio:

  Public Interface 70.36.25.65

  Private Interface 10.168.10.227

 

Freeswitch:

   Private Interface 10.168.10.200

 

I’m routing calls from kamailio to freeswitch, but when I try to hang up the 
call the freeswitch sends the BYE to the public address(70.36.25.65) and not to 
the private address 10.168.10.227. 200OK and ACK work correctly. It’s only the 
BYE that has an issue.

 

 

Showing INVITES:

 

Client Invite:

 

T 82.80.164.63:53871 -> 70.36.25.65:5099 [AP]

INVITE sip:+972549428460@70.36.25.65:5099 SIP/2.0.

Via: SIP/2.0/TCP 
10.0.0.42:51619;branch=z9hG4bK-524287-1---52dcc73ec891de14;rport.

Max-Forwards: 70.

Contact: 
.

To: .

From: "972545234585";tag=902c5325.

 

Kamailio to FS:

 

T 10.168.10.227:46506 -> 10.168.10.200:5080 [AP]

INVITE sip:+972549428460@70.36.25.65:5099 SIP/2.0.

Record-Route: .

Via: SIP/2.0/TCP 
70.36.25.65:5099;branch=z9hG4bK1117.1b91cfe0632bd6f036b308f85898e862.1;i=1.

Via: SIP/2.0/TCP 
10.0.0.42:51619;received=82.80.164.63;branch=z9hG4bK-524287-1---9b6758521ff0f528;rport=53871.

Max-Forwards: 69.

 

 

 

 

 

 

 

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users