[Asterisk-Users] cdr data

Dinesh Nair dinesh at alphaque.com
Sat Mar 18 22:40:58 MST 2006



On 03/09/06 23:04 Dov Bigio said the following:
> Hello,
>  
> I have an E1 and the possibility to use different caller ids in this E1, 
> so, before a Dial, I always have a SetCallerIDNum("User", number).
>  
> When I check the CDR, the originator of the calls appears to be this 
> "number" I set in the caller id, but not the actual user that originated 
> the call.

the originator of the call, CDR(src) field, is set to the ANI if it's not 
null, and to CALLERID(num) if it's null. to get the behaviour you want to 
see you'd need to do the following in your dialplan:

Set(CALLERID(ani)=${CALLERID(num)})
Set(CALLERID(num)=XXXX)
Dial(....)

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



More information about the asterisk-users mailing list