View previous topic :: View next topic |
Author |
Message |
nitesh at vipernetwork... Guest
|
Posted: Fri Feb 22, 2008 1:58 pm Post subject: [asterisk-users] AGI / Voicemail Que |
|
|
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("$vphone at default", 'b');
$agi->exec("VOICEMAIL", $arr);
} elseif ($status == "CHANUNAVAIL"){
$arr = array("$vphone at default", 'u');
$agi->exec("VOICEMAIL", $arr);
} else {
$arr = array("$vphone at default");
$agi->exec("VOICEMAIL", $arr);
}
?>
Here is the AGI Debug message: -
-- AGI Script Executing Application: (VOICEMAIL) Options:
(2481237766 at default|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 |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Fri Feb 22, 2008 2:41 pm Post subject: [asterisk-users] AGI / Voicemail Que |
|
|
Nitesh Divecha wrote:
Quote: | (2481237766 at default|b)
Any suggestions... By the way I am running Asterisk 1.2.18
|
I believe under 1.2.x it would be b${PHONE}@{CONTEXT}
One of my older dial plans lists:
s-BUSY,1,Voicemail(b${ARG1}@sip)
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
nitesh at vipernetwork... Guest
|
Posted: Fri Feb 22, 2008 10:31 pm Post subject: [asterisk-users] AGI / Voicemail Que |
|
|
Thanks Doug,
I tried that but it didn't work either... As per Wiki
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+VoiceMail it
has a statement that starting from 1.4-trunk FLAG must be pass using a
pipe sign '|'.
I have other Asterisk 1.2 running with FreePBX and I went over the agi
code, I saw its passing FLAG using pipe sign '|'.
So now I am kinda confused...
Cheers,
Nitesh
Doug Lytle wrote:
Quote: | Nitesh Divecha wrote:
Quote: | (2481237766 at default|b)
Any suggestions... By the way I am running Asterisk 1.2.18
|
I believe under 1.2.x it would be b${PHONE}@{CONTEXT}
One of my older dial plans lists:
s-BUSY,1,Voicemail(b${ARG1}@sip)
Doug
|
|
|
Back to top |
|
|
tpeirce at digitalcon.ca Guest
|
Posted: Sat Feb 23, 2008 2:25 am Post subject: [asterisk-users] AGI / Voicemail Que |
|
|
Nitesh Divecha wrote:
Quote: | 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".
| I believe the temp greeting will override busy and unavailable
greetings. Delete the temp greeting and you should have no problem.
Trevor
--
Real CNAM data for incoming Caller ID @ www.cnam.info |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Sat Feb 23, 2008 7:51 am Post subject: [asterisk-users] AGI / Voicemail Que |
|
|
Nitesh Divecha wrote:
I think Trevor is correct. If there is a temp greeting recorded, this
will be played instead of the busy. Remove it and you should be fine.
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
|