This is a portion of code out of a callback program I'm using:
if ($response eq 1) {
verbose(CALLBACK: Callback to $clidnumber confirmed.);
$out = new Asterisk::Outgoing;
$out-setvariable(Channel, $channel . $clidnumber);
$out-setvariable(MaxRetries, 1);
$out-setvariable(context, $context);
$out-setvariable(extension, $extension);
$out-setvariable(CallerID, $outgoingclid $clidnumber);
$out-outtime(time() + 15);
$out-create_outgoing;
$AGI-stream_file($dir/callback-confirmed);
} else {
verbose(CALLBACK: Callback to $clidnumber canceled!);
$AGI-stream_file($dir/canceled);
};
Note the outtime line. Change the 15 to however many seconds you want
to wait. If you would like the entire file, let me know.
Darren Wiebe
[EMAIL PROTECTED]
Kamran Ahmad wrote:
hello
i am trying to make a callback solution.
client will call callback number and call is
terminated.
now callback server will create a call for that
client.
actually i have a problem in this process. that server
is creating call to client (UA) when previous call is
not disconnected yet.
UA--Asterisk(callbacknumber) callis answered
UA--Asterisk(callbackserver) call is created
when previous call is not hangup
any solution how to resolve this problem
i am stuk here
can any one help me in this
Kamran
__
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users