Menu

EXEC Dial - How do I pass options?

2004-11-25
2013-04-29
  • Matthew Boehm

    Matthew Boehm - 2004-11-25

    lcr.php: >> EXEC DIAL "SIP/15124512424@64.72.107.2,60,tr"
        -- AGI Script Executing Application: (DIAL) Options: (SIP/15124512424@64.72.107.2,60,tr)
    Nov 24 21:06:41 WARNING[9984]: chan_sip.c:1314 create_addr: No such host: 64.72.107.2,60,tr
    Nov 24 21:06:41 NOTICE[9984]: app_dial.c:777 dial_exec: Unable to create channel of type 'SIP'
      == No one is available to answer at this time

    How does one pass options to agi_exec?

     
    • Matthew Asham

      Matthew Asham - 2004-12-23

      Like this:

              $res=$agi->agi_exec("EXEC DIAL SIP/1234@sip.domain.com||t,r");

      To specify a timeout of 30 seconds:

              $res=$agi->agi_exec("EXEC DIAL SIP/1234@sip.domain.com|30|t,r");

       

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.