I then wrote a macro that does it for me.
[macro-stdiax]
; ARG1 = User
; ARG2 = Voice Mail Number
exten => s,1,Dial(IAX2/${ARG1}/[EMAIL PROTECTED]||Ttr)
;exten => s,2,Voicemail(u${ARG2})
;exten => s,3,Hangup
;exten => s,102,Voicemail(b${ARG2})
;exten => s,103,Hangup
macro-eracewcustomer]
; ARG1 = User
exten => s,1,Dial(IAX2/${ARG1}/[EMAIL PROTECTED]|20|Ttr)
exten => s,2,Voicemail(u${ARG1})
exten => s,3,Hangup
exten => s,102,Voicemail(b${ARG1})
exten => s,103,Hangup
[macro-stdtrunk]
; ARG1 = Zap Port
; ARG2 = Voice Mail Number
exten => s,1,Dial(Zap/${ARG1}|20|Ttr)
exten => s,2,Voicemail(u${ARG2})
exten => s,3,Hangup
exten => s,102,Voicemail(b${ARG2})
exten => s,103,Hangup
[macro-dialtrunk]
exten => s,1,Dial(${TRUNK}/${ARG1})
exten => s,2,Congestion
[macro-dialiax]
exten => s,1,Dial(IAX/${ARG1}/${ARG2})
exten => s,2,Congestion
[dialing_context]
exten => 2050,1,Macro(stdtrunk,1,${EXTEN})
exten => 0205,1,Macro(stdiax,${EXTEN},${EXTEN})
--
Christopher Dobbs
Antony Stone wrote:
On Friday 17 December 2004 21:25, Ross Kevlin wrote:this would still only work if the mailbox number was the same as the caller id. I need some way to get the actual mailbox number of the caller.Where / how are your mailbox numbers stored? It shouldn't be too difficult to create a script or DB request to provide the CID and get the mailbox number in response? Just out of interest, why don't you make the mailbox ID = caller ID? Antony.
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
