[Asterisk-Users] snom hint
Gerd Mueller
gmueller at netways.de
Fri Aug 19 05:54:44 MST 2005
Hi Tom,
thank you. I solved my problem ... but it was really painful because of
the notify process inside the snom phones seem to crash if you send the
wrong commands :-(. So thausends ;-) of reboots were needed...
That's my solution now:
[agents-loginout]
exten => 6011,hint,DS/6011
exten => 6011,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6012,hint,DS/6012
exten => 6012,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6013,hint,DS/6013
exten => 6013,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6014,hint,DS/6014
exten => 6014,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6016,hint,DS/6016
exten => 6016,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6017,hint,DS/6017
exten => 6017,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => 6018,hint,DS/6018
exten => 6018,1,Macro(agentsloginout,${EXTEN},${CALLERIDNUM})
exten => h,1,GotoIf($["${LED60STATUS}"]=""]?4)
exten => h,2,DevState(${LED60EXTEN},${LED60STATUS}) ; LED off
exten => h,3,NoOp
[macro-agentsloginout]
exten => s,1,SetVar(LED60EXTEN=${ARG1})
exten => s,2,RemoveQueueMember(zentrale|SIP/${ARG2})
exten => s,3,SetVar(LED60STATUS=0)
exten => s,4,Dial(local/60 at agents-loginout-hidden/n,,D(#))
exten => s,103,SetVar(LED60STATUS=2)
exten => s,104,AddQueueMember(zentrale|SIP/${ARG2})
exten => s,105,AgentCallbackLogin(${ARG2}|${ARG2}@from-sip)
[agents-loginout-hidden]
exten => 60,1,AgentCallbackLogin(${CALLERIDNUM}|'#')
I do not like the first part of the agents-loginout but there seems to
be no other solution.
Cheers
Gerd
On Wed, 2005-08-17 at 10:25 -0500, Tom Hayden wrote:
> It's in the wiki:
> http://www.voip-info.org/tiki-index.php?page=Asterisk%20phone%20snom
>
> About halfway down the page where it says: SNOM SUBSCRIBE/NOTIFY
> support for monitoring extension states
>
> --
> Tom Hayden
> Astoria Telecom, LLC
> www.astoriatelecom.net
>
More information about the asterisk-users
mailing list