[Asterisk-Users] Distinctive Ring Macro Example

John Laur johnl at blurbco.com
Tue Jun 24 15:12:38 MST 2003


Cool trick!

You could simplify this:

[macro-std-exten]
; Caller*ID is 4 digits (internal call)
exten => s/_XXXX,1,Dial(${ARG1}r2,${ARG2})

; Caller*ID is not 4 digits (external call)
exten => s,1,Dial(${ARG1},${ARG2})

; Both of the above lines go here next
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Hangup
exten => s,102,Voicemail(b${MACRO_EXTEN})
exten => s,103,Hangup


For those of you running Cisco 7960's and using the ALERT_INFO stuff,
You can use this version of the same thing. (I am now using this in my
config thanks to Eric's example):

[macro-std-exten]
; Caller*ID is 4 digits (internal call)
exten => s/_XXXX,1,SetVar(ALERT_INFO=1)

; Caller*ID is not 4 digits (external call)
exten => s,1,NoOp

; Both of the above lines go here next
exten => s,2,Dial(${ARG1},${ARG2})
exten => s,3,Voicemail(u${MACRO_EXTEN})
exten => s,4,Hangup
exten => s,103,Voicemail(b${MACRO_EXTEN})
exten => s,104,Hangup


John

> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
> admin at lists.digium.com] On Behalf Of Eric Wieling
> Sent: Tuesday, June 24, 2003 4:38 PM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] Distinctive Ring Macro Example
> 
> 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)
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list