Вызов через транк
Пробовал варианты
exten => _00[7-8]XXXXXXXXXX,1,Dial(PJSIP/${CALLERID(num)}-out/+7${EXTEN:3},60,T)
exten => _01[7-8]XXXXXXXXXX,1,Dial(PJSIP/+7${EXTEN:3}@${CALLERID(num)}-out)
Ошибка
-- Executing [008955555555@from-admin:1] Dial("PJSIP/0001-0000001a", "PJSIP/0001-out/8955555555,60,T") in new stack
[2021-05-12 19:17:40] ERROR[23153]: res_pjsip.c:3562 ast_sip_create_dialog_uac: Endpoint '0001-out': Could not create dialog to invalid URI '8955555555'. Is endpoint registered and reachable?
[2021-05-12 19:17:40] ERROR[23153]: chan_pjsip.c:2687 request: Failed to create outgoing session to endpoint '0001-out'
[2021-05-12 19:17:40] WARNING[20644][C-00000016]: app_dial.c:2576 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
-- No devices or endpoints to dial (technology/resource)
-- Auto fallthrough, channel 'PJSIP/0001-0000001a' status is 'CHANUNAVAIL'
Регистрация есть
freepbx*CLI> pjsip show registrations
<Registration/ServerURI..............................> <Auth..........> <Status.......>
==========================================================================================
0001-out/sip:provider.net 0001-out Registered
Конфиг
[0001-out]
type=registration
transport=0.0.0.0-udp
outbound_auth=0001-out
retry_interval=60
fatal_retry_interval=30
forbidden_retry_interval=30
max_retries=10000
expiration=3600
auth_rejection_permanent=no
line=yes
endpoint=0001-out
contact_user=0001
server_uri=sip:provider.net
client_uri=sip:[email protected]
входящие работают, конфиг
[0001-out]
type=endpoint
transport=0.0.0.0-udp
context=from-out
disallow=all
allow=alaw,ulaw,gsm,g726,g722,h264,h265
aors=0001-bitrix
send_connected_line=false
language=ru
outbound_auth=0001-out
contact_user=0001
user_eq_phone=no
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
trust_id_inbound=no
t38_udptl_nat=no
direct_media=no
rtp_symmetric=yes
dtmf_mode=auto