[asterisk-dev] Read dialplan variable with pbx_builtin_getvar_helper

Sean Bright sean.bright at gmail.com
Tue Apr 3 11:40:39 MST 2007


Right here:

http://www.voip-info.org/wiki/index.php?page=Asterisk+variables

On 4/3/07, Thomas Hecker <thomas.hecker at gmail.com> wrote:
>
> 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
> >
>
>
> _______________________________________________
> --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/f6d085ff/attachment-0001.htm


More information about the asterisk-dev mailing list