Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-19 Thread David Cunningham
Thank you Thomas.


On Mon, 18 Jul 2022 at 12:24, Thomas Ray  wrote:

> Moving to chan_pjsip solves this problem.
>
>
>
> *From: *asterisk-users  on
> behalf of David Cunningham 
> *Reply-To: *Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Date: *Sunday, July 17, 2022 at 5:53 PM
> *To: *Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject: *Re: [asterisk-users] Listen on 2 of 3 IP addresses
>
>
>
> Thank you for that reply, Joshua.
>
>
>
> Henning, we can restrict access using the firewall, but unfortunately that
> doesn't solve the problem with the address that's put in the SDP.
>
>
>
>
>
> On Sat, 16 Jul 2022 at 03:14, Henning Follmann 
> wrote:
>
> On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:
> > On Fri, Jul 15, 2022 at 1:37 AM David Cunningham <
> dcunning...@voisonics.com>
> > wrote:
> >
> > > Hello,
> > >
> > > We have an Asterisk server with 3 IP addresses, and need to listen on
> only
> > > 2 of those. This is with chan_sip. Does anyone know if it's possible?
> > >
> > > If Asterisk listens on the third address then it seems to cause
> problems
> > > with the media address put in the SDP for our use case.
> > >
> >
> > It's not. The chan_sip module allows you to bind to one thing, either a
> > specific address or an any address.
> >
>
> Well...
> maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.
>
> -H
>
> --
> Henning Follmann   | hfollm...@itcfollmann.com
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> --
>
> David Cunningham, Voisonics Limited
> http://voisonics.com/
> USA: +1 213 221 1092
> New Zealand: +64 (0)28 2558 3782
>
> -- _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/ New to Asterisk? Start here:
> https://wiki.asterisk.org/wiki/display/AST/Getting+Started 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 --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users



-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-17 Thread Thomas Ray
Moving to chan_pjsip solves this problem.

 

From: asterisk-users  on behalf of 
David Cunningham 
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion 

Date: Sunday, July 17, 2022 at 5:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Listen on 2 of 3 IP addresses

 

Thank you for that reply, Joshua.

 

Henning, we can restrict access using the firewall, but unfortunately that 
doesn't solve the problem with the address that's put in the SDP.

 

 

On Sat, 16 Jul 2022 at 03:14, Henning Follmann  
wrote:

On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:
> On Fri, Jul 15, 2022 at 1:37 AM David Cunningham 
> wrote:
> 
> > Hello,
> >
> > We have an Asterisk server with 3 IP addresses, and need to listen on only
> > 2 of those. This is with chan_sip. Does anyone know if it's possible?
> >
> > If Asterisk listens on the third address then it seems to cause problems
> > with the media address put in the SDP for our use case.
> >
> 
> It's not. The chan_sip module allows you to bind to one thing, either a
> specific address or an any address.
> 

Well...
maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.

-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



-- 

David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782

-- _ -- 
Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out 
the new Asterisk community forum at: https://community.asterisk.org/ New to 
Asterisk? Start here: 
https://wiki.asterisk.org/wiki/display/AST/Getting+Started 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-17 Thread David Cunningham
Thank you for that reply, Joshua.

Henning, we can restrict access using the firewall, but unfortunately that
doesn't solve the problem with the address that's put in the SDP.


On Sat, 16 Jul 2022 at 03:14, Henning Follmann 
wrote:

> On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:
> > On Fri, Jul 15, 2022 at 1:37 AM David Cunningham <
> dcunning...@voisonics.com>
> > wrote:
> >
> > > Hello,
> > >
> > > We have an Asterisk server with 3 IP addresses, and need to listen on
> only
> > > 2 of those. This is with chan_sip. Does anyone know if it's possible?
> > >
> > > If Asterisk listens on the third address then it seems to cause
> problems
> > > with the media address put in the SDP for our use case.
> > >
> >
> > It's not. The chan_sip module allows you to bind to one thing, either a
> > specific address or an any address.
> >
>
> Well...
> maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.
>
> -H
>
> --
> Henning Follmann   | hfollm...@itcfollmann.com
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users



-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-15 Thread Thomas Ray
The answer is to use chan_pjsip since chan_sip is all but dead, unsupported and 
going away in v21. Instead of making chan_sip listen on all IPs then making a 
bunch of firewall/filtering rules that block one of them from being used, use 
chan_pjsip. It is the right solution as it is the supported driver and will 
continue to see updates and bugfixes.

If you haven't started a migration from chan_sip to chan_pjsip yet, it is best 
advised to make a migration plan and do it now. If there is a case where 
something in chan_sip hasn't made it into chan_pjsip (or it did but hasn't been 
really touched/updated since) and you really need that functionality, now is 
the time to figure that out.

On 2022-07-15, 11:14 AM, "asterisk-users on behalf of Henning Follmann" 
 wrote:

On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:
> On Fri, Jul 15, 2022 at 1:37 AM David Cunningham 

> wrote:
> 
> > Hello,
> >
> > We have an Asterisk server with 3 IP addresses, and need to listen on 
only
> > 2 of those. This is with chan_sip. Does anyone know if it's possible?
> >
> > If Asterisk listens on the third address then it seems to cause problems
> > with the media address put in the SDP for our use case.
> >
> 
> It's not. The chan_sip module allows you to bind to one thing, either a
> specific address or an any address.
> 

Well...
maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.

-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: 
https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-15 Thread Henning Follmann
On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:
> On Fri, Jul 15, 2022 at 1:37 AM David Cunningham 
> wrote:
> 
> > Hello,
> >
> > We have an Asterisk server with 3 IP addresses, and need to listen on only
> > 2 of those. This is with chan_sip. Does anyone know if it's possible?
> >
> > If Asterisk listens on the third address then it seems to cause problems
> > with the media address put in the SDP for our use case.
> >
> 
> It's not. The chan_sip module allows you to bind to one thing, either a
> specific address or an any address.
> 

Well...
maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.

-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Listen on 2 of 3 IP addresses

2022-07-15 Thread Joshua C. Colp
On Fri, Jul 15, 2022 at 1:37 AM David Cunningham 
wrote:

> Hello,
>
> We have an Asterisk server with 3 IP addresses, and need to listen on only
> 2 of those. This is with chan_sip. Does anyone know if it's possible?
>
> If Asterisk listens on the third address then it seems to cause problems
> with the media address put in the SDP for our use case.
>

It's not. The chan_sip module allows you to bind to one thing, either a
specific address or an any address.

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users