irontec / ivozprovider

IVOZ Provider - Multitenant solution for VoIP telephony providers
https://ivoz.irontec.com/
GNU General Public License v3.0
198 stars 79 forks source link

vPBX can not do external/internal calls #2728

Open gmoreno90 opened 2 months ago

gmoreno90 commented 2 months ago

Description

I'm trying to create a vPbx Client and this client cal recieve call but not sent (internal or external) We configured:

When try to call between 1001 to 1002 return 603 Decline searching the asterisk debug we can see the following error ``

[2dec43c3] Executing [1002@trunks:1] NoOp("PJSIP/proxytrunks-0000001c", "Incoming external call from "" to 1002") in new stack [2dec43c3] Executing [1002@trunks:2] AGI("PJSIP/proxytrunks-0000001c", "agi://127.0.0.1:4573/fastagi-runner.php?command=Dialplan/Trunks") in new stack [2dec43c3] [Kernel.php:60 ] AGI Error ("PJSIP/proxytrunks-0000001c", "DDI 1002 not found in database.") -- <PJSIP/proxytrunks-0000001c>AGI Script agi://127.0.0.1:4573/fastagi-runner.php?command=Dialplan/Trunks completed, returning 0 -- Auto fallthrough, channel 'PJSIP/proxytrunks-0000001c' status is 'UNKNOWN' ``

How we can configure a vpbx on that version? or is samething missing on configuration side?

Thanks


Troubleshooting

Create the following data on vpbx client

Additional Information

N/A

gmoreno90 commented 2 months ago

Hello! I make the same test using the stable version and have the same result.

image

IvozProvider version: 3.4~3.4.1~20240212.929~ee6564e+halliday

That test was made with the Demo Brand and vpbx demo client

gmoreno90 commented 2 months ago

Hello! I make the same on 4.1 version and have the same result.

image

IvozProvider version: 4.1~4.1.0~20240805.1214~83ffdec+tempest That test was made with the Demo Brand and vpbx demo client

Kaian commented 1 month ago

Hi @gmoreno90

Are you using different IP address for Trunks and Users kamailio proxies? It looks like asterisk is identifing your user calls as trunks (external) calls

Also, I would also try updating to 4.2.0 version (It will be released next week) that have some fixed on how proxies are identified by asterisk on standalone installations.

Best regards

gmoreno90 commented 1 month ago

Hi @Kaian I'm using the same IP for both proxies. I intall a the new version, and now the proxytrunks not start with the following error. need to open a new ticket? with that issue?

root@ivoz42:/etc/apt/sources.list.d# systemctl -l status kamailio@trunks.service --no-pager × kamailio@trunks.service - Kamailio - the Open Source SIP Server Loaded: loaded (/lib/systemd/system/kamailio@.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Thu 2024-09-26 14:49:16 CEST; 6min ago CPU: 137ms

Sep 26 14:49:16 ivoz42 kamailio[25997]: tcp: trunks.ivozprovider.local [46.183.118.130]:8002 Sep 26 14:49:16 ivoz42 kamailio[25997]: tcp: trunks.ivozprovider.local [46.183.118.130]:8001 Sep 26 14:49:16 ivoz42 kamailio[25997]: tls: trunks.ivozprovider.local [46.183.118.130]:5061 Sep 26 14:49:16 ivoz42 kamailio[25997]: Aliases: Sep 26 14:49:16 ivoz42 /usr/sbin/kamailio[25999]: WARNING: db_mysql [km_my_con.c:187]: db_mysql_new_connection(): opt_ssl_ca option not supported by mysql version (value (null)) - ignoring Sep 26 14:49:16 ivoz42 /usr/sbin/kamailio[25999]: ERROR: dmq [dmq.c:241]: mod_init(): server_uri is not a socket the proxy is listening on Sep 26 14:49:16 ivoz42 /usr/sbin/kamailio[25999]: ERROR: [core/sr_module.c:1039]: init_mod(): Error while initializing module dmq (/usr/lib/x86_64-linux-gnu/kamailio/modules/dmq.so) Sep 26 14:49:16 ivoz42 systemd[1]: kamailio@trunks.service: Control process exited, code=exited, status=255/EXCEPTION Sep 26 14:49:16 ivoz42 systemd[1]: kamailio@trunks.service: Failed with result 'exit-code'. Sep 26 14:49:16 ivoz42 systemd[1]: Failed to start kamailio@trunks.service - Kamailio - the Open Source SIP Server.

Best Regards

Kaian commented 1 week ago

Hi,

Sorry for the late response, I was on holidays.

Can you provide the contents of /etc/kamailio/proxytrunks/listeners.cfg and /etc/kamailio/proxytrunks/ports.cfg ?

Best Regards,