Displaying 1 result from an estimated 1 matches for "marke2".
Did you mean:
marked
2008 Feb 06
0
Problem forwarding a call with an AGI script
...call, it
returns the call to User A with an AGI script.
The dialplan looks like this:
[local]
....
exten => 96,1,Dial(SIP/user4,10,tr)
exten => 96,2,AGI(transfer.php)
exten => 97,1,NoOp("MARKE1------------")
exten => 97,2,DIAL(SIP/user1,20,tr)
exten => 97,3,NoOp("MARKE2-------------")
exten => 97,4,BUSY()
transfer.php:
#! /usr/bin/php -q
<?php
$i=0;
ob_implicit_flush(true);
set_time_limit(6);
error_reporting(0);
$stdin=fopen("php://stdin","r");
while(!feof($stdin)){
$temp = fgets($stdin);
$temp = str_replace(&quo...