Thanks Keith for sharing that with us, it will certainly help :) <br><br>I'll also add my own experiences to this for others who may be trying to accomplish what I have as well. I run a seperate Asterisk based PBX for my home phone system which I have 2 Cisco IP phone's peered off of. <br>
<br>My ultimate goal was to be able to use my existing phone system to get to the radio and out to the network. I use FreePBX on the PBX box, and just set up a SIP trunk to point to the app_rpt box. In the outgoing settings area, you can name the trunk anything you'd like (I named mine app_rpt, original huh?) and in the peer details box I have this:<br>
<br>host=192.168.1.1<br>username=k1lnx<br>secret=password<br>type=peer<br><br>Where host is the IP of the app_rpt machine, username is the username you will define in sip.conf stanza, secret is the password, and type=peer defines that we are only sending calls to this machine. <br>
<br>You'll also need to put registration syntax in the Register String box in the form of <a href="http://username:password@192.168.1.1/context">username:password@192.168.1.1/context</a> which was defined in the previous section. The "context" portion of the string is what your context name will be on the app_rpt box. For example, mine is k1lnx. You could also do IP based authentication, which would eliminate the need to register. <br>
<br>Next, add an outbound route with whatever dial pattern you want to match (I just used 2335, that's my node number, to keep it simple) and use the newly created app_rpt SIP trunk. I named my route RADIO. This will now send any calls dialed with "2335" over the app_rpt trunk!<br>
<br>So on the app_rpt box in /etc/asterisk/sip.conf put an entry something similar to this:<br><br>[k1lnx]<br>type=friend<br>username=k1lnx<br>password=password<br>context=radio-control<br>host=dynamic<br>disallow=all<br>
allow=ulaw<br><br>And in extensions.conf edit (or add if not existing) the [radio-control] stanza:<br>[radio-control]<br>;exten => 2335,1,Answer <br>exten => 2335,1,Playback(rpt/node) <br>exten => 2335,n,Playback(digits/2) <br>
exten => 2335,n,Playback(digits/3) <br>exten => 2335,n,Playback(digits/3) <br>exten => 2335,n,Playback(digits/5) <br>exten => 2335,n,Rpt,2335|P <br><br>Notice I have the first priority commented out? This was due to an issue I was having, the console was spewing error messages about not being able to use the Answer application. No idea why, could be due to the fact that I compiled from scratch or screwed something else up somewhere that I haven't found yet. YMMV ;) <br>
<br>I also had a hard time getting calls from my PBX to hit this context properly, it took a lot of wrangling and reloading for it to finally work properly. Whenever I would dial "2335" from my desk phone it would get rejected on the basis of not being able to find the extension, I am still largely confused as to why it didn't simply work however. On the stock extensions.conf that comes with ACID as well as what is in the svn version at the top of the file there are two parameters in the general section:<br>
<br>[general]<br><br>static=yes ; These two lines prevent the command-line interface<br>writeprotect=yes ; from overwriting the config file. Leave them here.<br><br>I had to play with these via commenting/uncommenting them to get things to work, although I don't believe this was the source of my problem originally. Perhaps Steve or Jim can elaborate on this. <br>
<br>After you issue a dialplan reload you can check for the presence of your newly created extension by issuing "dialplan show extension@context" from the CLI, where extension is the extension number, and context is the context you created (radio-control in my example), and it will return the routing for that extension:<br>
<br>bubastis*CLI> dialplan show 2335@radio-control<br>[ Context 'radio-control' created by 'pbx_config' ]<br> '2335' => 1. Playback(rpt/node) [pbx_config]<br>
2. Playback(digits/2) [pbx_config]<br> 3. Playback(digits/3) [pbx_config]<br> 4. Playback(digits/3) [pbx_config]<br>
5. Playback(digits/5) [pbx_config]<br> 6. Rpt(2335|P ) [pbx_config]<br><br>-= 1 extension (6 priorities) in 1 context. =-<br><br>
There are other methods to accomplish what I have above, and of course security concerns. This works extremely well and now that I have it working I am going to continue to tweak things and make it as robust as I possibly can. My next challenge is to get inbound and outbound autopatch calls from the app_rpt box to my provider. <br>
<br>Love this project, I've been playing with it for just over a year now and I am still learning stuff. So much fun... <br><br>tnx and 73<br>Stephen <br>K1LNX<br><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 9:52 PM, Keith Williamson <span dir="ltr"><<a href="mailto:hkwilliamson@gmail.com">hkwilliamson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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" target="_blank">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" target="_blank">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: 1px solid rgb(204, 204, 204); 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: 1px solid rgb(204, 204, 204); 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: 1px solid rgb(204, 204, 204); 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: 1px solid rgb(204, 204, 204); 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: 1px solid rgb(204, 204, 204); 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>
<br>_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@qrvc.com">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><br><br clear="all"><br>-- <br>**********************************<br>Stephen Brown - ARS K1LNX<br>Johnson City, TN EM86<br><a href="http://www.k1lnx.net">http://www.k1lnx.net</a><br>google voice: 423-665-9367<br>
**********************************<br>