Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Host = Dynamic in a Register Free Setup


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
symack at gmail.com
Guest





PostPosted: Sun Feb 16, 2014 9:19 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

Hello Everyone.

Our environment is a register free setup, and our phones are set as
host=dynamic.
The problem we are experiencing is for inbound calls:

Name/username Host Dyn Forcerport ACL Port
Status Realtime
222/222 (Unspecified) D N A 0
Unmonitored Cached RT

So when we DIAL 222 we get:

WARNING[23103]: app_dial.c:2198 dial_exec_full: Unable to create
channel of type 'SIP' (cause 20 - Unknown)

My question is how can we get Asterisk to fill in the gaps (ie,
ipaddr, port) for a dynamic
peer in a register free environment.

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
cwallace at lodgingcom...
Guest





PostPosted: Mon Feb 17, 2014 2:49 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

On Sun, 16 Feb 2014 21:21:30 -0500
Nick Cameo <symack@gmail.com> wrote:

Quote:
Our environment is a register free setup, and our phones are set as
host=dynamic.
The problem we are experiencing is for inbound calls:

Name/username Host Dyn Forcerport ACL Port
Status Realtime
222/222 (Unspecified) D N A 0
Unmonitored Cached RT

So when we DIAL 222 we get:

WARNING[23103]: app_dial.c:2198 dial_exec_full: Unable to create
channel of type 'SIP' (cause 20 - Unknown)

My question is how can we get Asterisk to fill in the gaps (ie,
ipaddr, port) for a dynamic
peer in a register free environment.

There are two ways for Asterisk to get the IP address for a peer:
1. Provide the address statically with host=<address> entries.
2. Allow the peer to register.

I don't believe there is any other way for Asterisk to get the IP
address.

What this means is, you can have a register-free environment or you
can have host=dynamic, but you can't have both.


--

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0


--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Mon Feb 17, 2014 2:51 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

Shiza!!!! Sounds about right but is it true? Anyone else?

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Tue Feb 18, 2014 1:46 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

I can't imagine it working any other way.

Either your phones are on static IP addresses or they must register to inform Asterisk the IP associated with the peer entry in sip.conf. Unless you have chan_psychic.so Asterisk won't know the IP of the phones unless you tell it.

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nick Cameo
Sent: Monday, February 17, 2014 2:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Host = Dynamic in a Register Free Setup

Shiza!!!! Sounds about right but is it true? Anyone else?

--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Tue Feb 18, 2014 1:56 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

Is Asterisk not able to gather IP and port info on INVITES in a REGISTER free,
host=dynamic setup? As you all know REGISTERS are resourceful and the
phone can be anywhere......

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Tue Feb 18, 2014 2:06 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

No. Asterisk will accept calls from unregistered devices, but you have to enable guests I sip.conf and hope your dialplan is secure. No sane person does this.

Asterisk cannot send calls to a device unless it knows the address from a register or from a host= entry for the peer.

You may not like it, but this is the way Asteirsk has worked for the past 15 years.


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nick Cameo
Sent: Tuesday, February 18, 2014 1:59 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Host = Dynamic in a Register Free Setup

Is Asterisk not able to gather IP and port info on INVITES in a REGISTER free, host=dynamic setup? As you all know REGISTERS are resourceful and the phone can be anywhere......

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
james at fivecats.org
Guest





PostPosted: Tue Feb 18, 2014 2:10 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

On 2/18/2014 2:09 PM, Eric Wieling wrote:
Quote:
No. Asterisk will accept calls from unregistered devices, but you have to enable guests I sip.conf and hope your dialplan is secure. No sane person does this.

Asterisk cannot send calls to a device unless it knows the address from a register or from a host= entry for the peer.

You may not like it, but this is the way Asteirsk has worked for the past 15 years.

Isn't there also autocreatepeer?



--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Tue Feb 18, 2014 2:19 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

Hello Eric,

On 2/18/14, Eric Wieling <EWieling@nyigc.com> wrote:
Quote:
No. Asterisk will accept calls from unregistered devices, but you have
to enable guests I sip.conf and hope your dialplan is secure. No sane
person does this.

Thank you for your response. Our security layer is abstracted out of
the Asterisk
boxes completely. The setup is secure we just need Asterisk to fill in the gaps
(ie, ipaddrss and port) after initial INVITE vs. REGISTER.

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Tue Feb 18, 2014 2:23 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

autocreatepeer still requires registration, from sip.conf.sample:

;autocreatepeer=no ; Allow any UAC not explicitly defined to register
; WITHOUT AUTHENTICATION. Enabling this options poses a high
; potential security risk and should be avoided unless the
; server is behind a trusted firewall.
; If set to "yes", then peers created in this fashion
; are purged during SIP reloads.
; When set to "persist", the peers created in this fashion
; are not purged during SIP reloads.


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of James Sharp
Sent: Tuesday, February 18, 2014 2:13 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Host = Dynamic in a Register Free Setup

On 2/18/2014 2:09 PM, Eric Wieling wrote:
Quote:
No. Asterisk will accept calls from unregistered devices, but you have to enable guests I sip.conf and hope your dialplan is secure. No sane person does this.

Asterisk cannot send calls to a device unless it knows the address from a register or from a host= entry for the peer.

You may not like it, but this is the way Asteirsk has worked for the past 15 years.

Isn't there also autocreatepeer?



--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Tue Feb 18, 2014 2:32 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

I just want to clarify. We are not creating peers automatically. And
we allowguest=no. We do have peer entries in sip_buddies db as you
would expect. As mentioned, we just don't allow phones to REGISTER
every 3600 (for example). Once a valid peer/phone tries to place a
call, we would like asterisk to store the ipaddr and port of the phone
to be able to create the SIP channel for incoming calls. As mentioned
security is managed elsewhere.

N.

--
_____________________________________________________________________
-- 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
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Tue Feb 18, 2014 3:36 pm    Post subject: [asterisk-users] Host = Dynamic in a Register Free Setup Reply with quote

asterisk-users-bounces@lists.digium.com wrote on 02/18/2014 01:35:13 PM:

Quote:
From: Nick Cameo <symack@gmail.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>,
Date: 02/18/2014 01:35 PM
Subject: Re: [asterisk-users] Host = Dynamic in a Register Free Setup
Sent by: asterisk-users-bounces@lists.digium.com

I just want to clarify. We are not creating peers automatically. And
we allowguest=no. We do have peer entries in sip_buddies db as you
would expect. As mentioned, we just don't allow phones to REGISTER
every 3600 (for example). Once a valid peer/phone tries to place a
call, we would like asterisk to store the ipaddr and port of the phone
to be able to create the SIP channel for incoming calls. As mentioned
security is managed elsewhere.

I am really curious. What do you hope to gain by preventing the phones from registering periodically?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services