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

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Mar 9 05:09:38 MST 2006


On Wednesday 08 March 2006 13:36, Dinesh Nair wrote:
> [bear with me, this may sound like a user question, but it's the
> behaviour of writing CDRs that i'm asking about]

<snip>

> the question is, why is the (second) src field in Master.csv
> showing 0088 when it should be 6262 since the call originated from
> internal SIP extension 6262 ? short of parsing the local channel
> field of Master.csv, how would we set src to the callernum of the
> originating channel ?

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 wondering if this is the normal behaviour or is there a bug in
> how the src field in Master.csv is derived. i've noticed that it's
> set in cdr.c's ast_cdr_init based on calls from pbx.c and various
> other places.

It's normal.

> also, setting values for callerid in zapata.conf dont seem to work
> either, only a dialplan CALLERID(num) works. any explanation for
> this ?

> callerid=ABCD <0088> # <-- this doesnt work at all in setting clid

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

-- 
Tilghman



More information about the asterisk-dev mailing list