SIP invite appending a number to my dial out

I added a new Anveno trunk yesterday to a working call flow on my Freepbx physical box. All my other trunks are working fine.
When I dial out with Anveno instead, it appears to append a 40 to my dial number. Then I get a fast busy. CDR on Aveno site shows the appended 40.
I’ve not seen this before but I am grateful for your help.
How do I get rid of this appended number? I’m reviewing my trunk settings and do not see where a 40 could be appended.

SNGREP trace
Display Filter:
^Idx Method SIP From SIP To Msgs Source
[ ] 1 INVITE [email protected].1.xx:5060 [email protected].1.xx:5 6 192.xxx.1.xxx:53219
[ ] 2 INVITE [email protected].34 17575937584%[email protected] 8 192.xxx.1.xxx:5060

Connected to Asterisk 14.7.5 currently running on freepbx (pid = 2219)
freepbxCLI> core set verbose 10
Console verbose was OFF and is now 10.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7f551ce134c0 – Strict RTP learning after remote address set to: 192.168.1.137:40024
– Executing [7575937584@from-internal:1] Macro(“SIP/119-00001cec”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/119-00001cec”, “TOUCH_MONITOR=1588992329.148406”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/119-00001cec”, “AMPUSER=119”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/119-00001cec”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/119-00001cec”, “1?Set(REALCALLERIDNUM=119)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/119-00001cec”, “AMPUSER=119”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/119-00001cec”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/119-00001cec”, “AMPUSERCIDNAME=119”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“SIP/119-00001cec”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/119-00001cec”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/119-00001cec”, “AMPUSERCID=119”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/119-00001cec”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/119-00001cec”, “CALLERID(all)=“119” <119>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/119-00001cec”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/119-00001cec”, “1?Set(GROUP(concurrency_limit)=119)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/119-00001cec”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“SIP/119-00001cec”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/119-00001cec”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“SIP/119-00001cec”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“SIP/119-00001cec”, “CALLERID(number)=119”) in new stack
– Executing [s@macro-user-callerid:38] Set(“SIP/119-00001cec”, “CALLERID(name)=119”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“SIP/119-00001cec”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“SIP/119-00001cec”, “CDR(cnam)=119”) in new stack
– Executing [s@macro-user-callerid:41] Set(“SIP/119-00001cec”, “CDR(cnum)=119”) in new stack
– Executing [s@macro-user-callerid:42] Set(“SIP/119-00001cec”, “CHANNEL(language)=en”) in new stack
– Executing [7575937584@from-internal:2] Gosub(“SIP/119-00001cec”, “sub-record-check,s,1(out,7575937584,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/119-00001cec”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/119-00001cec”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/119-00001cec”, “NOW=1588992329”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/119-00001cec”, “__DAY=08”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/119-00001cec”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/119-00001cec”, “__YEAR=2020”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/119-00001cec”, “__TIMESTR=20200508-224529”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/119-00001cec”, “__FROMEXTEN=119”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/119-00001cec”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/119-00001cec”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/119-00001cec”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/119-00001cec”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/119-00001cec”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/119-00001cec”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/119-00001cec”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/119-00001cec”, “Outbound Recording Check from 119 to 7575937584”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/119-00001cec”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/119-00001cec”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/119-00001cec”, “recordcheck,1(dontcare,out,7575937584)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/119-00001cec”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/119-00001cec”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/119-00001cec”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/119-00001cec”, “”) in new stack
– Executing [7575937584@from-internal:3] ExecIf(“SIP/119-00001cec”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [7575937584@from-internal:4] Set(“SIP/119-00001cec”, “MOHCLASS=default”) in new stack
– Executing [7575937584@from-internal:5] Set(“SIP/119-00001cec”, “_NODEST=”) in new stack
– Executing [7575937584@from-internal:6] Macro(“SIP/119-00001cec”, “dialout-trunk,14,7575937584,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/119-00001cec”, “DIAL_TRUNK=14”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/119-00001cec”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“SIP/119-00001cec”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERID(num)=119)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“SIP/119-00001cec”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/119-00001cec”, “DIAL_NUMBER=7575937584”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/119-00001cec”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/119-00001cec”, “OUTBOUND_GROUP=OUT_14”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/119-00001cec”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“SIP/119-00001cec”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“SIP/119-00001cec”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/119-00001cec”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“SIP/119-00001cec”, “outbound-callerid,14”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“SIP/119-00001cec”, “119”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“SIP/119-00001cec”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/119-00001cec”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] ExecIf(“SIP/119-00001cec”, “0?Set(REALCALLERIDNUM=119)”) in new stack
– Executing [s@macro-outbound-callerid:7] ExecIf(“SIP/119-00001cec”, “0?Set(AMPUSER=119)”) in new stack
– Executing [s@macro-outbound-callerid:8] GotoIf(“SIP/119-00001cec”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] Set(“SIP/119-00001cec”, “USEROUTCID=119”) in new stack
– Executing [s@macro-outbound-callerid:13] Set(“SIP/119-00001cec”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:14] Set(“SIP/119-00001cec”, “TRUNKOUTCID=DrBurkeyandHundt<7575648182>”) in new stack
– Executing [s@macro-outbound-callerid:15] GotoIf(“SIP/119-00001cec”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] ExecIf(“SIP/119-00001cec”, “1?Set(CALLERID(all)=DrBurkeyandHundt<7575648182>)”) in new stack
– Executing [s@macro-outbound-callerid:21] ExecIf(“SIP/119-00001cec”, “1?Set(CALLERID(all)=119)”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:24] ExecIf(“SIP/119-00001cec”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:25] Set(“SIP/119-00001cec”, “CDR(outbound_cnum)=119”) in new stack
– Executing [s@macro-outbound-callerid:26] Set(“SIP/119-00001cec”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“SIP/119-00001cec”, “1?sub-flp-14,s,1()”) in new stack
– Executing [s@sub-flp-14:1] ExecIf(“SIP/119-00001cec”, “0?Set(TARGET_FLP_14=17577575937584)”) in new stack
– Executing [s@sub-flp-14:2] GotoIf(“SIP/119-00001cec”, “0?match”) in new stack
– Executing [s@sub-flp-14:3] ExecIf(“SIP/119-00001cec”, “1?Set(TARGET_FLP_14=17575937584)”) in new stack
– Executing [s@sub-flp-14:4] GotoIf(“SIP/119-00001cec”, “1?match”) in new stack
– Goto (sub-flp-14,s,8)
– Executing [s@sub-flp-14:8] Set(“SIP/119-00001cec”, “DIAL_NUMBER=17575937584”) in new stack
– Executing [s@sub-flp-14:9] Return(“SIP/119-00001cec”, “”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“SIP/119-00001cec”, “OUTNUM=17575937584”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“SIP/119-00001cec”, “custom=SIP/Anveo”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“SIP/119-00001cec”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“SIP/119-00001cec”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] Macro(“SIP/119-00001cec”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/119-00001cec”, “”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/119-00001cec”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:21] Set(“SIP/119-00001cec”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/119-00001cec”, “__CRM_DESTINATION=17575937584”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“SIP/119-00001cec”, “__CRM_SOURCE=119”) in new stack
– Executing [s@macro-dialout-trunk:24] AGI(“SIP/119-00001cec”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/119-00001cec>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:25] Set(“SIP/119-00001cec”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:26] NoOp(“SIP/119-00001cec”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:27] GotoIf(“SIP/119-00001cec”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“SIP/119-00001cec”, “1?Set(CONNECTEDLINE(num,i)=17575937584)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“SIP/119-00001cec”, “1?Set(CONNECTEDLINE(name,i)=CID:119)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“SIP/119-00001cec”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)119)”) in new stack
– Executing [s@macro-dialout-trunk:31] GotoIf(“SIP/119-00001cec”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:32] Dial(“SIP/119-00001cec”, “SIP/Anveo/17575937584@Anveo,300,Tb(func-apply-sipheaders^s^1)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/Anveo-00001ced Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“SIP/Anveo-00001ced”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“SIP/Anveo-00001ced”, “Applying SIP Headers to channel”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“SIP/Anveo-00001ced”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] ExecIf(“SIP/Anveo-00001ced”, “0?Set(Rheader=1)”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“SIP/Anveo-00001ced”, “0”) in new stack
– Jumping to priority 9
– Executing [s@func-apply-sipheaders:10] ExecIf(“SIP/Anveo-00001ced”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [s@func-apply-sipheaders:11] ExecIf(“SIP/Anveo-00001ced”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [s@func-apply-sipheaders:12] Return(“SIP/Anveo-00001ced”, “”) in new stack
== Spawn extension (from-trunk, 7575937584, 1) exited non-zero on ‘SIP/Anveo-00001ced’
– SIP/Anveo-00001ced Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called SIP/Anveo/17575937584@Anveo
– SIP/Anveo-00001ced is ringing
– Got SIP response 486 “Busy Here” back from 72.9.149.69:5010
– SIP/Anveo-00001ced is busy
== Everyone is busy/congested at this time (1:1/0/0)
– Executing [s@macro-dialout-trunk:33] NoOp(“SIP/119-00001cec”, “Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 17”) in new stack
– Executing [s@macro-dialout-trunk:34] GotoIf(“SIP/119-00001cec”, “0?continue,1:s-BUSY,1”) in new stack
– Goto (macro-dialout-trunk,s-BUSY,1)
– Executing [s-BUSY@macro-dialout-trunk:1] NoOp(“SIP/119-00001cec”, “Dial failed due to trunk reporting BUSY - giving up”) in new stack
– Executing [s-BUSY@macro-dialout-trunk:2] PlayTones(“SIP/119-00001cec”, “busy”) in new stack
– Executing [s-BUSY@macro-dialout-trunk:3] Busy(“SIP/119-00001cec”, “20”) in new stack
== Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on ‘SIP/119-00001cec’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 7575937584, 6) exited non-zero on ‘SIP/119-00001cec’
– Executing [h@from-internal:1] Macro(“SIP/119-00001cec”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/119-00001cec”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/119-00001cec”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“SIP/119-00001cec”, " monior file= ") in new stack
– Executing [s@macro-hangupcall:5] AGI(“SIP/119-00001cec”, “attendedtransfer-rec-restart.php,”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
– <SIP/119-00001cec>AGI Script attendedtransfer-rec-restart.php completed, returning 0
– Executing [s@macro-hangupcall:6] Hangup(“SIP/119-00001cec”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on ‘SIP/119-00001cec’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/119-00001cec’
– SIP/119-00001cec Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“SIP/119-00001cec”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“SIP/119-00001cec”, “HANGUP CAUSE: 17”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“SIP/119-00001cec”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“SIP/119-00001cec”, “MASTER CHANNEL: 1588992329.148406 = 1588992329.148406”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“SIP/119-00001cec”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“SIP/119-00001cec”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“SIP/119-00001cec”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/119-00001cec>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“SIP/119-00001cec”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/119-00001cec’
– SIP/119-00001cec Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
freepbx
CLI>

Well, this was previously answered in another post!
I issued fwconsole restart at command line and appended strings disappeared and call completed.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.