[asterisk-users] Playing a message if my call lands in their voicemail

John Regal jregal at gmail.com
Sat Dec 12 13:17:00 CST 2009


That worked beautifully, Thank you VERY much.
John

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Doug Lytle
Sent: Saturday, December 12, 2009 9:50 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Playing a message if my call lands in their
voicemail

John Regal wrote:
> Hi All,
> My client makes manual sales calls to prospects. He is often sent to 
> voicemail on the prospect's side. If he finds himself having to leave 
> a message, he would like to be able to press a key and let a 
> pre-recorded message play into the prospect's vmail box. This is so he 
> can maintain consistency in his

I modified the 1 touch recording option.  You need to do the following:

Modify the extension.conf

[globals]

DYNAMIC_FEATURES => messageplay

Add a context for the messageplay in the extensions.conf

[macro-messageplay]

exten => s,1,Playback(tt-monkeys)
exten => s,n,Hangup()

Modify the features.conf

add

[applicationmap]

messageplay => *8,callee,Macro,messageplay


Okay, this is what this it all does.

The application map is setup to use *8 to launch.  The callee option 
causes Asterisk to play the audio to the opposite channel.  It plays the 
tt-monkeys sound effect for testing.  I didn't know how to re-establish 
two-way audio after playing the sound, so I just hang up.

At that point, I found that Asterisk doesn't hangup but  jumps back to 
the calling macro (macro-sip-extensions) and continues with the dialplan 
with a dialstatus of s-ANSWER.  I had to add that.  It plays an audio 
confirmation and then hangs up:

exten => _5XXX,n,Goto(s-${DIALSTATUS},1)
exten => s-CHANUNAVAIL,1,Playback(local/all-circuits-busy)
exten => s-CHANUNAVAIL,2,Congestion()
exten => s-NOANSWER,1,Congestion()
exten => s-CONGESTION,1,Congestion()
exten => s-CANCEL,1,Playback(local/all-circuits-busy)
exten => s-CANCEL,n,Congestion()

exten => s-ANSWER,1,Playback(local/stutter)
exten => s-ANSWER,n,Hangup()


Doug

-- 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."


_______________________________________________
-- 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




More information about the asterisk-users mailing list