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