[Asterisk-Users] CallerID/variable setting.
Brent Torrenga
lists at torrenga.com
Mon Apr 24 12:37:59 MST 2006
Ken,
Try using the CALLERID function, instead of setting the variable.
As in: exten => _XXXXXXX,2,Set(CALLERID(number)=6031234${CALLERIDNUM:1})
Or maybe you need the greater/less than <6031234${CALLERIDNUM:1}> dealies.
See: http://www.voip-info.org/wiki/index.php?page=Asterisk+func+callerid
>exten => _XXXXXXX,1,GotoIf($[ ${CALLERIDNUM} != 1625]?4:2)
>exten => _XXXXXXX,2,Set(CALLERIDNUM=6031234${CALLERIDNUM:1})
>exten => _XXXXXXX,3,NoOp(${CALLERIDNUM})
>exten => _XXXXXXX,4,Dial(${OUTBOUNDTRUNK}/${EXTEN})
Sincerely,
Brent A. Torrenga
brent.torrenga at torrenga.com
Torrenga Engineering, Inc.
907 Ridge Road
Munster, Indiana 46321-1771
+1 219 836 8918 x325 Voice
+1 219 836 1138 Facsimile
www.torrenga.com
More information about the asterisk-users
mailing list