Skip to content

Passing variables to dialplan on originateCall #20

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hi, 

when passing variables to originate call function like: 

  /**
  * Originate Call
  */

  try {
     $ast->originateCall ('1000', 'SIP/provider/+123456789' , 'outgoing', '+122222092', 1, 30000, array("FOO"=>"value1", "BAR"=>"value2"));
  } catch (PEAR_Exception $e) {
      echo $e;
  }

I would expect to have those variables available in my dialplan:

[outgoing]
exten => 1000,1,Background(/data/sounds/beep)
  same => n,Background(/data/sounds/${FOO})
  same => n,Background(/data/sounds/${BAR})
  same => n,Hangup()


They are not. 

Am I missing something? Can this be achieved?

Thank you

Original issue reported on code.google.com by gombar...@sven.sk on 16 May 2013 at 3:19

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions