FreePBX | Register | Issues | Wiki | Portal | Support

Inbound Calls not working

siptrunk
freepbx
asterisk
configuration
Tags: #<Tag:0x00007fcd2ae5f110> #<Tag:0x00007fcd2ae5efa8> #<Tag:0x00007fcd2ae5ee40> #<Tag:0x00007fcd2ae5ed00>

(Taylor Jones) #1

I set up a freepbx server using the iso image to install the entire operating system. After getting it setup I subscriped to a SIP trunk with Twilio. I was able to get outbound calls to work just fine however inbound calls are failing with an error. Looking at the asterisk log I see the following error.

[2017-05-16 19:46:54] NOTICE[6513] res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from ‘sip:hello@SIPTRUNKURL’ failed for ‘GATEWAYIPADDRESS:65476’ (callid: aa23ff71472bb4b1dd141158f8382e1b@0.0.0.0) - No matching endpoint found

I have tried various debugging techniques but have not been able to resolve this. Let me know if you have any other information you need in order to help me with this.


(Dave Burgess) #2

Usually means that you set the incoming route(s) are set to invalid destinations.

Take a look at your inbound route’s any/any (No DID, No CID) destination is going to a place that exists. Try sending it to a voicemail account you’ve set up.

I don’t have a lot of confidence on PJ-SIP and Twilio working together. It seems like every “I can’t do phone” problem in the past two weeks has mentioned Twilio at least once. Make sure your default ports match what Twilio is trying to hit. It could be something like Twilio is hitting the Chan-SIP port instead of the PJ-SIP port.


(Taylor Jones) #3

I only have one inbound route set up which is Any DID and any CID with the destination to the same extension I am able to call out of. The chan_sip and chan_pjsip settings are all default to it should be coming into pjsip. It is all a clean install with default settings besides following the basic setup tutorials.


(Dave Burgess) #4

OK, but the extension you are sending it to isn’t available to the inbound route. Double check your extension setup and make sure you haven’t mistyped something. The fact that the phone works is encouraging, but this is a common problem that is usually caused by the vagaries of Chan-SIP and PJ-SIP.

The /var/log/asterisk/full log file should show the steps the inbound call is taking, so you might want to look at that and see where the error is getting generated.

For testing, try setting the inbound route to something that isn’t variable, like a voicemail destination or an announcement. This way, you can debug the process step-by-step.


(Taylor Jones) #5

After setting it to voicemail and trying again this is what my log looks like. I tried uploading as a file but it would not let me.

[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] ERROR[26794] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] NOTICE[26794] sorcery.c: Type 'system' is not reloadable, maintaining previous values
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] ERROR[26794] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.transports_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.endpoint_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.aor_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.auth_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.registration_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip.identify_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[26794] config.c: Parsing '/etc/asterisk/pjsip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_outbound_publish.so' (PJSIP Outbound Publish Support)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_crypto.so' (Cryptographic Digital Signatures)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_ari.so' (Asterisk RESTful Interface)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/ari.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/ari_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/ari_general_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/ari_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/ari_additional_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_fax.so' (Generic FAX Applications)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/res_fax.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/res_fax_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_parking.so' (Call Parking Resource)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/res_parking.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/71/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/72/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/73/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/74/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/75/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/76/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/77/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/78/1, registrar=res_parking/default; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Remove parkedcalls/70/1, registrar=res_parking; con=<nil>((nil)); con->root=(nil)
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '70' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '71' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '72' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '73' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '74' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '75' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '76' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '77' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] pbx.c: Added extension '78' priority 1 to parkedcalls
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_config_curl.so' (Realtime Curl configuration)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_config_mysql.so' (MySQL RealTime Configuration Driver)
[2017-05-16 21:07:48] VERBOSE[30005] res_config_mysql.c: MySQL RealTime reloaded.
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_authenticator_digest.so' (PJSIP authentication resource)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_transport_management.so' (PJSIP Reliable Transport Management)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_endpoint_identifier_ip.so' (PJSIP IP endpoint identifier)
[2017-05-16 21:07:48] ERROR[30005] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_musiconhold.so' (Music On Hold Resource)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/musiconhold.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/musiconhold_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/musiconhold_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_rtp_asterisk.so' (Asterisk RTP Stack)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/rtp.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/rtp_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/rtp_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] res_rtp_asterisk.c: RTP Allocating from port range 10000 -> 20000
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_mwi.so' (PJSIP MWI resource)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_publish_asterisk.so' (PJSIP Asterisk Event PUBLISH Support)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'chan_dahdi.so' (DAHDI Telephony w/PRI & SS7 & MFC/R2)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_general_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_registrations_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_registrations.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/iax_custom_post.conf': Found
[2017-05-16 21:07:48] WARNING[30005] iax2/firmware.c: Error opening firmware directory '/var/lib/asterisk/firmware/iax': No such file or directory
[2017-05-16 21:07:48] NOTICE[30005] iax2/provision.c: No IAX provisioning configuration found, IAX provisioning disabled.
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_adsi.so' (ADSI Resource)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_outbound_registration.so' (PJSIP Outbound Registration Support)
[2017-05-16 21:07:48] ERROR[30005] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'res_pjsip_notify.so' (CLI/AMI PJSIP NOTIFY Support)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/pjsip_notify.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/sip_notify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/sip_notify_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'app_meetme.so' (MeetMe conference bridge)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/meetme.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/meetme_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/meetme_general_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/meetme_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'app_confbridge.so' (Conference Bridge Application)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/confbridge.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/confbridge_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/confbridge_custom.conf': Found
[2017-05-16 21:07:48] NOTICE[30005] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'cel_manager.so' (Asterisk Manager Interface CEL Backend)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel_general_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'cel_odbc.so' (ODBC CEL backend)
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel_odbc.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/cel_odbc_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] chan_sip.c: Reloading SIP
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_general_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_nat.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_registrations_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_registrations.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_custom_post.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] netsock2.c: Using SIP TOS bits 96
[2017-05-16 21:07:48] VERBOSE[2780] netsock2.c: Using SIP CoS mark 4
[2017-05-16 21:07:48] VERBOSE[30005] cel_odbc.c: Found CEL table cel@asteriskcdrdb.
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'app_playback.so' (Sound File Playback Application)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/voicemail.conf': Found
[2017-05-16 21:07:48] WARNING[30005] app_voicemail.c: maxsilence should be less than minsecs or you may get empty messages
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'codec_dahdi.so' (Generic DAHDI Transcoder Codec Translator)
[2017-05-16 21:07:48] VERBOSE[30005] loader.c: Reloading module 'app_queue.so' (True Call Queueing)
[2017-05-16 21:07:48] NOTICE[30005] app_queue.c: queuerules.conf has not changed since it was last loaded. Not taking any action.
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues_general_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues_custom_general.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues_additional.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] config.c: Parsing '/etc/asterisk/queues_post_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[30005] asterisk.c: Remote UNIX connection disconnected
[2017-05-16 21:07:48] WARNING[2780] chan_sip.c: Section 'Twilio1' lacks type
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_notify.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_notify_custom.conf': Found
[2017-05-16 21:07:48] VERBOSE[2780] config.c: Parsing '/etc/asterisk/sip_notify_additional.conf': Found
[2017-05-16 21:08:20] NOTICE[26794] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '<sip:hello@bridgeway.pstn.twilio.com>' failed for '192.168.50.1:65476' (callid: 06d00d4ec143ff6d7ac0834391afee0b@0.0.0.0) - No matching endpoint found
[2017-05-16 21:08:20] NOTICE[26794] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '<sip:hello@bridgeway.pstn.twilio.com>' failed for '192.168.50.1:31861' (callid: 5a7b0c377baada2bb9fa89c3f3fe53c9@0.0.0.0) - No matching endpoint found

(Taylor Jones) #6

It appears it may be a problem with twilio. I had not problem setting up a sip.us free trial.


(Dave Burgess) #7

Not saying it isn’t totally a Twilio thing, but you missed a required setting in your configuration. “Type=Friend” would be a good addition to your SIP settings.

Also, this logfile looks like it’s from a restart of the server. It’s possible that something in your system is causing Asterisk to restart when you receive a phone call, which would make it appear like you aren’t getting the call…


(Taylor Jones) #8

The restart is because I made the call just after hitting apply config from changing settings. I have Type=peer set in the configuration like the twilio document said to use.


(Dave Burgess) #9

Assuming you are sending and receiving calls from the same trunk (host number, port, etc.) you can use “Type=Friend”. If the trunk is for incoming only “Type=Peer” would make sense.


#10

For us, with twilio we setup one “inbound trunk” for each of twilio’s 8 possible US IP addresses that deliver SIP calls. The guide only shows 4 US addresses but they have since added the Oregon servers.

Twilio IP addresses:

“Inbound” Trunk 1 (There are 8 of these… 1 for each Twilio IP)
host=54.172.60.0
type=peer
context=from-trunk


(Taylor Jones) #11

I ended up going with a different provider and had no trouble getting it set up. It was not worth the time to try and get it working. I may try again later if I come across some free time.


(Alisa) #12

Just in case you end up wanting to try Twilio again or if someone else is interested, I also had a problem when I first tried to get FreePBX set up with Twilio and it was definitely an issue with chan_sip vs. chan_pjsip. It seems that Twilio does not work well with chan_pjsip, but it also wants to default to using port 5060 for its connections. If you’ve installed Asterisk version 13, then FreePBX defaults to assigning port 5060 to chan_pjsip and port 5160 to chan_sip. In order to get my outbound calls to work, I had to change the settings in Settings | Asterisk SIP Settings. I just swapped it so that now on the Chan SIP Settings tab, my Bind Port is set to 5060 and on the Chan PJSIP Settings tab, the Port to Listen On is set to 5160. I set up my extensions as chan_sip extensions as well. As far as using Type=Friend vs. Type=Peer, I too followed Twilio’s instructions and have my trunk set up with Type=Peer and everything is working properly. Here’s the best video that I found for setting up FreePBX with Twilio. It’s bang on the mark, except that he installed FreePBX with Asterisk 11 which doesn’t have chan_pjsip settings. If you follow his video but then edit your SIP settings, it should work. If it doesn’t, feel free to post again and I can share with you how I have my trunks set up for inbound and outbound and we can see if that’s where the problem is.

ETA: I forgot to post the link to the video that I followed: https://www.youtube.com/watch?v=Aw_aollIQ1A&list=LLdYa3AOnDR_LsaJ2Ih1xoPQ


(Leroy M) #13

Good day, All, I’m quite new to FreePBX I installed my system and setup SIP trunking my SIP provider is Voys. The problem I am having is that I can make calls but I am struggling to receive calls I have attached my log files. Any assistance would be greatly appreciated.

Kind regards!


(Dave Burgess) #14

I doesn’t look like you have a valid, solid network. You are losing connection to VOYS1 a lot, so if a call comes in from VOYS1 while it’s down, the inbound wouldn’t work.

It could be a problem with your trunk set up, or it could be a pure networking issue.