Extensioni does not exists BUT it's there!

Hi all,

on Asterisk 20 with PJSIP i’ve this lines in extensions.conf:

[default]
include => from-voip

[from-voip]
(..)
exten => _NEWIVR_XXXX,1,Set(DID=${EXTEN:7})
exten => _NEWIVR_XXXX,n,Goto(ivr-services,s,1)

but when i call NEWIVR_5599 (just for example) i got:

NOTICE[63179]: res_pjsip_session.c:4022 new_invite:  voip: Call (UDP:172.20.255.2:5060) to extension 'NEWIVR_5599' rejected because extension not found in context 'from-voip'.
NOTICE[63179]: res_pjsip_exten_state.c:429 new_subscribe: Endpoint 'voip' state subscription failed: Extension 'NEWIVR_5599' does not exist in context 'from-voip' or has no associated hint

Any hint?

It’s a pattern matched extension[1], meaning “N” is matching numbers. To allow matching it as the letter “N” you would do:

exten => _[N]EWIVR_XXXX,1,Set(DID=${EXTEN:7})
exten => _[N]EWIVR_XXXX,n,Goto(ivr-services,s,1)

[1] Pattern Matching - Asterisk Documentation

1 Like

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