From-internal-additional Hangup problem

Hello

Basically i am developing some integration between Queuemetrics and Freepbx for statics , and i am almost done except for some problems with the “h,1, hangup()” included at the very end of the context “from-internal-additional” when i call to a my pstn and i decide to hang up first.

Unsuccessfully i did a context

[from-internal-additional-custom]
exten => h,1,goto(qm-queuedial,h,1)

it didn’t work either so ,how can i avoid this situation?

I’m having a similar Hangup problem. When using SmartRoutes or dynamic routes, If i place ether of these 2 modules after a time condition or as a destination in an IVR, all the calls hangup when using these features. Not All calls that did not go thru these smart routs or dynamic Routes. Here is my CLI output.

== Using SIP RTP CoS mark 5
– Executing [(Inbound DID)@from-ptsn-custom:1] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “CALLERID(num)=(Inbound CID)”) in new stack
– Executing [(Inbound DID)@from-ptsn-custom:2] Goto(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “from-trunk,(Inbound DID),1”) in new stack
– Goto (from-trunk,(Inbound DID),1)
– Executing [(Inbound DID)@from-trunk:1] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “__FROM_DID=(Inbound DID)”) in new stack
– Executing [(Inbound DID)@from-trunk:2] Gosub(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “”) in new stack
– Executing [(Inbound DID)@from-trunk:3] ExecIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0 ?Set(CALLERID(name)=(Inbound CID))”) in new stack
– Executing [(Inbound DID)@from-trunk:4] SetMusicOnHold(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “Jazz-Tunes”) in new stack
– Executing [(Inbound DID)@from-trunk:5] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “__MOHCLASS=Jazz-Tunes”) in new stack
– Executing [(Inbound DID)@from-trunk:6] Macro(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “privacy-mgr,4,10”) in new stack
– Executing [s@macro-privacy-mgr:1] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “KEEPCID=(Inbound CID)”) in new stack
– Executing [s@macro-privacy-mgr:2] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?CIDTEST2:CIDTEST1”) in new stack
– Goto (macro-privacy-mgr,s,3)
– Executing [s@macro-privacy-mgr:3] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “TESTCID=6196211058.000000”) in new stack
– Executing [s@macro-privacy-mgr:4] Goto(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “TESTRESULT”) in new stack
– Goto (macro-privacy-mgr,s,6)
– Executing [s@macro-privacy-mgr:6] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?CLEARCID:PRIVMGR”) in new stack
– Goto (macro-privacy-mgr,s,8)
– Executing [s@macro-privacy-mgr:8] PrivacyManager(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “4,10”) in new stack
– CallerID number present: Skipping
– Executing [s@macro-privacy-mgr:9] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?fail”) in new stack
– Executing [s@macro-privacy-mgr:10] GosubIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “1?app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “”) in new stack
– Executing [s@macro-privacy-mgr:11] SetCallerPres(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “allowed_passed_screen”) in new stack
– Executing [(Inbound DID)@from-trunk:7] Goto(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “ivr-7,s,1”) in new stack
– Goto (ivr-7,s,1)
– Executing [s@ivr-7:1] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “MSG=”) in new stack
– Executing [s@ivr-7:2] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “LOOPCOUNT=0”) in new stack
– Executing [s@ivr-7:3] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “__DIR-CONTEXT=”) in new stack
– Executing [s@ivr-7:4] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “_IVR_CONTEXT_ivr-7=”) in new stack
– Executing [s@ivr-7:5] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “_IVR_CONTEXT=ivr-7”) in new stack
– Executing [s@ivr-7:6] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?begin”) in new stack
– Executing [s@ivr-7:7] Answer(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “”) in new stack
– Executing [s@ivr-7:8] Wait(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “1”) in new stack
– Executing [s@ivr-7:9] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3.000
– Executing [s@ivr-7:10] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “TIMEOUT(response)=0”) in new stack
– Response timeout set to 0.000
– Executing [s@ivr-7:11] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “__IVR_RETVM=”) in new stack
– Executing [s@ivr-7:12] ExecIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “0?Background()”) in new stack
– Executing [s@ivr-7:13] WaitExten(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “,”) in new stack
– Timeout on SIP/fpbx-1-(Trunk UserName)-000000b9, going to ‘t’
– Executing [t@ivr-7:1] Goto(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “loop,1”) in new stack
– Goto (ivr-7,loop,1)
– Executing [loop@ivr-7:1] Set(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “LOOPCOUNT=1”) in new stack
– Executing [loop@ivr-7:2] GotoIf(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “1?hang,1”) in new stack
– Goto (ivr-7,hang,1)
– Executing [hang@ivr-7:1] Playback(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “vm-goodbye”) in new stack
– <SIP/fpbx-1-(Trunk UserName)-000000b9> Playing ‘vm-goodbye.slin’ (language ‘en’)
– Executing [hang@ivr-7:2] Hangup(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “”) in new stack
== Spawn extension (ivr-7, hang, 2) exited non-zero on ‘SIP/fpbx-1-(Trunk UserName)-000000b9’
– Executing [h@ivr-7:1] Hangup(“SIP/fpbx-1-(Trunk UserName)-000000b9”, “”) in new stack
== Spawn extension (ivr-7, h, 1) exited non-zero on 'SIP/fpbx-1-(Trunk UserName)-000000b9’
asterisk2*CLI>

Maybe these are related.
System Info:

Freepbx 2.8 and Asterisk 1.