<div dir="ltr">This is exactly my scenario that you said in another word.<br><br><i>check their "permissions" and if they are allowed to call</i><br>how check permission with AMI?<br>Im not familier with dialplan. it's better to me to use AMI programming<br>
<br><br><div class="gmail_quote">On Sat, Feb 9, 2013 at 2:27 PM, Yves A. <span dir="ltr"><<a href="mailto:yves030@gmx.de" target="_blank">yves030@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi,<br>
<br>
are you using realtime extensions or the classic config-file
extension.conf ?<br>
One way to go yould be to implement the allowed / not allowed
logic in the context of your sip users.<br>
check their "permissions" and if they are allowed to call...
continue with the dialplan, if not, route them<br>
to a voiceprompt saying that the call is prohibited due to
whatever reasons...<br>
<br>
To do so, take a look at the dialplan functions "if" and "db". Of
course you somehow have to set a<br>
"flag" in asterisk, that decides about permissions... Don´t know
which way you will programmatically<br>
set or clear this flag... there are hundreds of possibilites...
the easiest way I think would be to use the<br>
asterisk build-in database (therefore the hint to the function db...)<br>
<br>
regards,<br>
yves<br>
<br>
Am 08.02.2013 22:18, schrieb Muhammad:<br>
</div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,<br>
I wana control my SIP register from asterisk.<br>
I other hand, when users login into their softphone, dont access
to call and when I give them access, they can call.<br>
<br>
I dont know it's right way to plan my scenario/? <br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</font></span></blockquote>
<br>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>