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
Any advice out there?
- b
assuming your macro is
[macro-my-callee]
(you need to write macros that way, with "macro-" as the prefix.)
Instead of:
Use:
$agi->exec('Dial', "SIP/trunk_1/XXXXXXXXXX,25,mM(my-callee)");
(note i removed the comma and enclosed macro name in ()
read this post
http://www.voip-info.org/wiki/view/Asterisk+tips+findme
Thanks josephtikva! It worked. I simply put "-macro" at the end to indicate I was specifying the macro name.
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");
??
OPPS SORRY should be a new topic
Log in to post a comment.
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
Any advice out there?
- b
assuming your macro is
(you need to write macros that way, with "macro-" as the prefix.)
Instead of:
Use:
(note i removed the comma and enclosed macro name in ()
read this post
http://www.voip-info.org/wiki/view/Asterisk+tips+findme
Thanks josephtikva! It worked. I simply put "-macro" at the end to indicate I was specifying the macro name.
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");
??
OPPS SORRY should be a new topic