We forward calls to outside numbers a lot from our PBX. The basic premise is Person A calls a number that belongs to us, our asterisk system forwards it to Person B, and plays a message to Person B before connecting the 2 calls together.
The problem is, if Person B hangs up before Person A, Person A keeps going down the dialplan until they eventually hit our “catchall” rule, at which point they end up somewhere very strange to them. What am I doing wrong to cause this?
I have sanitized the code a bit below, any help would be awesome.
; Call forwarding for for Kevin (ID# 7837)
exten => 8775555555,1,Noop(for Kevin)
exten => 8775555555,2,Dial(ZAP/g3/8665555555,,A(/var/lib/asterisk/glassnet/glassnet_whisper))
exten => 8775555555,3,Hangup()