Menu

Originate / Bridge

2010-10-23
2013-04-29
  • Brian Doyle

    Brian Doyle - 2010-10-23

    I have a IVR script written which "Originates" a call which is then supposed to bridge the originated call to the current call, but I am not sure of the variable name for the "current channel".  Please advise.

    - b

     
  • Brian Doyle

    Brian Doyle - 2010-10-23

    Well I was able to figure the variable issue, I ended up using $agi->get_variable('CHANNEL');.  But now I receive the following: "bridge_exec: Bridge failed because channel Array does not exists or we cannot get its lock"  Any guidance is appreciated….

     
  • Matthew Asham

    Matthew Asham - 2010-10-23

    get_variable will return an array - look at the 'data' element for the value.  Alternatively pass TRUE as get_variable's second parameter to only receive the data value.

        /**
        * Fetch the value of a variable.
        *
        * Does not work with global variables. Does not work with some variables that are generated by modules.
        *
        * @link http://www.voip-info.org/wiki-get+variable
        * @link http://www.voip-info.org/wiki-Asterisk+variables
        * @param string $variable name
        * @param boolean $getvalue return the value only
        * @return array, see evaluate for return information. ['result'] is 0 if variable hasn't been set, 1 if it has. ['data'] holds the value. returns value if $getvalue is TRUE
        */
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.