[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Gamaliel Bedolla <gbf@t...>
 Subject :  How to bind port port for second leg
 Date :  Fri, 23 Mar 2012 14:14:19 -0600
Dear Yate users/developers,

I have to NAT via iptables address and port of the traffic in and out of mi
YATE, ip address 10.100.0.2. When it receives an INVITE, it sends the
answer to the correct port (5060), but when initiates the second leg (to
where the call should be redirected) it initiates the call on variable
port, 1030, 1070, etc. but I need to bind outgoing calls to port 5060 to
accomplish the NAT rule.

This is my ysipchan.conf:
[general]
port=5060

I'm using YATE/4.0.1.

And this is the flow of messages:
(1)Sofswitch == 10.100.0.1
(2)Yate      == 10.100.0.2
(3)Asterisk  == 10.100.0.3


(1)[5060]-----INVITE---->[5060](2)
(1)[5060]<--100 TRYING---[5060](2)
       (2)[1030]-----INVITE---->[5060](3)    [5060](3)    
Dear Yate users/developers,

I have to NAT via iptables address and port of the traffic in and out of mi YATE, ip address 10.100.0.2. When it receives an INVITE, it sends the answer to the correct port (5060), but when initiates the second leg (to where the call should be redirected) it initiates the call on variable port, 1030, 1070, etc. but I need to bind outgoing calls to port 5060 to accomplish the NAT rule.

This is my ysipchan.conf:
[general]
port=5060

I'm using YATE/4.0.1.

And this is the flow of messages:
(1)Sofswitch == 10.100.0.1
(2)Yate      == 10.100.0.2
(3)Asterisk  == 10.100.0.3


(1)[5060]-----INVITE---->[5060](2)
(1)[5060]<--100 TRYING---[5060](2)
      (2)[1030]-----INVITE---->[5060](3)    <This is what I want to be exiting on port 5060
      (2)[5060]<--100 TRYING---[5060](3)
      (2)[5060]<---200 OK------[5060](3)
      (2)[1030]-------ACK----->[5060](3)    <This is what I want to be exiting on port 5060
(1)[5060]<-----200 OK----[5060](2)

Can you help me on this?
Please let me know if more info is needed.
Best regards