Redirect calls from IVR to a CUCM number

Hello, colleagues. I need you help. Working with FreePBX for second time, and need you help.
I have FreePBX with with SIP Trunk (PJSIP channel) with CUCM. On FreePBX I create IVR. In main i need to redirect 9111 number from FreePBX to CUCM. I create ivr’s entity “_9111” to custom destination. On FreePBX i create Custom destination “cucm-dest-custom” with target “cucm-context, ${EXTEN},1”.
There is in extension_custom.config:
exten => _XXXX,n,Goto(cucm-route,${EXTEN},1)

“cucm-route” is name of outbund rule for SIP trunk.

In which rule i have error? When i try call 9111 from FreePBX to CUCM. It’s work.
But when i try redirect call from IVR to 9111 to CUCM, it’s end call. In log files i have only one error:

Error in logs
‘SIP/5556-0000008f’ sent to invalid extension but no invalid handler: context,exten,priority=cucm-context, 9111,1

All contexts need a priority 1, i.e:

exten => _XXXX,1,Goto(cucm-route,${EXTEN},1)

Thanks a lot.
I edited it, but still have same problem
extension_custom.conf is now:
exten => _9XXX,1,Goto(cucm-route,${EXTEN},1)

Custom destination is:
cucm-context, ${EXTEN},1

Outbound route is:
Route Name: cucm-route
Route CID: 55555
Route Type: Intra-Company
Trunk Sequence for Matched Route : cucm-trunk-1 & cucm-trunk-2

One of Trunk pjsip Settings :
Asterisk Trunk Dial Options:
Authentification Disabled
Language Code: Disabled
SIP Server: ip of server Cucm-1
SIP Server Port : 5060
Context: from-internal
Transport: udp

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