Hello everyone,
When I was starting using dialplan, the majority of things work fine but when I started using AGI some problems occured. The calls are not able now because of some reasons. I know that I changed asterisk to run as root before starting AGI. When I want to make call using AGI or dialplan I got following information:
Feb 27 17:01:14] ERROR[13155]: res_pjsip.c:3740 ast_sip_create_dialog_uac: Endpoint ‘8001’: Could not create dialog to invalid URI ‘8001’. Is endpoint registered and reachable?
[Feb 27 17:01:14] ERROR[13155]: chan_pjsip.c:2629 request: Failed to create outgoing session to endpoint ‘8001’
[Feb 27 17:01:14] WARNING[13157][C-00000011]: app_dial.c:2580 dial_exec_full: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
Also, I do not know is this related with this error but I have other two endpoints that I used for another ip adress and I got this constanstly:
– Removed contact ‘sip:7001@192.168.7.194:43723;transport=UDP;rinstance=abc2965522e9ecd7’ from AOR ‘7001’ due to expiration
– Removed contact ‘sip:7002@192.168.7.194’ from AOR ‘7002’ due to expiration
– Removed contact ‘sip:7001@192.168.7.194:43723;transport=UDP;rinstance=abc2965522e9ecd7’ from AOR ‘7001’ due to expiration
– Removed contact ‘sip:7002@192.168.7.194’ from AOR ‘7002’ due to expiration
– Removed contact ‘sip:7001@192.168.7.194:43723;transport=UDP;rinstance=abc2965522e9ecd7’ from AOR ‘7001’ due to expiration
– Removed contact ‘sip:7002@192.168.7.194’ from AOR ‘7002’ due to expiration
– Removed contact ‘sip:7001@192.168.7.194:43723;transport=UDP;rinstance=abc2965522e9ecd7’ from AOR ‘7001’ due to expiration
– Removed contact ‘sip:7002@192.168.7.194’ from AOR ‘7002’ due to expiration
– Removed contact ‘sip:7001@192.168.7.194:43723;transport=UDP;rinstance=abc2965522e9ecd7’ from AOR ‘7001’ due to expiration
– Removed contact ‘sip:7002@192.168.7.194’ from AOR ‘7002’ due to expiration
Please use the log files, not a screen scrape. The log files contain time stamps, which are important information when registrations are repeatedly timing out.
Most likely causes are an unreliable (e.g. overloaded) network or dynamic firewall or NAT rules, in a router, which are timing out.
For the former, you will have to fix the network. For the latter, you might get some success by increasing the qualify frequency (lower numbers).
But the call between endpoints worked fine last week, on same network. The problems started when I started using AGI and changed the asterisk to run as root.
I think there is not problem with network.
Successful registration isn’t needed for inbound calls, if you use type = friend (which people commonly, but generally unwisely, use for phones).
If a registration fails, outbound calls will be blocked until the phone makes a successful registration attempt, whereas, for an inbound call, the packets have to be lost at the specific time the call is being attempted, for the call to fail.
My softphone are registered correctly. This is what I receive from one of my softphone:
8002, registration succeeded (expires = 3600 seconds).
I do not understand you, how can I solve this problem, what should be fixed?
I also found out that when I tried to register my softphone I got this error:
ERROR[4592]: res_pjsip_registrar.c:861 register_aor_core: Unable to bind contact ‘sip:8002@192.168.0.21’ to AOR ‘8002’
You need to provide your actual configuration. It may be that your configuration for 8002 is broken, in addition to your having network problems which are causing the registration to 8001 not to be refreshed in time.
When it comes to 8001, that is ok. It does not work because I use 8001 for one ip adress and 8002 for another ip adress, since I use two offices, so I do not have to change configuration of softphones every time.
The problem is with 8002. Which configuration or outputs do you want?
If “ERROR[4592]: res_pjsip_registrar.c:861 register_aor_core: Unable to bind contact ‘sip:8002@192.168.0.21’ to AOR ‘8002’” is seen then the incoming registration failed. This commonly occurs if Asterisk can’t access the sqlite3 database (by default stored at /var/lib/asterisk/astdb.sqlite3) or if it is corrupted. Any issues with it after logged when Asterisk is started.
pjsip.conf and everything relevant included from it, to the extent that it relates to global setting, transports, or anything referenced by or referencing the 8002 endpoint, and extensions.conf (and anything included) to the extent that it contains global settings or contexts used during the call.
Note this is an Asterisk forum, so, unless using Asterisk realtime architecture, this information should be easily available without asking the system to display the configuration.
Hi guys, I figured out what causes the problem but I do not know how to solve it.
Asterisk is installed on virtualBox, CentOs7 while my host machine is Ubuntu.
In order to easier develop agi in php, I installed editor in ubuntu and make shared folder in centOs7.
On tutorials how to install shared folder i found that after installing Guest Additions ISO Image I have to add these two commands:
After second command is run, this error occurs. if i try to make call before that, it works. After executing this second command I got this
VirtualBox Guest Additions: Building the modules for kernel
3.10.0-1160.53.1.el7.x86_64.
Maybe this is not related directly with asterisk, but it causes the problem. I hope that you know explanation.
Hi everyone,
I installed and configured asterisk on CentOS which is installed on virtualBox. My host machine is Ubuntu. Now i tried to make shared folder on virtualBox on centOS7 so I can develop agi in Ubuntu, it is easier.
The problem is when I insert guest addition CD which is used for shared folder, calls on asterisk have stopped working.
The errors that I got are:
ERROR[13155]: res_pjsip.c:3740 ast_sip_create_dialog_uac: Endpoint ‘8001’: Could not create dialog to invalid URI ‘8001’. Is endpoint registered and reachable?
ERROR[13155]: chan_pjsip.c:2629 request: Failed to create outgoing session to endpoint ‘8001’
Any thoughts why this caused the problem or solution how to fix it?