To check to see if it's registered and to setup the correct busy and
unavailable messages I have a macro which checks this for me. This works for
Zap and sip.
[macro-stdexten]
exten => s,1,Dial(${ARG1},20)
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Goto(incoming,s,1)
exten => s,102,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?103:105)
exten => s,103,Voicemail(b${MACRO_EXTEN})
exten => s,104,Goto(incoming,s,1)
exten => s,105,Voicemail(u${MACRO_EXTEN})
I call it via my extensions section
[extensions]
exten => 120,1,Macro(stdexten,Sip/121) ; Ring for 20 seconds
exten => 121,1,Macro(stdexten,Zap/1)
----- Original Message -----
From: Jozeph Brasil
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, September 13, 2004 10:02 AM
Subject: [Asterisk-Users] unavail and busy.
Hi guys,
What is different and the "context" to play unavail message and busy
message?
When a SIP connection is unregistered, voicemail will play unavail message,
right?
------------------------------------------------------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
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/20040914/12464f6a/attachment.htm