This is my code (that I copied form somewhere) for paging a group of
phones. By dialling 99 it will page phones 2101, 2102 and 2105.
Just include the context ext-paging in your dial plan and modify the
extension numbers and all should be good.
This works on Linksys Phones but should also work on Snoms.
I hope this helps you.
[ext-paging]
exten => PAGE2101,1,GotoIf($[ ${CALLERID(number)} = 2101 ]?skipself)
exten => PAGE2101,n,Set(__SIPADDHEADER=Call-Info: \;answer-after=0)
exten => PAGE2101,n,Set(__ALERT_INFO=Ring Answer)
exten => PAGE2101,n,Set(__SIP_URI_OPTIONS=intercom=true)
exten => PAGE2101,n,Dial(SIP/2101,5)
exten => PAGE2101,n(skipself),Noop(Not paging originator)
exten => PAGE2102,1,GotoIf($[ ${CALLERID(number)} = 2102 ]?skipself)
exten => PAGE2102,n,Set(__SIPADDHEADER=Call-Info: \;answer-after=0)
exten => PAGE2102,n,Set(__ALERT_INFO=Ring Answer)
exten => PAGE2102,n,Set(__SIP_URI_OPTIONS=intercom=true)
exten => PAGE2102,n,Dial(SIP/2102,5)
exten => PAGE2102,n(skipself),Noop(Not paging originator)
exten => PAGE2105,1,GotoIf($[ ${CALLERID(number)} = 2105 ]?skipself)
exten => PAGE2105,n,Set(__SIPADDHEADER=Call-Info: \;answer-after=0)
exten => PAGE2105,n,Set(__ALERT_INFO=Ring Answer)
exten => PAGE2105,n,Set(__SIP_URI_OPTIONS=intercom=true)
exten => PAGE2105,n,Dial(SIP/2105,5)
exten => PAGE2105,n(skipself),Noop(Not paging originator)
exten => Debug,1,Noop(dialstr is
LOCAL/PAGE2101@ext-paging&LOCAL/PAGE2102@ext-paging&LOCAL/PAGE2105@ext-p
aging)
exten =>
99,1,Page(LOCAL/PAGE2101@ext-paging&LOCAL/PAGE2102@ext-paging&LOCAL/PAGE
2105@ext-paging)
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jason Kim
Sent: Monday, 8 January 2007 2:30 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] snom 360 auto answer
Hi,
I'm testing paging using snom 360.
Can someone correct my dialplan?
Regards,
Jason.
=================================================
;exten => _99XXXX,1,SIPAddHeader(Call-Info:
Answer-After=0)
;exten => _99XXXX,n,SIPAddHeader(Call-Info:
<sip:192.168.1.113>\;answer-after=0)
;exten => _99XXXX,n,Dial(SIP/${EXTEN:2})
exten => _99XXXX,1,Set(__SIPADDHEADER=Call-Info:
answer-after=0)
exten =>
_99XXXX,n,Set(__SIP_URI_OPTIONS=intercom=true)
exten => _99XXXX,n,Set(__ALERT_INFO=Ring Answer)
exten => _99XXXX,n,Dial(SIP/${EXTEN:2})
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20070107/f36e3a70/attachment.htm