[asterisk-dev] Read dialplan variable with pbx_builtin_getvar_helper

Thomas Hecker thomas.hecker at gmail.com
Tue Apr 3 11:23:19 MST 2007


Thank you very much, this works! Where I could have found this in the docs?
I really searched..

Thomas

On 27/03/07, Olle E Johansson <olle at voop.com> wrote:
>
>
> 27 mar 2007 kl. 11.47 skrev Thomas Hecker:
>
> > Hi,
> >
> > after setting a dialplan variable with
> > Set(SIPTEST=TEST)
> > Dial(SIP/xxx)
> >
> > I need to read out this var in the dial application (transmit_invite
> > () )with
> > pbx_builtin_getvar_helper(p->owner, "SIPTEST");
> >
> > p is a struct sip_pvt *p passed by int sip_call().
> >
> > But this returns a 'null' string. Do I have a wrong 'p' or what
> > could be the reason?
> >
> You are in the wrong channel.
>
> test with
>
> set(_SIPTEST=TEST)
>
> and the variable will be copied to the outbound channel.
>
> /O
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070403/7b3189fd/attachment.htm


More information about the asterisk-dev mailing list