Re: [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@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: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org -- _ -- 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
Re: [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." -- _ -- 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
Re: [asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 10:39 AM, Kevin P. Fleming wrote: 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@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. Thanks for the response. Home asterisk : 10.0.0 - Office: 1.8.8.0 So I thought I'd leave all the sip providers on udp, and move the home-office to tcp. And registration just work Just Worked over the default tcp registry port - which I was surprised to learn was 5060, and not 5061. So it appears cablevision only blocks udp 5060. 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
Re: [asterisk-users] how to listen on different sip port for a device?
2011/12/26 sean darcy : > So how do I get * to listen to two different ports? sip.conf section [general] bindport=whatever-port-you-want -- _ -- 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
Re: [asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 04:15 PM, sean darcy wrote: Thanks for the response. Home asterisk : 10.0.0 - Office: 1.8.8.0 So I thought I'd leave all the sip providers on udp, and move the home-office to tcp. And registration just work Just Worked over the default tcp registry port - which I was surprised to learn was 5060, and not 5061. So it appears cablevision only blocks udp 5060. sean How about using multiple IP tables entries to redirect several ports down to 5060. Dunno if it would work, just a wild-hair guess. I should test it later. -- _ -- 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
Re: [asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 05:06 PM, James Sharp wrote: On 12/26/2011 04:15 PM, sean darcy wrote: Thanks for the response. Home asterisk : 10.0.0 - Office: 1.8.8.0 So I thought I'd leave all the sip providers on udp, and move the home-office to tcp. And registration just work Just Worked over the default tcp registry port - which I was surprised to learn was 5060, and not 5061. So it appears cablevision only blocks udp 5060. sean How about using multiple IP tables entries to redirect several ports down to 5060. Dunno if it would work, just a wild-hair guess. I should test it later. It won't, because SIP signaling requires that the UAs include their own addresses and ports in the signaling, which requires that they know what they are :-) There are some tricks that can be used to get around it, but they aren't trivial and they require that the mapping be done bidirectionally by whatever is doing the SNAT/DNAT stuff. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org -- _ -- 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
Re: [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: 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
Re: [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:dicken...@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: >>> 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 -- _ -- 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
Re: [asterisk-users] how to listen on different sip port for a device?
On 12/26/2011 08:17 PM, Jim Dickenson wrote: Why not use IAX trunk instead of SIP. This would make it very easy to talk between the two * systems. I've tried iax. I found the voice quality was better with sip. YMMV. 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