search for: _softhangup

Displaying 3 results from an estimated 3 matches for "_softhangup".

Did you mean: softhangup
2006 Jun 26
1
struggling with the "g" flag
...o a member added by addqueuemember(Local/99@AgentQ) why don't I get to the NoOp if the agent hangs up during the announcement message (to the agent) ? I see in the app_dial.c program that the "g" flag is tested thus: if ((ast_test_flag(peerflags, OPT_GO_ON)) && (!chan->_softhangup) && (res != AST_PBX_KEEPALIVE)) res = 0; So this would indicate that if all three of these conditions are met then res would be set to 0, and things would behave how I want. In chan_agent.c, the following line is where the agent has hung up if (peer->_softhangup) { /* Agent mu...
2003 Apr 26
6
DynExtenDB
...forced (chan-dnis) to be the same as (chan->exten). So far so good. Now I can connect and talk. This lead me to the second glitch. 2) As soon as the call ends by hanging up, the code issues a (ast_spawn_extension). This causes asterisk to drop dead. So I checked to see if it was a (chan->_softhangup) but it turns out to be null. The return code I am getting (res) is -1. Does anybody know, for instance, what ast_spawn_extension is doing? I found similar code in macro.c but I still don't know what its purpose in life is. Any suggestions are welcome. Hope Otto reads this message. Regards,...
2003 Jul 22
2
enabling dtmf detection on zap channel?
Hi, is there a way to enable dtmf detection on zap channels? I am trying to pickup, play a ringtone and the dial out. I.e. exten => s,1,Wait,1 exten => s,1,Answer exten => s,2,Playtones(dial) exten => s,3,DigitTimeout,5 exten => s,4,ResponseTimeout,10 exten => _X,1,StopPlaytones exten => _X,2,Dial,Zap/g8/BYEXTENSION|10