got a SIP Trunk to which the context for incoming calls is “from-siptrunk”.
Testing a call to +351300999999, the call gets to Asterisk correctly, but then I get this reply:
[Oct 1 22:01:40] == Using SIP RTP CoS mark 5
[Oct 1 22:01:40] NOTICE[C-00000117]: chan_sip.c:26457 handle_request_invite: Call from ‘siptrunk’ (10.XXX.XXX.XXX:5060) to extension ‘+351300999999’ rejected because extension not found in context ‘from-siptrunk’.
The dialplan does have the extension specified as I have a pattern. To check and debug the pattern and dialplan, I used the following CLI command:
asterisk*CLI> dialplan show +351300999999@from-siptrunk
[ Context ‘from-siptrunk’ created by ‘pbx_config’ ]
‘_+351300999999’ => 1. Answer() [pbx_config]
2. Echo() [pbx_config]
To the best of my knowledge, this means that the context has the extension specified and calls matching that extension pattern should be handled with these 2 lines, but still incoming calls to not get a match and the call fails!
Does anybody understand why? How can I solve this?
Using Asterisk 13.23.1 .
thanks in advance!