[Asterisk-Dev] Snom Programmable button Mini Howto and ringstatepatch

David Hinkle hinkle at derbyworks.com
Tue Aug 31 10:37:11 MST 2004


"hint" is not an application, it's a undocumented priority level.  It's
a rather rough hack to solve the important problem of mapping extensions
to channels.

-----Original Message-----
From: David Hindmarsh [mailto:dave at lex.net.au] 
Sent: Tuesday, August 31, 2004 8:22 AM
To: 'Asterisk Developers Mailing List'
Subject: RE: [Asterisk-Dev] Snom Programmable button Mini Howto and
ringstatepatch

What and where did u find the hints app

> -----Original Message-----
> From: asterisk-dev-bounces at lists.digium.com 
> [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of 
> David Hinkle
> Sent: Tuesday, 31 August 2004 04:24
> To: asterisk-dev at lists.digium.com; Morten Kuehl; 
> asterisk-users at lists.digium.com
> Subject: [Asterisk-Dev] Snom Programmable button Mini Howto 
> and ring statepatch
> 
> 
> The snom 200 and 220 have five programmable buttons.  Each 
> button has a led that can be used to indecate if an extension 
> is idle, in use, or ringing.  A button pannel for the 220 is 
> also comming out soon that will have 20'ish programmable 
> buttons on board.  
> 
> This is a killer app for any company that has receptionists 
> handle calls, and pretty usefull for everyone else.  
> 
> As a matter of fact, Asterisk already supports phone idle/in 
> use states for the buttons, and at the bottom of this message 
> you will find a patch to enable the ring state.
> 
> Howto:
> 
> 1. Configure the programable buttons as "destination" and 
> enter the extension in the field.  After saving the page the 
> phone will convert the extension to a sip url, which is fine.
> 
> 2. Modify your asterisk dialplan to provide "hints" that map 
> a given extension to a channel.  (In asterisk, a channel can 
> be busy or ringing, but an extension is just a string of 
> numbers that activate one or more applications).  Asterisk 
> seems to provide syntax for allowing more than one channel to 
> be mapped to any particular extension with the hint system, 
> but I did not investigate that.
> 
> Example:
> 
> exten => 200,hint,SIP/RonC
> exten => 200,1,Macro(stdexten,SIP/RonC)
>                                                               
>                                                               
>  exten => 201,hint,SIP/JeanK exten => 201,1,Macro(stdexten,SIP/JeanK)
>                                                               
>                                                               
>  exten => 202,hint,SIP/JeffT exten => 202,1,Macro(stdexten,SIP/JeffT)
> 
> 3.  You must reload the dialplan and then reboot the phone 
> for it's subscriptions to take effect.  After that, you 
> should have working lights.
> 
> 4.  If you want the lights to blink on ringing, apply the 
> following patch to the asterisk code.  
> 
> You can not pick up a call by hitting the blinking button,  I 
> was going to do this work but I decided to just train the 
> receptionists to hit *8
> instead.   I have not studied this extensivly, but to implement it, i
> think it would just require asterisk to have support for sip 
> "replaces" (I don't know if asterisk supports this or not) 
> and the ringing notify needs to go out with a few more 
> fields.  (It seems that the snom phone contacts the sip 
> device listed in one of the ring notify message fields with 
> an invite including a "replaces" header to pick up a call)
> 
> I have also included a sip trace of a snom phone picking up a 
> call placed to another phone using the blinking button in 
> case anybody out there wants to tackle this problem 
> themselves (Sample trace was collected when using snom phones 
> with snom's sip proxy software). 
> Please note that it seems like we must include the extra 
> fields in the ring notify before the snom phone will procude 
> the proper "replaces" invite in order to do a standards 
> compliant call pickup.
> 
> Notes on patch:
> If this patch is not in the proper format for submissions 
> please provide me a link to the asterisk submission policies. 
>  It has been tested here at DerbyTech for about a week on our 
> live phone system.  
> 
> I submit this patch to the asterisk project under the GPL 
> with hope that it will be resubmited to CVS.
> 
> Thankyou,
> David Hinkle
> Sr. Linux Engineer
> DerbyTech
> 
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.745 / Virus Database: 497 - Release Date: 27/08/2004
>  
>       
> 

_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list