Issue with call routing

Greetings community.

i have a PBX setup with a SIP trunk to the provider which is working properly

the provider has a requirement that the number starts with 888127 prefix (prepend) and the international code being 966

i’ve added a new route for the same trunk with a 888130 prefix (prepend) and the same international code.

the call is incoming from another internal Avaya PBX call manager.

issue is all calls are being routed through the 888127 route. FreePBX 17.0.19.17

nothing i’ve tried has yielded any results

i tried adding inbound routes and i also tried to increase the priority of the 888130 route but still the same.

i am new to freePBX administration so how can i achieve this?

Could you pls post here screenshot of your Outbound configuration to understand more clearly and easy.

sorry it is a lot but i wanted you to see the whole picture

i need to get route KLM 966 working
but it keeps routing via the other route here’s a snippet also from the CDR report

i am pretty sure the issue is from PBX not Avaya as other calls to 966 are being routed correctly

i am still new to such forms but i will provide the screenshots

Thanks for screenshots, Have you tried this way ?

Still the same

remove 1st line… for now. and test it again.

same :frowning:

Sorry man, read this wiki maybe im wrong. https://sangomakb.atlassian.net/wiki/spaces/PG/pages/26181933/Outbound+Routes+Module+User+Guide#Dial-Patterns-Tab

so when you dialling adding Country code or not ? And when you make a call at Asterisk Log side which CID you are seeing ?
(888130) 996 | 1156X.

i am pretty sure the answer is simple.

this is the SIP invite

This is the number you are calling:

image

What should it be?

This is the caller ID you are presenting:

image

Also you didn’t include the response from the provider.

hi David

it should be 888130966115060702

will provide the response in a minute

Provider response

nothing further this.

i can attach the log file if you need me to

invite

what is this 888127? You are not sent Invite from 888130?
Screenshot 2024-11-25 at 12.42.28

That’s the problem i am facing
i configured the outbound route to drop the call on 888130 while i still need 888127 to be a wild card number but it is still routing the call towards 888127

i saw this in the logs

[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx_builtins.c: Goto (ext-trunk,tdial,4)
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:4] ExecIf(“PJSIP/Arabia_Avaya_pbx-000007af”, “1?Set(CALLERID(name-pres)=allowed_not_screened)”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:5] ExecIf(“PJSIP/Arabia_Avaya_pbx-000007af”, “1?Set(CALLERID(num-pres)=allowed_not_screened)”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:6] Set(“PJSIP/Arabia_Avaya_pbx-000007af”, “DIAL_NUMBER=888127966115060702”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:7] GosubIf(“PJSIP/Arabia_Avaya_pbx-000007af”, “1?sub-flp-11,s,1()”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [s@sub-flp-11:1] ExecIf(“PJSIP/Arabia_Avaya_pbx-000007af”, “0?Set(TARGET_FLP_11=888130966115060702)”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [s@sub-flp-11:2] GotoIf(“PJSIP/Arabia_Avaya_pbx-000007af”, “0?match”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [s@sub-flp-11:3] Return(“PJSIP/Arabia_Avaya_pbx-000007af”, “”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:8] Set(“PJSIP/Arabia_Avaya_pbx-000007af”, “OUTNUM=888127966115060702”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:9] Set(“PJSIP/Arabia_Avaya_pbx-000007af”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] pbx.c: Executing [tdial@ext-trunk:10] Dial(“PJSIP/Arabia_Avaya_pbx-000007af”, “PJSIP/888127966115060702@Innocalls_copy_2,300,T”) in new stack
[2024-11-25 11:58:16] VERBOSE[3125133][C-000003f6] app_dial.c: Called PJSIP/888127966115060702@Innocalls_copy_2
[2024-11-25 11:58:16] ERROR[24303] netsock2.c: getaddrinfo(“VoIP”, “(null)”, …): Name or service not known

seems the server recognizes the number but it is not routing to it based on priority.

That means your Outbound calls taking from Arabia KSA that rule you have to check