sean darcy
2011-Dec-26 14:55 UTC
[asterisk-users] how to listen on different sip port for a device?
I'm trying to allow access to the office from home. But the ip provider (cablevision) blocks udp 5060. I can see the register packets leaving on wireshark, but nothing received by office. Changed to port to 6111 and now the packets show up. In the server I've set port=6111 in the device in sip.conf, but * is NOT listening for 6111: netstat -an | grep 5060 tcp 0 0 0.0.0.0:5060 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:5060 0.0.0.0:* netstat -an | grep 6111 [root at PBX ~]# I can't see how to use bindaddr. I need * to also listen to 5060: that's what our sip providers use. So how do I get * to listen to two different ports? sean
Kevin P. Fleming
2011-Dec-26 15:39 UTC
[asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 08:55 AM, sean darcy wrote:> I'm trying to allow access to the office from home. But the ip provider > (cablevision) blocks udp 5060. I can see the register packets leaving on > wireshark, but nothing received by office. Changed to port to 6111 and > now the packets show up. > > In the server I've set port=6111 in the device in sip.conf, but * is NOT > listening for 6111: > > netstat -an | grep 5060 > tcp 0 0 0.0.0.0:5060 0.0.0.0:* LISTEN > udp 0 0 0.0.0.0:5060 0.0.0.0:* > > netstat -an | grep 6111 > [root at PBX ~]# > > I can't see how to use bindaddr. I need * to also listen to 5060: that's > what our sip providers use. > > So how do I get * to listen to two different ports?The 'port' setting for a peer has nothing at all to do with where Asterisk would listen for traffic; it defines the port number Asterisk should *send* traffic to for a non-dynamic peer. You didn't mention which version of Asterisk you are using, so it's hard to give you concrete answers. All current versions of Asterisk can only listen on one port for SIP over UDP traffic, but the versions that support SIP over TCP can listen on a different port for TCP. If you are using a TCP-capable version of Asterisk and a TCP-capable endpoint, you can try that. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org
Doug Lytle
2011-Dec-26 15:53 UTC
[asterisk-users] how to listen on different sip port for a device?
Kevin P. Fleming wrote:> If you are using a TCP-capable version of Asterisk and a TCP-capable > endpoint, you can try that.Or, You can setup OpenVPN, works very well. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Yaroslav Panych
2011-Dec-26 22:43 UTC
[asterisk-users] how to listen on different sip port for a device?
2011/12/26 sean darcy <seandarcy2 at gmail.com>:> So how do I get * to listen to two different ports?sip.conf section [general] bindport=whatever-port-you-want
sean darcy
2011-Dec-27 00:07 UTC
[asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 05:43 PM, Yaroslav Panych wrote:> 2011/12/26 sean darcy<seandarcy2 at gmail.com>: >> So how do I get * to listen to two different ports? > sip.conf > section [general] > bindport=whatever-port-you-want >Thanks, but the problem is to get more than 1 port, 5060 and (at least) one other. sean
Jim Dickenson
2011-Dec-27 01:17 UTC
[asterisk-users] how to listen on different sip port for a device?
Why not use IAX trunk instead of SIP. This would make it very easy to talk between the two * systems. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Dec 26, 2011, at 4:07 PM, sean darcy wrote:> On 12/26/2011 05:43 PM, Yaroslav Panych wrote: >> 2011/12/26 sean darcy<seandarcy2 at gmail.com>: >>> So how do I get * to listen to two different ports? >> sip.conf >> section [general] >> bindport=whatever-port-you-want >> > > Thanks, but the problem is to get more than 1 port, 5060 and (at least) one other. > > sean > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users