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

John Lange j.lange at epic.ca
Thu Nov 2 11:11:17 MST 2006


On Thu, 2006-11-02 at 08:16 +0200, Stephen Davies wrote:
> On 01/11/06, John Lange <j.lange at epic.ca> wrote:
> > I think Asterisk could stand to have a (much?) expanded set of internal
> > variables accessible in the dialplan.
> >
> > Just one simple example would be the username of the calling party (when
> > available). Doing dialplan logic based on callerid is sometimes very
> > problematic.
> 
> I agree with both your points.
> 
> Nevertheless, it is easy to get channel variables set on the channel
> for things like the username.
> 
> For instance, the "setvar" option in a SIP peer/user/friend entry
> allows you to pass on the peer that the call came from.  (And/or,
> "accountcode").

Would you mind expanding on that a little? Perhaps I'm missing something
obvious? Please post an example if you can.

John




More information about the asterisk-dev mailing list