Call Forward using incorrect trunk

I recently upgraded to FreePbx 10. Since the upgrade, when forwarding a call from a sip phone, the call is sent out via an incorrect trunk. I can manually dial the same number from the same sip device and it routes out the correct trunk. It just doesn’t dial correctly when using the cf context. I am not sure where to look to change how forwarded calls route outbound. Any help would be appreciated.
Below is an output of a failed call:

– SIP/STCorpVICI-000025f8 answered SIP/PRIGWi-000025f7
– Executing [s@macro-setmusic:1] Set(“SIP/STCorpVICI-000025f8”, “CHANNEL(musicclass)=moh-files-Chris”) in new stack
– Executing [s@macro-outisbusy:5] Congestion(“Local/1912656XXXX@from-internal-00000693;2”, “20”) in new stack
– Local/1912656XXXX@from-internal-00000693;1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘Local/1912656XXXX@from-internal-00000693;2’ in macro ‘outisbusy’
== Spawn extension (from-internal, 1912656XXXX, 6) exited non-zero on ‘Local/1912656XXXX@from-internal-00000693;2’
– Executing [h@from-internal:1] Hangup(“Local/1912656XXXX@from-internal-00000693;2”, “”) in new stack
– Executing [s@macro-dial-one:43] ExecIf(“SIP/PRIGWi-000025f4”, “0?Set(DIALSTATUS=)”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/1912656XXXX@from-internal-00000693;2’
– Executing [s@macro-dial-one:44] GosubIf(“SIP/PRIGWi-000025f4”, “0?s-CONGESTION,1()”) in new stack
– Executing [s@macro-dial-one:45] MacroExit(“SIP/PRIGWi-000025f4”, “”) in new stack
– Executing [s@macro-exten-vm:8] Set(“SIP/PRIGWi-000025f4”, “SV_DIALSTATUS=CONGESTION”) in new stack
– Executing [s@macro-exten-vm:9] GosubIf(“SIP/PRIGWi-000025f4”, “0?docfu,1()”) in new stack
– Executing [s@macro-exten-vm:10] GosubIf(“SIP/PRIGWi-000025f4”, “0?docfb,1()”) in new stack
– Executing [s@macro-exten-vm:11] Set(“SIP/PRIGWi-000025f4”, “DIALSTATUS=CONGESTION”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“SIP/PRIGWi-000025f4”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:13] GotoIf(“SIP/PRIGWi-000025f4”, “0?s-CONGESTION,1”) in new stack
– Executing [s@macro-exten-vm:14] Macro(“SIP/PRIGWi-000025f4”, “vm,1294,CONGESTION,”) in new stack

  1. Edited the numbers in your post for privacy.
  2. The trunk dialed is chosen by your outbound route. It goes out the first match.

Thank you jfinstrom, I appreciate that. The issue I am having is that the outbound route doesn’t even have the trunk shown above listed as an option at all. Unless I am missing something else. Initially the call attempts to go out the trunk chosen in the outbound route but then passes it off to the trunk above, where we see it fail. This ONLY happens on calls that are being forwarded, manually dialed calls work just fine.

See where it passes the call to SIP/PRIGWi

-- Executing [s@macro-dialout-trunk:22] Dial("Local/191XXXXXXXX@from-internal-00000693;2", "SIP/PRIGWo/191XXXXXXXX,300,M(setmusic^moh-files-Chris)") in new stack

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/PRIGWo/191XXXXXXXX
– SIP/PRIGWo-000025f6 is making progress passing it to Local/191XXXXXXXX@from-internal-00000693;2
– Local/191XXXXXXXX@from-internal-00000693;1 is making progress passing it to SIP/PRIGWi-000025f4