[asterisk-dev] why is src field in Master.csv showing the outgoing callerid ?

Dinesh Nair dinesh at alphaque.com
Fri Mar 10 06:38:42 MST 2006


On 03/09/06 20:09 Tilghman Lesher said the following:
> Because in Asterisk we differentiate between extensions and channels.
> Channels are NOT tied to extensions, much as you would like that to be
> so.

i'm well aware of that. it was the local extension (6262 in this case) i 
was talking about. setting CALLERID(num)=0088 would replace the local 
extension number. i've since found out that in ast_cdr_setcid() in cdr.c, 
the src field is set to cid_ani if it's not null, and cid_num if cid_ani is 
null.

thus a diaplan like the following achieves what i needed to see in the 
Master.csv file:

Set(CALLERID(ani)=${CALLERID(num)})
Set(CALLERID(num)=0088)


>>i'm wondering if this is the normal behaviour or is there a bug in
> It's normal.

well, if someone is setting CALLERID(num) before sending a call out the 
PRI, perhaps a little note somewhere that this will also muck up the src 
field in master.csv unless ANI is also set would be good. sure would save 
folk some grief.

> You do realize # is not a comment in zapata.conf, right?

i'm well aware of that, i was just using that as a pointer within the email.

-- 
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-dev mailing list