[asterisk-users] Registering with a static peer?
Prince Singh
prince at drishti-soft.com
Mon Dec 28 03:56:30 CST 2009
To achieve closely to a solution for your scenario (and should make you
happy too :-] ), configure it as follows:-
1. Polycom
1. Configure your polycom to enable registration
2. sip.conf
1. host=dynamic
2. Configure the permit and deny to restrict registration from a
specific IP only
http://www.voip-info.org/wiki/view/Asterisk+sip+permit-deny-mask
The above configuration is based on the assumption that you want to
configure static IP addresses only to be able to restrict (in a sense) a
specific phone for a specific SIP account in sip.conf
What say ?
--
Prince Singh
Drishti-Soft Solutions Pvt Ltd
On Mon, Dec 28, 2009 at 2:17 PM, John Marvin <jm-asterisk at themarvins.org>wrote:
> I've been using a couple of Polycom 501 phones in my home Asterisk setup. I
> set
> up each phone in sip.conf to be static, i.e. host=<phone ip address> so
> that
> registration wasn't required. This has worked fine for me for a couple of
> years.
>
> Now I just bought a Polycom 335. Since the 501's are now obsolete, I had to
> go
> through the steps required in order to have separate sip.cfg's, etc.
> Anyway, I
> got the Polycom 335 to almost work, except for the dialplan. When picking
> up the
> handset (or hitting the line 1 key) it put me in url-dialing mode, i.e. it
> prompted me with "Enter URL" and didn't follow the dialplan I had set for
> the
> phone. It took me quite some time to figure out what was going on. I
> finally
> found a paragraph in the phone's users guide that said:
>
> > URL or IP dialing is not supported on registered phones. If your phone is
> > intentionally unregistered, the default dialing mode is by URL.
>
> At least that explained the cause of the problem. I could not find a way of
> changing the default dialing mode for an unregistered phone. So, I figured
> the
> only answer was to register the phone. Just setting the phone's "register"
> parameter to 1 (voIpProt.server.1.register="1") fixed the problem, i.e. the
> phone would now prompt me with "Enter Number" rather than "Enter URL" and
> allowed normal numeric dialing, according to the dialplan.
>
> But of course, if I turned on verbose logging in Asterisk, it complained
> about
> the phone not needing to register. The only way I could get it to shut up
> and
> properly register was by specifying host=dynamic. I'd rather not do that,
> so I'm
> currently using the hack of telling the phone to register and it failing
> every
> 30 seconds. This doesn't seem to break anything, but I can't say I'm really
> happy with the solution.
>
> So, a couple of questions:
>
> 1) Does anyone know of a way to disable the default URL dialing mode for an
> unregistered Polycom 335?
>
> 2) Is there a way of configuring asterisk to allow static ip address
> registration in sip.conf? I can understand that this doesn't make much
> sense,
> but it appears the Polycom phone really wants to be registered. I prefer
> the
> static configuration since it is a little more secure and reliable in my
> opinion.
>
> 3) Assuming the answer is "no" to 1 and 2 above, is there something I am
> overlooking with my "hack" solution? Should I just go ahead and set the
> phone up
> for dynamic registration?
>
> John
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091228/1015dcdb/attachment.htm
More information about the asterisk-users
mailing list