Thought I'd share this thread with the list since it might be helpful to someone trying to setup a local sip phone for reverse autopatch. <div><br></div><div>Bob and I went off the list when we first got started on this because I was afraid the thread could get quite lengthy if we ran into the (almost) inevitable problems. However, everything worked the first time through a combination of luck on my part explaining things (blue moon) and Bob's excellent ability to read, interpret, and follow my drivel. </div>
<div><br></div><div>Bob, if there were things I explained incorrectly below that you figured your way around, please chime in so that the next unwary ham who tries this will be forewarned. Also note that some of this is specific to Bob's SIP phone but in looking through the manual for the phone, I found it to be pretty typical of other SIP phones I've worked with. Finally, apologies for the reverse ordering of the thread versus the way we normally (try) to order thread (newest reply at bottom). </div>
<div><br></div><div>73's</div><div><br></div><div>Keith</div><div><br></div><div>KF7DRV</div><div>Allstar Node 2541<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Bob Brown - WØNQX</b> <span dir="ltr"><<a href="mailto:bbrown@byrg.net">bbrown@byrg.net</a>></span><br>
Date: Sun, Jan 31, 2010 at 12:03 PM<br>Subject: SIP IP pHONE config - was: Connect notifications via AGI or System scripts<br>To: Keith Williamson <<a href="mailto:hkwilliamson@gmail.com">hkwilliamson@gmail.com</a>><br>
<br><br><div>hi keith </div>
<div> </div>
<div>got the first part done<br clear="all"></div>
<div>~~~~~~~~~~~~~~~~~~~~~~</div>
<div>sip show peers</div>
<div> </div>
<div>Name/username Host Dyn Nat ACL Port Status <br>9009/9009 10.0.0.40 D 5060 Unmonitored <br>1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]<br>
</div>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div> </div>
<div>whats next?</div>
<div> </div>
<div>--<br>Thanks in Advance<br><br> Bob Brown, WØNQX<br><br> Kansas City Metro Area<br><br> <a href="http://sm0kenet.net" target="_blank">http://sm0kenet.net</a><br><br> <a href="http://byrg.net" target="_blank">http://byrg.net</a><br>
<br> <a href="http://kcdstar.byrg.net" target="_blank">http://kcdstar.byrg.net</a><br>
<br>Quis custodiet ipsos custodes?<br> <br><br><br></div>
<div class="gmail_quote">On Sun, Jan 31, 2010 at 12:09, Keith Williamson <span dir="ltr"><<a href="mailto:hkwilliamson@gmail.com" target="_blank">hkwilliamson@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">OK great. Next step is to get the phone registered with the Allstar node. I'm going to assume the phone is connected to the internal network the node is on and for the purposes of this explanation I'll say the internal IP of your Allstar node is 192.168.0.1 (and that that IP is either static or gets a static lease via DHCP). Obviously, substitute your node's actual internal IP.
<div><br></div>
<div>In the web interface for the phone, enter the Allstar node internal IP in ALL of the following fields of Line 1 settings for Profile 1:</div>
<div><br></div>
<div>SIP Proxy Server</div>
<div>Outbound Proxy Server</div>
<div>Registrar Server</div>
<div>Outbound Registrar Server</div>
<div><br></div>
<div>Leave the SIP Proxy Server Port and Registrar Proxy Server Port set at the default of 5060.</div>
<div><br></div>
<div>Also in the same Line 1 Profile 1 menu, you need to set the phone's extension info. You can make this whatever you want but for the purposes of this explanation we'll call it Bobs208. Set Bobs208 in the following fields:</div>
<div><br></div>
<div>Phone Number</div>
<div>User Name</div>
<div>Authorized ID</div>
<div><br></div>
<div>Finally, you need to set a password for authentication. We'll use "secret123". Set the following field to secret123:</div>
<div><br></div>
<div>Authorized Password</div>
<div><br></div>
<div>This should be enough on the phone side of things so now down at the bottom of the menu, do Save Settings followed by Logout. </div>
<div><br></div>
<div>Now we move over to the Allstar node. Open /etc/asterisk/sip.conf with your favorite editor (I'm a vi guy myself) and add a stanza for your phone (below the end of the [general] stanza) that would be something like this:</div>
<div><br></div>
<div>[Bobs208]</div>
<div>type=friend</div>
<div>secret=secret123</div>
<div>context=radio-control</div>
<div>host=dynamic</div>
<div>disallow=all</div>
<div>allow=ulaw</div>
<div>transfer=no</div>
<div><br></div>
<div>Now save the changes to sip.conf and exit the editor. Next go into the CLI (e.g. asterisk -vr) and type "sip reload" to force asterisk to reread the sip.conf file. At this point, asterisk should be ready register your phone. </div>
<div><br></div>
<div>Probably the most dependable way to get the phone to activate the changes you made to the phone's SIP parameters and to force the phone to attempt to register with Allstar/Asterisk is to just power-cycle the phone. </div>
<div><br></div>
<div>I haven't read enough about this phone to know how the phone indicates it's registration state after it finishes booting but you can watch the Allstar CLI and you should be able to see the registration occuring. You can also type the following CLI command to check if you phone is registered:</div>
<div><br></div>
<div>CLI> sip show peers</div>
<div><br></div>
<div>Let me know how all this goes and then we can proceed to the final step once the phone is registered.</div>
<div><br></div>
<div>73's</div>
<div><br></div>
<div>Keith</div>
<div><br></div>
<div>KF7DRV</div>
<div>
<div></div>
<div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br><br>
<div class="gmail_quote">On Sat, Jan 30, 2010 at 11:57 PM, Bob Brown - WØNQX <span dir="ltr"><<a href="mailto:bbrown@byrg.net" target="_blank">bbrown@byrg.net</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>ya mine is a virgin fone and the default is 1234</div>
<div> </div>
<div>i got this from a ip phone vendor/wholsaler it was a freebie he says it was sip compatable</div>
<div> </div>
<div>i have managed to log into it from the web interface and from the admin menu in the front panle.</div>
<div>
<div> </div>
<div> </div>
<div><br clear="all">--<br>Thanks in Advance<br><br> Bob Brown, WØNQX<br><br> Kansas City Metro Area<br><br> <a href="http://sm0kenet.net/" target="_blank">http://sm0kenet.net</a><br><br> <a href="http://byrg.net/" target="_blank">http://byrg.net</a><br>
<br> <a href="http://kcdstar.byrg.net/" target="_blank">http://kcdstar.byrg.net</a><br><br>Quis custodiet ipsos custodes?<br> <br><br><br></div></div>
<div>
<div></div>
<div>
<div class="gmail_quote">On Sat, Jan 30, 2010 at 22:45, Keith Williamson <span dir="ltr"><<a href="mailto:hkwilliamson@gmail.com" target="_blank">hkwilliamson@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Hi Bob,
<div><br></div>
<div>I found the manual for your T207/T208 phone..hopefully you have that too. Getting the phone registered with Asterisk requires that the phone be an "S" model (T207S or T208S) which means it has SIP firmware. The T207M and T208M models run MGCP which isn't compatible with Asterisk. The other requirement is that you need to know the admin password. If it's never been changed it should be the default "1234". You can configure the phone settings either directly on the phone or via your web browser (although you need to at least configure the TCP/IP parameters using the phone menus before you can switch to using the more convenient web interface). </div>
<div><br></div>
<div>Perhaps you have already done this part and have the phone connected via Ethernet to the network the node is on? </div>
<div><br></div>
<div>Let me know and we can go from there.</div>
<div><br></div>
<div>73s,</div>
<div><br></div>
<div><font color="#888888">Keith</font>
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Sat, Jan 30, 2010 at 10:02 AM, Bob Brown - WØNQX <span dir="ltr"><<a href="mailto:bbrown@byrg.net" target="_blank">bbrown@byrg.net</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>my ipphone: TSIPP2008BG-R1</div>
<div> </div>
<div>sure any help would be great!</div>
<div>
<div> </div>
<div> </div>
<div><br clear="all">--<br>Thanks in Advance<br><br> Bob Brown, WØNQX<br><br> Kansas City Metro Area<br><br> <a href="http://sm0kenet.net/" target="_blank">http://sm0kenet.net</a><br><br> <a href="http://byrg.net/" target="_blank">http://byrg.net</a><br>
<br> <a href="http://kcdstar.byrg.net/" target="_blank">http://kcdstar.byrg.net</a><br><br>Quis custodiet ipsos custodes?<br> <br><br><br></div></div>
<div>
<div></div>
<div>
<div class="gmail_quote">On Fri, Jan 29, 2010 at 23:01, Keith Williamson <span dir="ltr"><<a href="mailto:hkwilliamson@gmail.com" target="_blank">hkwilliamson@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Hi Bob,<br><br>No problem. What make/model of ipphone is it? The first thing required<br>is a stanza in sip.conf defining the extension, user, password, etc<br>
for that particular phone. The required elements vary from phone to<br>phone so let me know what kind you have. After creating the entry in<br>sip.conf, you just do a "sip reload" at the CLI and check to see if<br>
the phone gets registered OK. Once you have that, you just need to add<br>a stanza to extensions.conf to enable the reverse autopatch.<br><br>There's a pretty complete description of what's required in the ACID<br>
Admin Manual.<br><br>Cheers,<br><br>Keith<br>
<div>
<div></div>
<div><br><br>On 1/29/10, Bob Brown - WØNQX <<a href="mailto:bbrown@byrg.net" target="_blank">bbrown@byrg.net</a>> wrote:<br>> hi keith<br>><br>> i would be interrested in your config files to set up the ipphone<br>
> on your node<br>><br>> i have a 4 line ip desk phone i would like to set up to do what you describe<br>><br>> i am not very fluent in asterisk set up for ip fones.<br>><br>> would you be willing to share?<br>
><br>><br>> --<br>> Thanks in Advance<br>><br>> Bob Brown, WØNQX<br>><br>> Kansas City Metro Area<br>><br>> <a href="http://sm0kenet.net/" target="_blank">http://sm0kenet.net</a><br>><br>
> <a href="http://byrg.net/" target="_blank">http://byrg.net</a><br>><br>> <a href="http://kcdstar.byrg.net/" target="_blank">http://kcdstar.byrg.net</a><br>><br>> Quis custodiet ipsos custodes?<br>><br>
><br>><br>> On Fri, Jan 29, 2010 at 22:04, Keith Williamson<br>> <<a href="mailto:hkwilliamson@gmail.com" target="_blank">hkwilliamson@gmail.com</a>>wrote:<br>><br>>> Hi,<br>>><br>>> Recently, I got reverse autopatch configured on my simplex node (2541) and<br>
>> everything works great. In the shack, I have a Polycom IP501 speaker phone<br>>> that I use to monitor or connect into QSO's on the node. Out of the shack,<br>>> I<br>>> can call into the node using my Blackberry and do the same. So the next<br>
>> challenge is to get quick notifications of users connecting into the node<br>>> either via radio or Internet (Echolink and Allstar..no IRLP yet). I<br>>> created<br>>> a pair of Twitter accounts; one for the node and another for me<br>
>> personally.<br>>> I added my node's Twitter account to the ones I follow with my personal<br>>> account and created an AGI scripts that formats a curl command which posts<br>>> some of the context variables passed in when Asterisk invokes the script<br>
>> (context name, extension, callerid, etc). I then added the AGI call into<br>>> various extension stanzas in extensions.conf to test. If, for instance, I<br>>> do<br>>> a reverse autopatch and connect to the reverse autopatch "extension", I<br>
>> almost immediately get an SMS tweet on the Blackberry. Great. However, it<br>>> seems that connections via the radio are not processed in any way in<br>>> extensions.conf (thought [default] stanza would apply but apparently only<br>
>> applies to autopatch), and inbound connections from either Allstar or<br>>> Echolink, while processed through [radio-secure], hang on the AGI call and<br>>> don't proceed to the following call to rpt. I'm assuming this is because<br>
>> AGI<br>>> calls generally follow an "Answer" and are only valid in the connected<br>>> state. I tried "deadAGI" since it doesn't seems to be dependent on being<br>>> in<br>
>> the answered state but it hung the same way. It's possible I've got a<br>>> problem in the AGI script which is causing the hang but it certainly<br>>> doesn't<br>>> occur when the AGI call follows "Answer".<br>
>><br>>> So I'm looking for help to understand other possible ways to invoke a<br>>> script that calls curl to post the tweet when a radio user makes an<br>>> outbound<br>>> connection to Allstar or Echolink and when an Echolink or Allstar user<br>
>> connects in to the radio.<br>>><br>>> Ideas?<br>>><br>>> Thanks and 73's<br>>><br>>> Keith<br>>><br>>> KF7DRV<br>>><br>>> _______________________________________________<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>>><br>><br><br></div></div><font color="#888888">--<br>Sent from my mobile device<br></font></blockquote></div><br></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></blockquote></div><br>
</div><br></div>