Hello, I am learning FreePBX now, so I am really sorry for some questions. But I am really confusing with some setup here.
I made setup with Twilio and want do send calls from Twilio number to SIP Trunk. Looks like setup is correct on some % because after some battle Twilio start send calls to FreePBX Server.
At the moment I have 2 problems, when person call number - you can get rings. Call go from Twilio to FreePBX and stuck there. Not possible to get call at Zoiper end point setup.
In log I have error like this when person call:
[2025-05-30 05:45:23] NOTICE[989]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request 'INVITE' from '<sip:+PHONE_NUMBER_HIDED@TWILIO_ADRESS_HIDED.pstn.twilio.com>' failed for '111.12.9.1:58287' (callid: [email protected]) - No matching endpoint found after 5 tries in 2.793 ms
And I have error like this when I trying to use Zoiper for External Call.
[2025-05-30 05:43:40] NOTICE[988]: res_pjsip_session.c:4041 new_invite: 1011: Call (UDP:198.18.8.5:6178) to extension '+188888888888' rejected because extension not found in context 'from-internal'.
Can you please help, and explain to me, where I am wrong.
I did setup for Trunk, Inbound Routes, Outbound Routes and Extension what connected to Zoiper, but something total wrong. Thank you
First one is because the address from which they are sending does not match what you have in the server setting, or you have a match/permit setting, which doesn’t cover the address used. You need to ask them what addresses they send from, and set match/permit accordingly.
The second one is because you don’t have an outbound routed defined for that number.
Thank you. But where can I found manual ? I did all according to manual what I found, but some things does not work. I have - FreePBX 17.0.19.27, and Interface is a little different there, and I can’t find out what I miss… Thank you
The link I provided is within the standalone manual. I don’t think there is anything more recent, so you have to rely on the online help.
The following link contains the fields being discussed, although other settings may be wrong for you. Item (4) on the second screen shot is the SIP Server setting, and item (3), on the fourth one is the match/permit settings.
Thank you so much!
Now it works much better, and connection to twilio works without any problems!
But, I have another problem now. When I am doing out call, according to twilio log - call is go, but I can’t hear anything in zoiper.
Error looks like think in asterisk journal:
[2025-06-02 04:25:26] ERROR[15914]: res_pjsip_header_funcs.c:739 remove_header: No headers had been previously added to this session.
And no more info…
When I am calling twilio number to get to sip ( zoiper )
I am getting this:
[2025-06-02 04:25:12] NOTICE[12922]: res_pjsip/pjsip_distributor.c:682 log_failed_request: Request 'INVITE' from '<sip:+phone_number@line_twilio_test.pstn.twilio.com;isup-oli=00;pstn-params=9082888088>' failed for 'my_ip:62624' (callid: [email protected]) - No matching endpoint found after 5 tries in 4.280 ms
What can makes problem in this case? For me looks strange, I did setup according manual what you provided - works much better now. But looks like I miss something.
Thank you