[asterisk-dev] why 'o' (preserve original callerid) is not default in app_dial.c ?

Luigi Rizzo rizzo at icir.org
Tue Oct 31 17:06:56 MST 2006


I hit a confusing default in app_dial.c, namely the 'o' option
(preserve original callerid) is not the default.

For first, i do not understand the reason for setting
the callerid in the ast_channel to the one of the _called_ extension;
the information is already in cid_rdnis.
On the other hand, if 'o' is not the default, there must be a
good reason, and this must be the most useful case ?

But what is really confusing to me is that this change occurs after the
invocation of ast_call(), which means that the manager events
will report different information from what you see eg in the channel
driver when it responds to the ast_call (and possibly stores the
state from the channel itself).

Any comments on why it is like this ?

	cheers
	luigi


More information about the asterisk-dev mailing list