I have problem with inbound calls in my Freepbx. I Have 2 numberes in my provider. I have cinnected sip trunk with this provider and everythink (inbound and outbound calls) works fine with only one of those two numbers. It works fine only on pilot number. I configured inbound route on second number and it dont work. In logs i can see this error:
11625 [2024-11-25 14:34:59] NOTICE[995211] res_pjsip_session.c: Netia-test_copy_1: Call (UDP:87.204.129.4:5060) to extension ‘223517724’ rejected because extension not found in context ‘trunk-from-netia’.
I ask provider about this situation and he said that everythin is correct by their site and I have to check sip headers. I searched this in trunk settings and i dont find anything. Did someone know what should i change?
I dont know anythign about this. I did not add any configuration in custom context section. Context name “trunk-from-netia” is parameter that provider give to me. Could You tell me more about this?
You’ve been given information for use with raw Asterisk and at a level that assumes how to use raw Asterisk.
In order to reach the inbound route processing, the context must be from-pstn, from-trunk, or from-pstn-toheader, or you must have added it as a custom context. The first two are the same, and take the DID from the user part of the request URI (the URI on the first line of the INVITE). The third one takes the DID from the user part of the URI in the To header. If your provider requires anything different, you will need a custom context, but you don’t seem to have been provided with enough information to know whether that is the case, or what it should do.