Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] AGI / Voicemail Que


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
nitesh at vipernetwork...
Guest





PostPosted: Fri Feb 22, 2008 1:58 pm    Post subject: [asterisk-users] AGI / Voicemail Que Reply with quote

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





PostPosted: Fri Feb 22, 2008 2:41 pm    Post subject: [asterisk-users] AGI / Voicemail Que Reply with 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
--

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





PostPosted: Fri Feb 22, 2008 10:31 pm    Post subject: [asterisk-users] AGI / Voicemail Que Reply with quote

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





PostPosted: Sat Feb 23, 2008 2:25 am    Post subject: [asterisk-users] AGI / Voicemail Que Reply with quote

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





PostPosted: Sat Feb 23, 2008 7:51 am    Post subject: [asterisk-users] AGI / Voicemail Que Reply with quote

Nitesh Divecha wrote:
Quote:
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


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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services