Im looking to have a caller dial in, record a message and hang up, then I want asterisk to dial out and to a number and play the recording. I try something like this:
But the process stops at the first hangup, can anyone please help?
It’s is normal for the thread to stop at a single hangup.
You can’t do anything about it in the dialplan directly.
What you can do is write a call file with the call settings you want.
Before hanging up copy it to /var/spool/asterisk/outgoing
asterisk outgoing spool directory.
The call file will then do the rest for you.
For details about auto-dial as always refer wiki voip-info.org/tiki-index.php … o-dial+out
Ok, two things, I LOVE the idea of the h extension even if it doesn’t work for the dial I can use it to create the call file AFTER the caller hangs up, this is cool. (And I did not spell inbound correctly in my post)
I have tried manually creating a .call file and have had success getting it to actually initiate a call. However this is what happens, the destination number rings, I pick up the line and there is hangup… as I watch Asterisk, it appears that the message is played prior to the pickup of the line. So how do I detect when the line is answered to initiate the playback?
Well, It seems my problem is a little deeper than just Asterisk.
I am using a Sipura SPA-3102, when an outbound call is initialized the SPA answers the call prior to dialing out. I only found this out after using an IAX trunk that I have from another provider where the .call file functioned as expected. I called support on the issue and they say that this is how the SPA is designed and there is no way to not have the SPA answer. Does anyone know a work around for that. The closest I can get is to dump the call into a context with a timeout the repeats. but this is not good.