[Asterisk-Users] Distinctive Ring Macro Example

Eric Wieling eric at fnords.org
Tue Jun 24 14:38:22 MST 2003


I use the following macro for my extensions.  It only works with Zap
channels and assumes that any Caller*ID number that is 4 digits is an
internal call and all other calls are external calls.

Use like this:  exten => 1234,1,Macro(std-exten,Zap/4,20)


[macro-std-exten]
;
; Caller*ID is 4 digits (internal call)
;
exten => s/_XXXX,1,Dial(${ARG1}r2,${ARG2})
exten => s/_XXXX,2,Voicemail(u${MACRO_EXTEN})
exten => s/_XXXX,3,Hangup
exten => s/_XXXX,102,Voicemail(b${MACRO_EXTEN})
exten => s/_XXXX,103,Hangup
;
; Caller*ID is not 4 digits (external call)
;
exten => s,1,Dial(${ARG1},${ARG2})
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Hangup
exten => s,102,Voicemail(b${MACRO_EXTEN})
exten => s,103,Hangup


--Eric
-- 
BTEL Consulting
850-484-4535 x2111 (Office)
504-595-3916 x2111 (Experimental)
877-552-0838 (Backup Phone)




More information about the asterisk-users mailing list