Issues with the # key

Asterisk - 1.8.21.0
FreePBX - 2.11.0.38

For some reason whenever we dial a # while in a call it acts like a feature code for transferring even though none of the feature codes for transferring are #. I have adjusted DTMF and this has not remedied it. Below is my latest call example:

-- Executing [[email protected]:1] Macro("SIP/4999-00003835", "user-callerid,LIMIT,") in new stack
-- Executing [[email protected]:1] Set("SIP/4999-00003835", "TOUCH_MONITOR=1450371180.19124") in new stack
-- Executing [[email protected]:2] Set("SIP/4999-00003835", "AMPUSER=4999") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/4999-00003835", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/4999-00003835", "1?Set(REALCALLERIDNUM=4999)") in new stack
-- Executing [[email protected]:5] Set("SIP/4999-00003835", "AMPUSER=4999") in new stack
-- Executing [[email protected]:6] Set("SIP/4999-00003835", "AMPUSERCIDNAME=CommCore Test") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/4999-00003835", "0?report") in new stack
-- Executing [[email protected]:8] Set("SIP/4999-00003835", "AMPUSERCID=4999") in new stack
-- Executing [[email protected]:9] Set("SIP/4999-00003835", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [[email protected]:10] Set("SIP/4999-00003835", "CALLERID(all)="CommCore Test" <4999>") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/4999-00003835", "0?limit") in new stack
-- Executing [[email protected]:12] ExecIf("SIP/4999-00003835", "1?Set(GROUP(concurrency_limit)=4999)") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/4999-00003835", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:14] GosubIf("SIP/4999-00003835", "7?sub-ccss,s,1(from-internal,14192559070)") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/4999-00003835", "0?Return()") in new stack
-- Executing [[email protected]:2] Set("SIP/4999-00003835", "CCSS_SETUP=TRUE") in new stack
-- Executing [[email protected]:3] GosubIf("SIP/4999-00003835", "0?monitor_config,1(from-internal,14192559070):monitor_default,1(from-internal,14192559070)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/4999-00003835", "0?is_exten") in new stack
-- Executing [[email protected]:2] StackPop("SIP/4999-00003835", "") in new stack
-- Executing [[email protected]:3] Return("SIP/4999-00003835", "FALSE") in new stack
-- Executing [[email protected]:15] GotoIf("SIP/4999-00003835", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [[email protected]:28] Set("SIP/4999-00003835", "CALLERID(number)=4999") in new stack
-- Executing [[email protected]:29] Set("SIP/4999-00003835", "CALLERID(name)=CommCore Test") in new stack
-- Executing [[email protected]:30] Set("SIP/4999-00003835", "CDR(cnum)=4999") in new stack
-- Executing [[email protected]:31] Set("SIP/4999-00003835", "CDR(cnam)=CommCore Test") in new stack
-- Executing [[email protected]:32] Set("SIP/4999-00003835", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Set("SIP/4999-00003835", "MOHCLASS=default") in new stack
-- Executing [[email protected]:3] Set("SIP/4999-00003835", "_NODEST=") in new stack
-- Executing [[email protected]:4] Gosub("SIP/4999-00003835", "sub-record-check,s,1(out,14192559070,)") in new stack
-- Executing [[email protected]:1] Set("SIP/4999-00003835", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/4999-00003835", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [[email protected]:7] Set("SIP/4999-00003835", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:8] GotoIf("SIP/4999-00003835", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [[email protected]:11] ExecIf("SIP/4999-00003835", "0?Return()") in new stack
-- Executing [[email protected]:12] ExecIf("SIP/4999-00003835", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [[email protected]:13] GotoIf("SIP/4999-00003835", "0?out,1") in new stack
-- Executing [[email protected]:14] Set("SIP/4999-00003835", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:15] Set("SIP/4999-00003835", "NOW=1450371180") in new stack
-- Executing [[email protected]:16] Set("SIP/4999-00003835", "__DAY=17") in new stack
-- Executing [[email protected]:17] Set("SIP/4999-00003835", "__MONTH=12") in new stack
-- Executing [[email protected]:18] Set("SIP/4999-00003835", "__YEAR=2015") in new stack
-- Executing [[email protected]:19] Set("SIP/4999-00003835", "__TIMESTR=20151217-105300") in new stack
-- Executing [[email protected]:20] Set("SIP/4999-00003835", "__FROMEXTEN=4999") in new stack
-- Executing [[email protected]:21] Set("SIP/4999-00003835", "__CALLFILENAME=out-14192559070-4999-20151217-105300-1450371180.19124") in new stack
-- Executing [[email protected]:22] Goto("SIP/4999-00003835", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [[email protected]:1] ExecIf("SIP/4999-00003835", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [[email protected]:2] GosubIf("SIP/4999-00003835", "0?record,1(exten,14192559070,4999)") in new stack
-- Executing [[email protected]:3] Return("SIP/4999-00003835", "") in new stack
-- Executing [[email protected]:5] Macro("SIP/4999-00003835", "dialout-trunk,1,14192559070,,off") in new stack
-- Executing [[email protected]:1] Set("SIP/4999-00003835", "DIAL_TRUNK=1") in new stack
-- Executing [[email protected]:2] GosubIf("SIP/4999-00003835", "0?sub-pincheck,s,1()") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/4999-00003835", "0?disabletrunk,1") in new stack
-- Executing [[email protected]:4] Set("SIP/4999-00003835", "DIAL_NUMBER=14192559070") in new stack
-- Executing [[email protected]:5] Set("SIP/4999-00003835", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [[email protected]:6] Set("SIP/4999-00003835", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/4999-00003835", "0?nomax") in new stack
-- Executing [[email protected]:8] GotoIf("SIP/4999-00003835", "0?chanfull") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/4999-00003835", "0?skipoutcid") in new stack
-- Executing [[email protected]:10] Set("SIP/4999-00003835", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [[email protected]:11] Macro("SIP/4999-00003835", "outbound-callerid,1") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/4999-00003835", "0?Set(CALLERPRES()=)") in new stack
-- Executing [[email protected]:2] ExecIf("SIP/4999-00003835", "0?Set(REALCALLERIDNUM=4999)") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/4999-00003835", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [[email protected]:6] Set("SIP/4999-00003835", "USEROUTCID="Anderson&Assc" <7082269904>") in new stack
-- Executing [[email protected]:7] Set("SIP/4999-00003835", "EMERGENCYCID=7082269904") in new stack
-- Executing [[email protected]:8] Set("SIP/4999-00003835", "TRUNKOUTCID=") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/4999-00003835", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [[email protected]:14] ExecIf("SIP/4999-00003835", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:15] ExecIf("SIP/4999-00003835", "1?Set(CALLERID(all)="Anderson&Assc" <7082269904>)") in new stack
-- Executing [[email protected]:16] ExecIf("SIP/4999-00003835", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:17] ExecIf("SIP/4999-00003835", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [[email protected]:18] Set("SIP/4999-00003835", "CDR(outbound_cnum)=7082269904") in new stack
-- Executing [[email protected]:19] Set("SIP/4999-00003835", "CDR(outbound_cnam)=Anderson&Assc") in new stack
-- Executing [[email protected]:12] GosubIf("SIP/4999-00003835", "0?sub-flp-1,s,1()") in new stack
-- Executing [[email protected]:13] Set("SIP/4999-00003835", "OUTNUM=14192559070") in new stack
-- Executing [[email protected]:14] Set("SIP/4999-00003835", "custom=SIP/sos5tosos") in new stack
-- Executing [[email protected]:15] ExecIf("SIP/4999-00003835", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [[email protected]:16] ExecIf("SIP/4999-00003835", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [[email protected]:17] Macro("SIP/4999-00003835", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] MacroExit("SIP/4999-00003835", "") in new stack
-- Executing [[email protected]:18] GotoIf("SIP/4999-00003835", "0?bypass,1") in new stack
-- Executing [[email protected]:19] ExecIf("SIP/4999-00003835", "1?Set(CONNECTEDLINE(num,i)=14192559070)") in new stack
-- Executing [[email protected]:20] ExecIf("SIP/4999-00003835", "1?Set(CONNECTEDLINE(name,i)=CID:7082269904)") in new stack
-- Executing [[email protected]:21] GotoIf("SIP/4999-00003835", "0?customtrunk") in new stack
-- Executing [[email protected]:22] Dial("SIP/4999-00003835", "SIP/sos5tosos/14192559070,300,Tt") in new stack

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5

-- Called SIP/sos5tosos/14192559070
-- SIP/sos5tosos-00003836 answered SIP/4999-00003835
-- Started music on hold, class 'default', on SIP/sos5tosos-00003836
-- <SIP/4999-00003835> Playing 'pbx-transfer.ulaw' (language 'en')
-- Stopped music on hold on SIP/sos5tosos-00003836
-- Executing [[email protected]:1] Macro("SIP/4999-00003835", "hangupcall,") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/4999-00003835", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [[email protected]:3] ExecIf("SIP/4999-00003835", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [[email protected]:4] Hangup("SIP/4999-00003835", "") in new stack

== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/4999-00003835’ in macro ‘hangupcall’
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/4999-00003835’
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/4999-00003835’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 14192559070, 5) exited non-zero on ‘SIP/4999-00003835’

I believe that the use of # for transfers are configured in the Asterisk Dial Command. I’ve always advocated for changing the default dial command, but nobody seems to agree with me.

To fix it:

Settings -> Advanced Settings

Change:

Asterisk Dial Options: r
Asterisk Outbound Trunk Dial Options: (empty/blank)