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
[EMAIL PROTECTED]

Torrenga Engineering, Inc.
907 Ridge Road
Munster, Indiana 46321-1771

+1 219 836 8918 x325 Voice
+1 219 836 1138 Facsimile
www.torrenga.com

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to