[asterisk-users] accessing dialplan global variables in agi

Don sales at xwebfactor.com
Sat Jul 29 12:23:04 MST 2006


I can retrieve GLOBAL variables that I set in AGI...I never tried setting them in extensions.conf and then retrieving...but I would have assumed the same result...but you never know I guess
  ----- Original Message ----- 
  From: Simon Austin 
  To: Asterisk Users Mailing List - Non-Commercial Discussion 
  Sent: Friday, July 28, 2006 4:10 PM
  Subject: Re: [asterisk-users] accessing dialplan global variables in agi


  I first tried using the perl AGI libraries, then when that didn't work I tried using GET VARIABLE directly.

  The global variables I'm talking about are the globals that are defined in the dialplan under [globals].  Not the predefined channel variables ( e.g. CALLERID)

  I confirmed that there was not something wrong with my code by correctly retrieving both som predefined channel variables and some local variables that I set using Set().

  Can you please confirm that you're able to retrieve global variables set in the [globals] section of the dialplan? 

  Cheers,

  - Simon


  On 7/28/06, Don <sales at xwebfactor.com> wrote:
    Worked on same version when I did it...using PHP
    ----- Original Message ----- 
    From: Simon Austin 
    To: Asterisk Users Mailing List - Non-Commercial Discussion 
    Sent: Friday, July 28, 2006 3:52 PM 
    Subject: Re: [asterisk-users] accessing dialplan global variables in agi


    I have confirmed that GET VARIABLE doesn't return global variables in version 1.2.10 and submitted the following bug report: http://bugs.digium.com/view.php?id=7609 

    Cheers,


    On 7/27/06, Russell Bryant <russell at digium.com> wrote: 
      On Thu, 2006-07-27 at 19:02 -0400, Simon Austin wrote:
      > Is it possible to access dialplan global variables from the AGI?

      It certainly should be.

      > voip-info.org indicates that the GET VARIABLE 
      > (http://www.voip-info.org/wiki/view/get+variable) command can't get them.

      If you try it out and this does not work, I would consider that a bug. 
      Feel free to report it on bugs.digium.com if that is the case.

      --
      Russell Bryant
      Software Developer
      Digium, Inc.

      _______________________________________________ 
      --Bandwidth and Colocation provided by Easynews.com --

      asterisk-users mailing list
      To UNSUBSCRIBE or update options visit:
         http://lists.digium.com/mailman/listinfo/asterisk-users





----------------------------------------------------------------------------


    _______________________________________________

    --Bandwidth and Colocation provided by Easynews.com --

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
       http://lists.digium.com/mailman/listinfo/asterisk-users



----------------------------------------------------------------------------


    No virus found in this incoming message.
    Checked by AVG Free Edition.
    Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006




    _______________________________________________
    --Bandwidth and Colocation provided by Easynews.com -- 

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
      http://lists.digium.com/mailman/listinfo/asterisk-users







------------------------------------------------------------------------------


  _______________________________________________
  --Bandwidth and Colocation provided by Easynews.com --

  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
     http://lists.digium.com/mailman/listinfo/asterisk-users



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060729/ec3592d4/attachment.htm


More information about the asterisk-users mailing list