Odd issue with specific outbound call

Hi guys! I am not sure how to troubleshoot this issue so sorry if I need pointed in the right direction to give you information.

I have a freepbx/asterisk server that has worked without many issues for a year now. I haven’t made any recent changes to any configurations.

I was notified that when calling a specific toll free number (for an insurance company) it immediatley goes to an automated message saying that the mailbox for XXX-XXX-XXXX (the number for our company that is used to dial out) has not been setup. This problem happens no matter what outbound route I dial out from, and only on this insurance companies number.

When I call the number with my cell phone it is connected correctly.

After searching google for a bit I have not found an answer (or perhaps not the proper way to phrase the question).

Change your outbound Caller-ID and try the call again - you usually see this message when the following is in force:

  1. An inbound route exists on the remote system looking at your Caller ID as the matching criteria and
  2. A phone on the remote system is forwarded (or Follow-Me’d) to a Cel Phone.

asterisk -vvvr from the cli and call the number and you can reassure yourself that it is not your system. Change the Caller ID and I bet the problem goes away.

Changing the outbound CID at both the outbound route and trunk level has not resolved the issue. Here is the output from the CLI

Edit: Removing CLI output until I can format it correctly.

I was starting to read that when magically it went away!:grinning:

But, make sure you are actually changing the Caller-ID - LOTS of carriers override what you set on the system - change it and call a Cel to verify you have actually changed it, and then post the CLI of the call.

== Extension Changed 401[ext-local] new state InUse&Ringing for Notify User 303
-- Executing [[email protected]:1] Macro("SIP/401-000028f1", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [[email protected]:1] Set("SIP/401-000028f1", "TOUCH_MONITOR=1475163689.12171") in new stack
-- Executing [[email protected]:2] Set("SIP/401-000028f1", "AMPUSER=401") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/401-000028f1", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/401-000028f1", "1?Set(REALCALLERIDNUM=401)") in new stack
-- Executing [[email protected]:5] Set("SIP/401-000028f1", "AMPUSER=401") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/401-000028f1", "0?limit") in new stack
-- Executing [[email protected]:7] Set("SIP/401-000028f1", "AMPUSERCIDNAME=Aaron") in new stack
-- Executing [[email protected]:8] GotoIf("SIP/401-000028f1", "0?report") in new stack
-- Executing [[email protected]:9] Set("SIP/401-000028f1", "AMPUSERCID=401") in new stack
-- Executing [[email protected]:10] Set("SIP/401-000028f1", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [[email protected]:11] Set("SIP/401-000028f1", "CALLERID(all)="Aaron" <401>") in new stack
-- Executing [[email protected]:12] GotoIf("SIP/401-000028f1", "0?limit") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/401-000028f1", "1?Set(GROUP(concurrency_limit)=401)") in new stack
-- Executing [[email protected]:14] ExecIf("SIP/401-000028f1", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:15] GotoIf("SIP/401-000028f1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [[email protected]:29] Set("SIP/401-000028f1", "CALLERID(number)=401") in new stack
-- Executing [[email protected]:30] Set("SIP/401-000028f1", "CALLERID(name)=Aaron") in new stack
-- Executing [[email protected]:31] GotoIf("SIP/401-000028f1", "0?cnum") in new stack
-- Executing [[email protected]:32] Set("SIP/401-000028f1", "CDR(cnam)=Aaron") in new stack
-- Executing [[email protected]:33] Set("SIP/401-000028f1", "CDR(cnum)=401") in new stack
-- Executing [[email protected]:34] Set("SIP/401-000028f1", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Gosub("SIP/401-000028f1", "sub-record-check,s,1(out,51xxxxxxxxxx,dontcare)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/401-000028f1", "0?initialized") in new stack
-- Executing [[email protected]:2] Set("SIP/401-000028f1", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:3] Set("SIP/401-000028f1", "NOW=1475163689") in new stack
-- Executing [[email protected]:4] Set("SIP/401-000028f1", "__DAY=29") in new stack
-- Executing [[email protected]:5] Set("SIP/401-000028f1", "__MONTH=09") in new stack
-- Executing [[email protected]:6] Set("SIP/401-000028f1", "__YEAR=2016") in new stack
-- Executing [[email protected]:7] Set("SIP/401-000028f1", "__TIMESTR=20160929-094129") in new stack
-- Executing [[email protected]:8] Set("SIP/401-000028f1", "__FROMEXTEN=401") in new stack
-- Executing [[email protected]:9] Set("SIP/401-000028f1", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:10] NoOp("SIP/401-000028f1", "Recordings initialized") in new stack
-- Executing [[email protected]:11] ExecIf("SIP/401-000028f1", "0?Set(ARG3=dontcare)") in new stack
-- Executing [[email protected]:12] Set("SIP/401-000028f1", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/401-000028f1", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [[email protected]:14] GotoIf("SIP/401-000028f1", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [[email protected]:17] GotoIf("SIP/401-000028f1", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [[email protected]:1] NoOp("SIP/401-000028f1", "Outbound Recording Check from 401 to 51xxxxxxxxxx") in new stack
-- Executing [[email protected]:2] Set("SIP/401-000028f1", "RECMODE=dontcare") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/401-000028f1", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [[email protected]:7] Gosub("SIP/401-000028f1", "recordcheck,1(dontcare,out,51xxxxxxxxxx)") in new stack
-- Executing [[email protected]:1] NoOp("SIP/401-000028f1", "Starting recording check against dontcare") in new stack
-- Executing [[email protected]:2] Goto("SIP/401-000028f1", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [[email protected]:3] Return("SIP/401-000028f1", "") in new stack
-- Executing [[email protected]:8] Return("SIP/401-000028f1", "") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/401-000028f1", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [[email protected]:4] Set("SIP/401-000028f1", "MOHCLASS=default") in new stack
-- Executing [[email protected]:5] ExecIf("SIP/401-000028f1", "1?Set(TRUNKCIDOVERRIDE="Hearing Centers" <xxxxxxxxxx>)") in new stack
-- Executing [[email protected]:6] Set("SIP/401-000028f1", "_NODEST=") in new stack
-- Executing [[email protected]:7] Macro("SIP/401-000028f1", "dialout-trunk,3,1xxxxxxxxxx,,off") in new stack
-- Executing [[email protected]:1] Set("SIP/401-000028f1", "DIAL_TRUNK=3") in new stack
-- Executing [[email protected]:2] GosubIf("SIP/401-000028f1", "0?sub-pincheck,s,1()") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/401-000028f1", "0?disabletrunk,1") in new stack
-- Executing [[email protected]:4] Set("SIP/401-000028f1", "DIAL_NUMBER=1xxxxxxxxxx") in new stack
-- Executing [[email protected]:5] Set("SIP/401-000028f1", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [[email protected]:6] Set("SIP/401-000028f1", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/401-000028f1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [[email protected]:9] GotoIf("SIP/401-000028f1", "0?skipoutcid") in new stack
-- Executing [[email protected]:10] Set("SIP/401-000028f1", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [[email protected]:11] Macro("SIP/401-000028f1", "outbound-callerid,3") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/401-000028f1", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [[email protected]:2] ExecIf("SIP/401-000028f1", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/401-000028f1", "0?Set(REALCALLERIDNUM=401)") in new stack
-- Executing [[email protected]:4] GotoIf("SIP/401-000028f1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,7)
-- Executing [[email protected]:7] Set("SIP/401-000028f1", "USEROUTCID=") in new stack
-- Executing [[email protected]:8] Set("SIP/401-000028f1", "EMERGENCYCID=") in new stack
-- Executing [[email protected]:9] Set("SIP/401-000028f1", "TRUNKOUTCID="Choice Hearing" <7192581640>") in new stack
-- Executing [[email protected]:10] GotoIf("SIP/401-000028f1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,15)
-- Executing [[email protected]:15] ExecIf("SIP/401-000028f1", "1?Set(CALLERID(all)="Choice Hearing" <7192581640>)") in new stack
-- Executing [[email protected]:16] ExecIf("SIP/401-000028f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:17] ExecIf("SIP/401-000028f1", "1?Set(CALLERID(all)=Hearing Centers <7193551440>)") in new stack
-- Executing [[email protected]:18] ExecIf("SIP/401-000028f1", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:19] ExecIf("SIP/401-000028f1", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [[email protected]:20] Set("SIP/401-000028f1", "CDR(outbound_cnum)=7193551440") in new stack
-- Executing [[email protected]:21] Set("SIP/401-000028f1", "CDR(outbound_cnam)=Hearing Centers") in new stack
-- Executing [[email protected]:12] GosubIf("SIP/401-000028f1", "0?sub-flp-3,s,1()") in new stack
-- Executing [[email protected]:13] Set("SIP/401-000028f1", "OUTNUM=1xxxxxxxxxx") in new stack
-- Executing [[email protected]:14] Set("SIP/401-000028f1", "custom=SIP/ChoiceProviders") in new stack
-- Executing [[email protected]:15] ExecIf("SIP/401-000028f1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [[email protected]:16] ExecIf("SIP/401-000028f1", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [[email protected]:17] Macro("SIP/401-000028f1", "dialout-trunk-predial-hook,") in new stack
-- Executing [[email protected]:1] NoOp("SIP/401-000028f1", "Starting Special Diversion Header") in new stack
-- Executing [[email protected]:2] SIPAddHeader("SIP/401-000028f1", "Diversion:<sip:[email protected]>;reason=unconditional") in new stack
-- Executing [[email protected]:18] GotoIf("SIP/401-000028f1", "0?bypass,1") in new stack
-- Executing [[email protected]:19] ExecIf("SIP/401-000028f1", "1?Set(CONNECTEDLINE(num,i)=1xxxxxxxxxx)") in new stack
-- Executing [[email protected]:20] ExecIf("SIP/401-000028f1", "1?Set(CONNECTEDLINE(name,i)=CID:7193551440)") in new stack
-- Executing [[email protected]:21] ExecIf("SIP/401-000028f1", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7193551440)") in new stack
-- Executing [[email protected]:22] GotoIf("SIP/401-000028f1", "0?customtrunk") in new stack
-- Executing [[email protected]:23] Dial("SIP/401-000028f1", "SIP/ChoiceProviders/1xxxxxxxxxx,300,Tt") in new stack

== Using SIP RTP CoS mark 5
-- Called SIP/ChoiceProviders/1xxxxxxxxxx
-- SIP/ChoiceProviders-000028f2 is ringing
-- SIP/ChoiceProviders-000028f2 is making progress passing it to SIP/401-000028f1
-- SIP/403-000028f0 connected line has changed. Saving it until answer for SIP/cbeyond-in-000028e6
  == Extension Changed 403[ext-local] new state InUse for Notify User 404
  == Extension Changed 403[ext-local] new state InUse for Notify User 301
  == Extension Changed 403[ext-local] new state InUse for Notify User 306
    -- SIP/403-000028f0 answered SIP/cbeyond-in-000028e6
  == Extension Changed 403[ext-local] new state InUse for Notify User 304
  == Extension Changed 403[ext-local] new state InUse for Notify User 401
  == Extension Changed 403[ext-local] new state InUse for Notify User 303
  == Extension Changed 303[ext-local] new state Idle for Notify User 403
  == Extension Changed 303[ext-local] new state Idle for Notify User 301
  == Extension Changed 303[ext-local] new state Idle for Notify User 305
  == Extension Changed 303[ext-local] new state Idle for Notify User 304
  == Extension Changed 303[ext-local] new state Idle for Notify User 401
    -- Executing [[email protected]:1] ExecIf("SIP/403-000028f0", "0?Set(CDR(recordingfile)=.wav)") in new stack
    -- Executing [[email protected]:2] Set("SIP/403-000028f0", "__MACRO_RESULT=") in new stack
    -- Executing [[email protected]:3] Set("SIP/403-000028f0", "CFIGNORE=") in new stack
  == Extension Changed 401[ext-local] new state InUse for Notify User 404
  == Extension Changed 401[ext-local] new state InUse for Notify User 402
    -- Executing [[email protected]:4] Set("SIP/403-000028f0", "MASTER_CHANNEL(CFIGNORE)=") in new stack
    -- Executing [[email protected]o-auto-blkvm:5] Set("SIP/403-000028f0", "FORWARD_CONTEXT=from-internal") in new stack
  == Extension Changed 401[ext-local] new state InUse for Notify User 304
    -- Executing [[email protected]:6] Set("SIP/403-000028f0", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
  == Extension Changed 401[ext-local] new state InUse for Notify User 303
    -- Executing [[email protected]:7] Macro("SIP/403-000028f0", "blkvm-clr,") in new stack
  == Extension Changed 305[ext-local] new state Idle for Notify User 404
  == Extension Changed 305[ext-local] new state Idle for Notify User 306
    -- Executing [[email protected]:1] Set("SIP/403-000028f0", "SHARED(BLKVM,SIP/cbeyond-in-000028e6)=") in new stack
    -- Executing [[email protected]:2] Set("SIP/403-000028f0", "GOSUB_RETVAL=") in new stack
    -- Executing [[email protected]:3] MacroExit("SIP/403-000028f0", "") in new stack
    -- Executing [[email protected]:8] ExecIf("SIP/403-000028f0", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=403)") in new stack
    -- Executing [[email protected]:9] ExecIf("SIP/403-000028f0", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Pam)") in new stack
    -- Channel SIP/403-000028f0 joined 'simple_bridge' basic-bridge <f21096db-d900-497d-873a-62828598ea69>
    -- Channel SIP/cbeyond-in-000028e6 joined 'simple_bridge' basic-bridge <f21096db-d900-497d-873a-62828598ea69>
    -- SIP/ChoiceProviders-000028f2 answered SIP/401-000028f1
    -- Channel SIP/ChoiceProviders-000028f2 joined 'simple_bridge' basic-bridge <fd2b29bf-2b0c-4963-bcc2-3c45cca58626>
    -- Channel SIP/401-000028f1 joined 'simple_bridge' basic-bridge <fd2b29bf-2b0c-4963-bcc2-3c45cca58626>

[quote=“choiceit, post:5, topic:37343”]
== Using SIP RTP CoS mark 5
– Called SIP/ChoiceProviders/1xxxxxxxxxx
– SIP/ChoiceProviders-000028f2 is ringing

Ok - You are not doing any weird fork of the call after it initiates outbound above - I really think the problem is on the far end - were you able to confirm you could change your CallerID?

I confirmed that the CID was changed by calling my cell phone. Here is the output again.

== Extension Changed 401[ext-local] new state InUse for Notify User 303
    -- Executing [[email protected]:1] Set("SIP/401-00002922", "TOUCH_MONITOR=1475164653.12242") in new stack
    -- Executing [[email protected]:2] Set("SIP/401-00002922", "AMPUSER=401") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/401-00002922", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/401-00002922", "1?Set(REALCALLERIDNUM=401)") in new stack
    -- Executing [[email protected]:5] Set("SIP/401-00002922", "AMPUSER=401") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/401-00002922", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/401-00002922", "AMPUSERCIDNAME=Aaron") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/401-00002922", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/401-00002922", "AMPUSERCID=401") in new stack
    -- Executing [[email protected]:10] Set("SIP/401-00002922", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("SIP/401-00002922", "CALLERID(all)="Aaron" <401>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/401-00002922", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/401-00002922", "1?Set(GROUP(concurrency_limit)=401)") in new stack
    -- Executing [[email protected]:14] ExecIf("SIP/401-00002922", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:15] GotoIf("SIP/401-00002922", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [[email protected]:29] Set("SIP/401-00002922", "CALLERID(number)=401") in new stack
    -- Executing [[email protected]-callerid:30] Set("SIP/401-00002922", "CALLERID(name)=Aaron") in new stack
    -- Executing [[email protected]:31] GotoIf("SIP/401-00002922", "0?cnum") in new stack
    -- Executing [[email protected]:32] Set("SIP/401-00002922", "CDR(cnam)=Aaron") in new stack
    -- Executing [[email protected]:33] Set("SIP/401-00002922", "CDR(cnum)=401") in new stack
    -- Executing [[email protected]:34] Set("SIP/401-00002922", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Gosub("SIP/401-00002922", "sub-record-check,s,1(out,518884352396,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/401-00002922", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("SIP/401-00002922", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("SIP/401-00002922", "NOW=1475164653") in new stack
    -- Executing [[email protected]:4] Set("SIP/401-00002922", "__DAY=29") in new stack
    -- Executing [[email protected]:5] Set("SIP/401-00002922", "__MONTH=09") in new stack
    -- Executing [[email protected]:6] Set("SIP/401-00002922", "__YEAR=2016") in new stack
    -- Executing [[email protected]:7] Set("SIP/401-00002922", "__TIMESTR=20160929-095733") in new stack
    -- Executing [[email protected]:8] Set("SIP/401-00002922", "__FROMEXTEN=401") in new stack
    -- Executing [[email protected]:9] Set("SIP/401-00002922", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/401-00002922", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/401-00002922", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/401-00002922", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/401-00002922", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/401-00002922", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/401-00002922", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [[email protected]:1] NoOp("SIP/401-00002922", "Outbound Recording Check from 401 to 518884352396") in new stack
    -- Executing [[email protected]:2] Set("SIP/401-00002922", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/401-00002922", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [[email protected]:7] Gosub("SIP/401-00002922", "recordcheck,1(dontcare,out,518884352396)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/401-00002922", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/401-00002922", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/401-00002922", "") in new stack
    -- Executing [[email protected]:8] Return("SIP/401-00002922", "") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/401-00002922", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [[email protected]:4] Set("SIP/401-00002922", "MOHCLASS=default") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/401-00002922", "1?Set(TRUNKCIDOVERRIDE="Hearing Centers" <7193551443>)") in new stack
    -- Executing [[email protected]:6] Set("SIP/401-00002922", "_NODEST=") in new stack
    -- Executing [[email protected]:7] Macro("SIP/401-00002922", "dialout-trunk,3,18884352396,,off") in new stack
    -- Executing [[email protected]:1] Set("SIP/401-00002922", "DIAL_TRUNK=3") in new stack
    -- Executing [[email protected]:2] GosubIf("SIP/401-00002922", "0?sub-pincheck,s,1()") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/401-00002922", "0?disabletrunk,1") in new stack
    -- Executing [[email protected]:4] Set("SIP/401-00002922", "DIAL_NUMBER=18884352396") in new stack
    -- Executing [[email protected]:5] Set("SIP/401-00002922", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:6] Set("SIP/401-00002922", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/401-00002922", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [[email protected]:9] GotoIf("SIP/401-00002922", "0?skipoutcid") in new stack
    -- Executing [[email protected]:10] Set("SIP/401-00002922", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [[email protected]:11] Macro("SIP/401-00002922", "outbound-callerid,3") in new stack
    -- Executing [[email protected]:1] ExecIf("SIP/401-00002922", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [[email protected]:2] ExecIf("SIP/401-00002922", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/401-00002922", "0?Set(REALCALLERIDNUM=401)") in new stack
    -- Executing [[email protected]:4] GotoIf("SIP/401-00002922", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [[email protected]:7] Set("SIP/401-00002922", "USEROUTCID=") in new stack
    -- Executing [[email protected]:8] Set("SIP/401-00002922", "EMERGENCYCID=") in new stack
    -- Executing [[email protected]:9] Set("SIP/401-00002922", "TRUNKOUTCID="Choice Hearing" <7192581640>") in new stack
    -- Executing [[email protected]:10] GotoIf("SIP/401-00002922", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [[email protected]:15] ExecIf("SIP/401-00002922", "1?Set(CALLERID(all)="Choice Hearing" <7192581640>)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/401-00002922", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:17] ExecIf("SIP/401-00002922", "1?Set(CALLERID(all)=Hearing Centers <7193551443>)") in new stack
    -- Executing [[email protected]:18] ExecIf("SIP/401-00002922", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:19] ExecIf("SIP/401-00002922", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:20] Set("SIP/401-00002922", "CDR(outbound_cnum)=7193551443") in new stack
    -- Executing [[email protected]:21] Set("SIP/401-00002922", "CDR(outbound_cnam)=Hearing Centers") in new stack
    -- Executing [[email protected]:12] GosubIf("SIP/401-00002922", "0?sub-flp-3,s,1()") in new stack
    -- Executing [[email protected]:13] Set("SIP/401-00002922", "OUTNUM=18884352396") in new stack
    -- Executing [[email protected]:14] Set("SIP/401-00002922", "custom=SIP/ChoiceProviders") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/401-00002922", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/401-00002922", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [[email protected]:17] Macro("SIP/401-00002922", "dialout-trunk-predial-hook,") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/401-00002922", "Starting Special Diversion Header") in new stack
    -- Executing [[email protected]:2] SIPAddHeader("SIP/401-00002922", "Diversion:<sip:[email protected]>;reason=unconditional") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/401-00002922", "0?bypass,1") in new stack
    -- Executing [[email protected]:19] ExecIf("SIP/401-00002922", "1?Set(CONNECTEDLINE(num,i)=18884352396)") in new stack
    -- Executing [[email protected]:20] ExecIf("SIP/401-00002922", "1?Set(CONNECTEDLINE(name,i)=CID:7193551443)") in new stack
    -- Executing [[email protected]:21] ExecIf("SIP/401-00002922", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7193551443)") in new stack
    -- Executing [[email protected]:22] GotoIf("SIP/401-00002922", "0?customtrunk") in new stack
    -- Executing [[email protected]:23] Dial("SIP/401-00002922", "SIP/ChoiceProviders/18884352396,300,Tt") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/ChoiceProviders/18884352396
    -- Channel SIP/cbeyond-in-0000291e left 'simple_bridge' basic-bridge <473cc0ff-6c47-4018-b57c-b85039347238>
    -- Channel SIP/403-0000291f left 'simple_bridge' basic-bridge <473cc0ff-6c47-4018-b57c-b85039347238>
  == Extension Changed 403[ext-local] new state Idle for Notify User 404
  == Extension Changed 403[ext-local] new state Idle for Notify User 301
  == Extension Changed 403[ext-local] new state Idle for Notify User 306
  == Extension Changed 403[ext-local] new state Idle for Notify User 304
  == Extension Changed 403[ext-local] new state Idle for Notify User 401
  == Extension Changed 403[ext-local] new state Idle for Notify User 303
  == Spawn extension (macro-dial-one, s, 48) exited non-zero on 'SIP/cbeyond-in-0000291e' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/cbeyond-in-0000291e' in macro 'exten-vm'
  == Spawn extension (ext-local, 403, 2) exited non-zero on 'SIP/cbeyond-in-0000291e'
    -- Executing [[email protected]:1] Macro("SIP/cbeyond-in-0000291e", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/cbeyond-in-0000291e", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("SIP/cbeyond-in-0000291e", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("SIP/cbeyond-in-0000291e", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/cbeyond-in-0000291e' in macro 'hangupcall'
  == Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/cbeyond-in-0000291e'
    -- SIP/ChoiceProviders-00002923 is ringing
    -- SIP/ChoiceProviders-00002923 is making progress passing it to SIP/401-00002922
    -- SIP/ChoiceProviders-00002923 answered SIP/401-00002922
    -- Channel SIP/ChoiceProviders-00002923 joined 'simple_bridge' basic-bridge <26f2d93d-4c70-4ac4-8eaf-ca6fdb30c324>
    -- Channel SIP/401-00002922 joined 'simple_bridge' basic-bridge <26f2d93d-4c70-4ac4-8eaf-ca6fdb30c324>
    -- Channel SIP/ChoiceProviders-00002923 left 'simple_bridge' basic-bridge <26f2d93d-4c70-4ac4-8eaf-ca6fdb30c324>
    -- Channel SIP/401-00002922 left 'simple_bridge' basic-bridge <26f2d93d-4c70-4ac4-8eaf-ca6fdb30c324>
  == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'SIP/401-00002922' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 518884352396, 7) exited non-zero on 'SIP/401-00002922'
    -- Executing [[email protected]:1] Macro("SIP/401-00002922", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/401-00002922", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("SIP/401-00002922", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("SIP/401-00002922", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/401-00002922' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/401-00002922'
  == Extension Changed 401[ext-local] new state Idle for Notify User 404
  == Extension Changed 401[ext-local] new state Idle for Notify User 402
  == Extension Changed 401[ext-local] new state Idle for Notify User 304
  == Extension Changed 401[ext-local] new state Idle for Notify User 303
ahtel01*CLI>

I do not think (1) is true, although I could be wrong. (2) is true, we have a few virtual extensions that follow-me to an external number as well as an external landline number included in one of the ring groups.

Ok - I can’t see anything out of the normal - I do see the trunk overriding the Caller ID here:

– Executing [[email protected]:5] ExecIf(“SIP/401-000028f1”, “1?Set(TRUNKCIDOVERRIDE=“Hearing Centers” )”) in new stack

Do you control the remote system?

I have full root access to the asterisk server where the trunk is configured. The trunk sets the CID, but it was my understanding that the outbound route overrides it. I assume that must be the case because the number that comes up on the receiving end of the phone call is the number that is set at the outbound route level, not the trunk.

I don’t know if this makes a difference, but the recorded message saying the voicemail box hasn’t been setup gives the number as the CID set at the trunk level, not the outbound route level.

  == Using SIP RTP CoS mark 5
    -- Called SIP/ChoiceProviders/18884352396
    -- Channel SIP/cbeyond-in-0000291e left 'simple_bridge' basic-bridge <473cc0ff-6c47-4018-b57c-b85039347238>
    -- Channel SIP/403-0000291f left 'simple_bridge' basic-bridge <473cc0ff-6c47-4018-b57c-b85039347238>

When I dial out to my cell phone it shows:

  == Using SIP RTP CoS mark 5
    -- Called SIP/ChoiceProviders/xxxxxxx
    -- SIP/ChoiceProviders-0000296b is making progress passing it to SIP/401-0000296a
    -- SIP/ChoiceProviders-0000296b is ringing
    -- SIP/ChoiceProviders-0000296b is making progress passing it to SIP/401-0000296a

When I dial out to the toll free number in question it returns:

 == Using SIP RTP CoS mark 5
    -- Called SIP/ChoiceProviders/18884352396
    -- SIP/ChoiceProviders-00002971 is ringing
    -- SIP/ChoiceProviders-00002971 is making progress passing it to SIP/401-00002970
    -- SIP/ChoiceProviders-00002971 answered SIP/401-00002970
    -- Channel SIP/ChoiceProviders-00002971 joined 'simple_bridge' basic-bridge <bd68e0bc-39bc-4a22-982d-fb3cf24e98ac>
    -- Channel SIP/401-00002970 joined 'simple_bridge' basic-bridge <bd68e0bc-39bc-4a22-982d-fb3cf24e98ac>

I confirmed that all ‘CID’’ on inbound routes are set to ‘ANY’

Yes, I really think the routing decision is happening on the remote system, not on yours - Do you have access to the system you are calling?

Your system looks normal.

Unfortunately I do not have access to the remote system. However, in the past we have dialed this number successfully (we process a lot of claims with this insurance company).

Also, cell phones get through just fine. I am really at a loss.

Do this - PM me the number you are calling from and the number you are calling to and I will try it from a different site - I am willing to bet I get the same results you do which means it HAS to be on the remote system - maybe once that is done you can send the results to the remote site and they will fix the problem.