VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
asterisk at glccom.com Guest
|
Posted: Thu Apr 03, 2008 12:34 pm Post subject: [asterisk-users] Sending audio to a channel |
|
|
I have a voicemail application that users can listen to messages and
leave messages. I am looking for a way to play a beep tone to a user
when a new message is received when they are on the phone.
Here is what I have come up with:
in extensions.conf:
[beepvoicemail]
exten => 1000,1,answer()
exten => 1000,2,NoCDR()
exten => 1000,3,wait(2)
exten => 1000,4,Set(TIMEOUT(absolute)=5)
exten => 1000,5,playback(voicemail/beeps)
exten => 1000,7,SendDTMF(9)
exten => 1000,8,hangup()
exten => 2000,1,Set(TIMEOUT(absolute)=5)
exten => 2000,2,NoCDR()
exten => 2000,3,extenspy(,g(${mailbox})WqX)
exten => 2000,4,hangup()
Here is what I run:
Action: Originate
Channel: Local/2000 at beepvoicemail
MaxRetries: 0
RetryTime: 15
Context: beepvoicemail
Exten: 1000
Priority: 1
Callerid: Pager <1000>
Variable: mailbox=$mailbox_user
I am using perl to originate so lets say mailbox 80085 left a message
for 8675309 $mailbox_user would contain 8675309 everyone that is logged
onto the system is part of there own spygroup the spygroup is always the
mailbox number.
This works when it doesn't crash Asterisk or the application does not
get stuck on extenspy for hours and hours.
Is there anyway to have an application that can just send audio to a
channel without having to use extenspy (it's sort of overkill for what I
need)
Thanks For the help.
--John |
|
Back to top |
|
|
Guest
|
Posted: Thu Apr 03, 2008 7:17 pm Post subject: [asterisk-users] Sending audio to a channel |
|
|
On 3/25 Justin Newman wrote a message to the list mentioning his
SystemAnnounce application that broadcasts audio to all active channels,
I suspect his code would be easy to modify to broadcast to a single
channel...
Moj
John Hass wrote:
Quote: | I have a voicemail application that users can listen to messages and
leave messages. I am looking for a way to play a beep tone to a user
when a new message is received when they are on the phone.
Here is what I have come up with:
in extensions.conf:
[beepvoicemail]
exten => 1000,1,answer()
exten => 1000,2,NoCDR()
exten => 1000,3,wait(2)
exten => 1000,4,Set(TIMEOUT(absolute)=5)
exten => 1000,5,playback(voicemail/beeps)
exten => 1000,7,SendDTMF(9)
exten => 1000,8,hangup()
exten => 2000,1,Set(TIMEOUT(absolute)=5)
exten => 2000,2,NoCDR()
exten => 2000,3,extenspy(,g(${mailbox})WqX)
exten => 2000,4,hangup()
Here is what I run:
Action: Originate
Channel: Local/2000 at beepvoicemail
MaxRetries: 0
RetryTime: 15
Context: beepvoicemail
Exten: 1000
Priority: 1
Callerid: Pager <1000>
Variable: mailbox=$mailbox_user
I am using perl to originate so lets say mailbox 80085 left a message
for 8675309 $mailbox_user would contain 8675309 everyone that is logged
onto the system is part of there own spygroup the spygroup is always the
mailbox number.
This works when it doesn't crash Asterisk or the application does not
get stuck on extenspy for hours and hours.
Is there anyway to have an application that can just send audio to a
channel without having to use extenspy (it's sort of overkill for what I
need)
Thanks For the help.
--John
_______________________________________________
-- 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
|
|
|
Back to top |
|
|
asterisk at glccom.com Guest
|
Posted: Thu Apr 03, 2008 7:35 pm Post subject: [asterisk-users] Sending audio to a channel |
|
|
I will see what I can find I just joined the list today.
--John
-----Original Message-----
From: Mojo with Horan & Company, LLC [mailto:mojo at horanappraisals.com]
Sent: Thu 4/3/2008 7:17 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Sending audio to a channel
On 3/25 Justin Newman wrote a message to the list mentioning his
SystemAnnounce application that broadcasts audio to all active channels,
I suspect his code would be easy to modify to broadcast to a single
channel...
Moj
John Hass wrote:
Quote: | I have a voicemail application that users can listen to messages and
leave messages. I am looking for a way to play a beep tone to a user
when a new message is received when they are on the phone.
Here is what I have come up with:
in extensions.conf:
[beepvoicemail]
exten => 1000,1,answer()
exten => 1000,2,NoCDR()
exten => 1000,3,wait(2)
exten => 1000,4,Set(TIMEOUT(absolute)=5)
exten => 1000,5,playback(voicemail/beeps)
exten => 1000,7,SendDTMF(9)
exten => 1000,8,hangup()
exten => 2000,1,Set(TIMEOUT(absolute)=5)
exten => 2000,2,NoCDR()
exten => 2000,3,extenspy(,g(${mailbox})WqX)
exten => 2000,4,hangup()
Here is what I run:
Action: Originate
Channel: Local/2000 at beepvoicemail
MaxRetries: 0
RetryTime: 15
Context: beepvoicemail
Exten: 1000
Priority: 1
Callerid: Pager <1000>
Variable: mailbox=$mailbox_user
I am using perl to originate so lets say mailbox 80085 left a message
for 8675309 $mailbox_user would contain 8675309 everyone that is logged
onto the system is part of there own spygroup the spygroup is always the
mailbox number.
This works when it doesn't crash Asterisk or the application does not
get stuck on extenspy for hours and hours.
Is there anyway to have an application that can just send audio to a
channel without having to use extenspy (it's sort of overkill for what I
need)
Thanks For the help.
--John
_______________________________________________
-- 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
| _______________________________________________
-- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3916 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080403/e99e1579/attachment.bin |
|
Back to top |
|
|
|
|
|
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
|