Menu

exec Dial

2010-12-16
2013-04-29
  • Brian Doyle

    Brian Doyle - 2010-12-16

    I am attempting to execute a macro for the callee when using exec dial.  Though other options are being recognized, when I pass "M" with a specified macro, it doesn't seem to be acknowledged. 

    I am currently using:

    $agi->exec('Dial', "SIP/trunk_1/XXXXXXXXXX,25,m,M|my-callee-macro");

    Can anyone advise?

    Thanks

     
  • Brian Doyle

    Brian Doyle - 2010-12-22

    Any advice out there?

    - b

     
  • josephtikva

    josephtikva - 2010-12-22

    assuming your macro is

    [macro-my-callee]
    

    (you need to write macros that way, with "macro-" as the prefix.)

    Instead of:

     $agi->exec('Dial', "SIP/trunk_1/XXXXXXXXXX,25,m,M|my-callee-macro");
    

    Use:

    $agi->exec('Dial', "SIP/trunk_1/XXXXXXXXXX,25,mM(my-callee)");
    

    (note i removed the comma and enclosed macro name in ()

     
  • Brian Doyle

    Brian Doyle - 2010-12-22

    Thanks josephtikva!  It worked.  I simply put "-macro" at the end to indicate I was specifying the macro name. 

     
  • Anonymous

    Anonymous - 2011-09-19

    Basic PHPAGI questions.

    to place a call inside my php script do i write
    $agi->exec('Dial', "SIP/2000,25,r");

    how do i playback in my phpscritp ??
    $agi-exec('Playback',"/thepath/thefile");

    ??

     
  • Anonymous

    Anonymous - 2011-09-19

    OPPS SORRY should be a new topic

     

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.