Hi.

This is working and OK, but I have other problem now.
When I add prefix before my local extension number (3333 is my extension number, and I`m adding 021111) i see whole number (0211113333) in CDR entries. Is there any way to put into CDR only pure extension number (without prefix) ?


-b

I haven't tried this, but the first thing I would try is this (replace
xxxx with the extension pattern you are using):

exten => xxxx,1,SetCIDNum(${PREFIX}${CALLERIDNUM})
exten => xxxx,2,Dial(.....)

where PREFIX is a global variable containing the prefix you want to prepend.

of course, you could just put the prefix digits in directly if you want:

exten => xxxx,1,SetCIDNum(12345${CALLERIDNUM})

etc

Cheers
Tony
--
Tony Mountifield


_______________________________________________ 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

Reply via email to