[asterisk-users] Clean Hangup() ?

Turbo Fredriksson turbo at bayour.com
Tue Oct 16 10:22:39 CDT 2007


Took some examples from voip-info.org to deal with
call forwarding etc:

exten => _*21*X.,1,NoOp(Unconditional Call Forward on extension ${CALLERID(num)} to ${EXTEN:4})
exten => _*21*X.,n,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:4})
exten => _*21*X.,n,Hangup()

Problem is that * don't hangup cleanly:

Spawn extension (default, *21*2403, 3) exited non-zero on 'SIP/2401-081e7048'

and I get the 'wrong extension' signal in the phone...

And SoftHangup() don't work much better. No *Hangup() at all 'hangs' for
a while, until I'm forcibly hung up...

Replacement?



More information about the asterisk-users mailing list