Summary:ASTERISK-19459: Asterisk sending BYE on wrong NIC
Reporter:Dan McKeehan (dmckeehan)Labels:
Date Opened:2012-03-01 20:00:14.000-0600Date Closed:2012-03-02 12:14:25.000-0600
Versions: Frequency of
Environment:Centos x86_64 5.7Attachments:
Description:Asterisk server dual nic, proxy server on eth0, rtp goes out eth1

In this environment the server sends ACK and BYE messages out eth1 even though outboundproxy is set in the sip.conf

It seems to reply to the ip that is in the contact field, it should send all the sip traffic to the outboundproxy.

Comments:By: Walter Doekes (wdoekes) 2012-03-02 02:03:16.167-0600

SIP proxies are supposed to get out of the way unless they explicitly want to stay in them (see the Record-Route options for your proxy).

Having said that, there is usually an option to force the use of the proxy. In asterisk's case the sip.conf sample says this:

;outboundproxy=proxy.provider.domain,force      ; Send ALL outbound signalling to proxy, ignoring route: headers

By: Dan McKeehan (dmckeehan) 2012-03-02 12:14:25.566-0600

The ,force in the outboundproxy field in sip.conf worked.  Please add to comment field in sip.conf for everyone else.