Hello All,

I have my own AGI script running and I am trying to push the call to 
voice mail when Busy, Unavailable and Not Answered.

Everything is working fine but the only problem is voice mail greetings 
for Busy and Unavailable is not played. By default only "Temp Greetings" 
voice mail greetings is played. I am passing the correct parameters for 
Busy => 'b', Unavailable => 'u' and default goes to "Not Answered".

Here is a code sample: -

<?
if($status == "BUSY"){
    $arr = array("[EMAIL PROTECTED]", 'b');
    $agi->exec("VOICEMAIL",  $arr);
} elseif ($status == "CHANUNAVAIL"){
    $arr = array("[EMAIL PROTECTED]", 'u');
    $agi->exec("VOICEMAIL",  $arr);
} else {
    $arr = array("[EMAIL PROTECTED]");
    $agi->exec("VOICEMAIL",  $arr);
}
?>

Here is the AGI Debug message: -
-- AGI Script Executing Application: (VOICEMAIL) Options: 
([EMAIL PROTECTED]|b)
-- Playing '/var/spool/asterisk/voicemail/default/2481237766/temp' 
(language 'en')

As you can see I am passing the correct parameter for BUSY => |b, but 
Asterisk is only playing the "temporary greetings".

Any suggestions... By the way I am running Asterisk 1.2.18

Cheers,
Nitesh



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to