Displaying 2 results from an estimated 2 matches for "ast_softhangup_explicit".
2003 Sep 16
8
Hangups after voicemail
...ded the following hideous hack - er, code - to voicemail2.c.
It starts right after the call to play_and_record() in leave_voicemail().
if (res != '#' && chan != NULL && !strncmp(chan->name, "Zap", 3)) {
/* Hang up the Zap channel only */
ast_softhangup(chan, AST_SOFTHANGUP_EXPLICIT);
}
Obviously, it hangs up the channel after the voicemail has been recorded, if
the # key wasn't pressed, if the channel still exists, and if it's a Zap
channel. I couldn't see a way to do this with AGI.
Question: is this safe? I used a soft hangup because the channel is controlled...
2003 Sep 24
1
Voicemail doesn't hangup
I'm running the a very recent CVS version of asterisk on an RH9
machine. My problem is that my x100p takes about 10 seconds to detect a
hangup. After that it takes about 10 more seconds for the the zaptel
device to release the line. Here's an example of my console report:
== Parsing
'/var/spool/asterisk/voicemail/default/101/INBOX/msg0000.txt': ==
Parsing