Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old September 19th, 2004, 09:59 AM
Junior Member
 
Join Date: Sep 2004
Posts: 19
descore
Default "Pulling" a call out of the VoiceMail system and &

Hi,

I want to use Asterisk's voicemail system instead of our answering machine, but I have an issue with WAF (Wife Acceptance Factor) that I need to resolve before I can do it.

Basically when our answering machine takes a call you can hear the caller in the other end and if you pick up the handset, the answering machine stops.

This has 2 purposes:

1) If you are running around to find the cordless phone it gives you some extra time after the answering machine kicks in.

2) You can hear who is calling and if it's someone important you can pick it up even if you weren't bothered otherwise.

I would like to emulate this functionality with *.

So there are two separate issues here. I don't know if both can be solved and I think they have separate solutions anyway:

1) I want to be able to transfer a call that is currently in the VoiceMail system leaving a message, over to another extension by dialing some code.

2) If its possible, I want to be able to copy the sound of a call out of the * server's sound card.

Does anyone have any ideas for how to accomplish these?

TIA,
Descore
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old September 20th, 2004, 01:10 AM
PhoneBoy's Avatar
Senior Member
 
Join Date: Sep 2003
Location: Port Orchard, WA
Posts: 3,295
PhoneBoy is an unknown quantity at this point
Default

Asterisk stores the files as WAVs I believe, so it should be trivial to pump the voicemail sound out the speakers. Of course, that doesn't help when you're leaving a message. Not sure how to get the "live" call to play out the speakers.
__________________
Technical questions should be posted to the forums, not sent via PM to me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old September 20th, 2004, 02:04 AM
Junior Member
 
Join Date: Sep 2004
Posts: 19
descore
Default

I guess it's something with Monitor. I wrote a post earlier about how I'd set up Asterisk to record calls, so I guess if I could pipe the output of Monitor into sox in realtime I could find a way get it out the speaker quite easily.

The other part of the problem is worse though - how do I get the call transferred back to my handset by entering a code or something? This is where I'm stuck, if I figure out how to do this I'm sure I can work out a way to get the sound out. I'm sure there are some * commands that will let me do it but I need some sort of example to work with since I'm pretty new with the dialplan syntax.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old September 20th, 2004, 07:44 AM
PhoneBoy's Avatar
Senior Member
 
Join Date: Sep 2003
Location: Port Orchard, WA
Posts: 3,295
PhoneBoy is an unknown quantity at this point
Default

I believe once the call hits the voicemail system, it's basically a "black box" you can't get it out of.
__________________
Technical questions should be posted to the forums, not sent via PM to me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old September 20th, 2004, 08:05 AM
Senior Member
 
Join Date: Apr 2004
Location: Amsterdam, Netherlands
Posts: 345
muppetmaster is an unknown quantity at this point
Default

You could hack the code, but beyond that not aware of a way to do it. But this vmail is no different than those provided by your local RBOC. It's time to ditch the old answering machine concept anyway...
__________________
dCAP Certified
Rails, know it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old September 20th, 2004, 10:08 AM
Junior Member
 
Join Date: Sep 2004
Posts: 19
descore
Default

Ok I guess I'll have to stick with the "old fashioned" answering machine until I have some time to mess around with the code.

What I envision to do is something like this:

; My master extension
exten => 100,1,Dial(SIP/101&SIP/102,120)
exten => 100,2,SetGlobalVar(CallInVoicemail=${CALLID}) ; Is there something like this
exten => 100,3,MonitorCustom("/usr/bin/mymixerscript")
exten => 100,4,VoiceMail(u100)

; Code for grabbing call in voicemail
exten => 199,1,GrabCall(${CALLINVOICEMAIL})
exten => 199,102,Playback(custom/no-call-in-voicemail)

So I'd need two "new" commands:

MonitorCustom - Like Monitor, but will pass to the program two file descriptors or unix sockets with the raw audio of the two sides of the call. A small standalone app would then mix the channels and play them via /dev/dsp or something.

GrabCall - Would behave a bit like Dial, but instead connect the caller to an existing call in the system by it's ID. Whatever application was currently using the call would get signalled that the user has hung up.

This is just brainstorming but I'm probably going to subscribe to the dev list to get some feedback.

Anyway thanks Phoneboy and Muppetmaster for the inspiration, I hope I can get this to work as soon as I have a bit of time to do some coding

Cheers,

Descore
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old September 20th, 2004, 10:18 AM
Senior Member
 
Join Date: Apr 2004
Location: Amsterdam, Netherlands
Posts: 345
muppetmaster is an unknown quantity at this point
Default

If you do end up doing some hacking, would be more than happy to be an alpha tester.
__________________
dCAP Certified
Rails, know it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8 (permalink)  
Old September 20th, 2004, 12:15 PM
Junior Member
 
Join Date: Sep 2004
Posts: 19
descore
Default

Sure thing muppetmaster, I've already posted on the dev list and I'll let you know about any progress.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uniden UIP1868 "Whole House System" and Asterisk? ZED28 Other Hardware/Software 24 May 10th, 2006 04:51 PM
SPA3000 Call Transfer "PBX Style" Possible (PSTN - dnllam Linksys (Sipura) VoIP Support Forum 1 May 7th, 2006 11:27 PM
Can't call trough PSTN: "Call 1 State:Invalid" DWizzy Linksys (Sipura) VoIP Support Forum 3 April 8th, 2006 12:08 PM
dialing to "s" or "7777" picks up immedi anv Asterisk Support Forum 0 February 21st, 2006 09:31 AM
"Dial 0 to speak to Reception" from voicemail w14 Asterisk Support Forum 1 January 8th, 2006 11:37 PM



All times are GMT. The time now is 06:57 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.