> On 11/02/2017, at 3:40 am, Frank Vanoni <mailinglist at linuxista.com> wrote: > > On Thu, 2017-02-09 at 14:58 +0200, ????? ?????? wrote: > > >> so the main question is -- how to Disallow CALLS without registering >> on PBX > > sip.conf configuration > In the [general] section, define: > > > [general] > ... > allowguest=no > alwaysauthreject=yes > ...I don't think either of these configuration attributes achieve what the OP requested ("how to Disallow CALLS without registering on PBX"). In fact, I'm not sure that it's actually possible to disallow [authenticated] calls from a peer that hasn't registered! As far as I can tell, 'registration' was never intended to be part of the authentication process. It's sole purpose is to inform the PBX as to the current location of the endpoint. I suspect this means that what the OP is asking for cannot be achieved with the current code bases. But each time I'm proven wrong I learn something, so if I'm wrong then please by all means correct me! :) Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170211/1c6ce7da/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3577 bytes Desc: not available URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170211/1c6ce7da/attachment.bin>
On Sat, 2017-02-11 at 12:25 +1300, Pete Mundy wrote:> > sip.conf configuration > > In the [general] section, define: > > [general] > > ... > > allowguest=no > > alwaysauthreject=yes > > ...>With the above configuration on my Asterisk, I obtain the following result: - if the phone is registered to Asterisk, I can place any call according to the dial plan. - if the phone is NOT registered and I try to place a call, the phone obtains a "403 forbidden" at any calling attempt. Now, English is not my native language, but as far as I can understand, "forbidden" means "not allowed" or "disallowed".
THINK i found a solution
NoOP(${DB_EXISTS(/SIP/Registry/${CHANNEL(peername)})});
THANKS TO ALL
2017-02-12 12:34 GMT+02:00 Frank Vanoni <mailinglist at linuxista.com>:
> On Sat, 2017-02-11 at 12:25 +1300, Pete Mundy wrote:
>
> > > sip.conf configuration
> > > In the [general] section, define:
> > > [general]
> > > ...
> > > allowguest=no
> > > alwaysauthreject=yes
> > > ...
>
>
> >
>
> With the above configuration on my Asterisk, I obtain the following
> result:
>
> - if the phone is registered to Asterisk, I can place any call according
> to the dial plan.
>
> - if the phone is NOT registered and I try to place a call, the phone
> obtains a "403 forbidden" at any calling attempt.
>
>
> Now, English is not my native language, but as far as I can understand,
> "forbidden" means "not allowed" or
"disallowed".
>
>
>
>
> --
> _____________________________________________________________________
> -- 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
>
--
Best regards
Antony
tel. +380669197533
tel2. +380636564340
Paypal http://paypal.me/Satskiy
<http://paypal.me/Satskiy?ppid=PPC000654&cnac=PL&rsta=en_PL(en_DK)&cust=NN8XJS9XEP22C&unptid=21db79ac-ef8d-11e5-9553-9c8e992ea258&t=&cal=4d776c21ca7d2&calc=4d776c21ca7d2&calf=4d776c21ca7d2&unp_tpcid=ppme-social-business-profile-created&page=main:email&pgrp=main:email&e=op&mchn=em&s=ci&mail=sys>
satskiy.a at gmail.com <mail%3Asatskiy.a at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20170213/0d96e1c2/attachment.html>