I use Zaptel with PRI. Can I safely install BRIStuff to get this ability and still not break anything?<br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">Sune Kloppenborg Jeppesen</b> <<a href="mailto:jaervosz@gentoo.org">
jaervosz@gentoo.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thursday 22 February 2007 23:01, Norbert Zawodsky wrote:
<br>> This sounds interesting. If it's not too complicated for you ....<br>This should get you going:<br><br>in extensions.conf:<br>[macro-F_Toggle_status] ; $ARG1 db family $ARG2 db key $ARG3 Device to change<br>status
<br> ;http://www.voip-<a href="http://info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate">info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate</a><br><br> exten => s,1,Answer()<br> exten => s,n,Set(status=${DB(${ARG1}/${ARG2})})
<br> exten => s,n,GotoIf($["${status}" = "closed"]?opening|1:closing|1)<br> exten => opening,1,Set(status=open)<br> exten => opening,n,Set(DB(${ARG1}/${ARG2})=${status})<br>
exten => opening,n,DevState(${ARG3},2)<br> exten => opening,n,Hangup()<br> exten => closing,1,Set(status=closed)<br> exten => closing,n,Set(DB(${ARG1}/${ARG2})=${status})<br> exten => closing,n,DevState(${ARG3},0)
<br> exten => closing,n,Hangup()<br><br>Then using the value ARG3 from above:<br><br>[hint]<br> exten => _${ARG3},hint,DS/${ARG3}<br><br>Remember to substitute the actual variables as you can't use variables with
<br>hints.<br><br>Otherwise check the URL above for more info.<br><br>HTH<br><br>--<br>Sune Kloppenborg Jeppesen (Jaervosz)<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</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">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>