[Asterisk-Users] Re: Prefix to CALLING Number ?

barney barney at spirit.bentel.sk
Tue May 17 09:25:30 MST 2005


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
> 




More information about the asterisk-users mailing list