<br><br><div class="gmail_quote">On Sun, Feb 7, 2010 at 1:53 PM, Stephen - K1LNX <span dir="ltr"><<a href="mailto:k1lnx@k1lnx.net">k1lnx@k1lnx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Keith, <br> This works like a champ! I just so happened to re-flash one of my Cisco phones back to SIP this afternoon for playing with and the timing could not have been more perfect lol. A very very useful feature!<br>
<br>73<br>Stephen<br>K1LNX<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Feb 7, 2010 at 2:29 PM, Keith Williamson <span dir="ltr"><<a href="mailto:hkwilliamson@gmail.com" target="_blank">hkwilliamson@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5">
Hi,<div><br></div><div>Several people have expressed an interest in how to configure Allstar to allow radio users to connect to the node-operator's local SIP phone. It turns out it's pretty easy (once you have a local SIP phone configured of course). To do this without configuring more general autopatch access with it's potential risks, you can create a specific context for just allowing a radio user to access one "outbound" SIP connection, the local SIP phone. In rpt.conf, I uncommented the "autopatchdn" function and duplicated and uncommented the "autopatchup" function. These two functions are in the [functions] stanza available to radio users. In the new "autopatchup" function, I changed the default DTMF string from 6 to 61 and added the "context=" option. I set the option to "context=node-op". So the function now looks like this:</div>
<div><br></div><div>61=autopatchup,context=node-op,noct=1,farenddisconnect=1,dialtime=20000</div><div><br></div><div>Then in extensions.conf, I added a stanza for [node-op]:</div><div><br></div><div>[node-op]</div><div>exten => 1,1,Answer</div>
<div>exten => 1,n,Dial(SIP/200,10)</div><div>exten => 1,n,Playback(vm-nobodyavail)</div><div>exten => 1,n,Hangup</div><div><br></div><div>Change the SIP/200 above to SIP/whatever-your-local-extension-is. Since we modified rpt.conf, you need to restart asterisk. </div>
<div><br></div><div>Now, if the radio user keys in *611, the autopatch will be invoked and extension "1" in context [node-op] will be called where it will be answered and then will dial the local SIP phone extension. If you don't pickup, it will timeout, play the "nobody available to take your call" message, and hangup. </div>
<div><br></div><div>Of course you can integrate this into a full autopatch configuration by modifying the default dialplan in context "radio" but I'm not willing to open my node up to dialing out to the world (yet). </div>
<div><br></div><div>73's,</div><div><br></div><div>Keith</div><div>KF7DRV</div><div><br></div>
<br></div></div>_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@qrvc.com" target="_blank">App_rpt-users@qrvc.com</a><br>
<a href="http://qrvc.com/mailman/listinfo/app_rpt-users" target="_blank">http://qrvc.com/mailman/listinfo/app_rpt-users</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>**********************************<br>Stephen Brown - ARS K1LNX<br>Johnson City, TN EM86<br><a href="http://www.k1lnx.net" target="_blank">http://www.k1lnx.net</a><br>
google voice: 423-665-9367<br>
**********************************<br>
</font></blockquote></div><br><div>Yeah, isn't allstar/asterisk the greatest? It's like Lego's for computers, radios, and telephones. </div><div><br></div><div>Cheers,</div><div><br></div><div>Keith</div>