Rasterisk in multi-tenancy

Hello,

I’m testing multi-tenancy. These are my very first steps in this domain. I’ve set an Asterisk instance, obviously using specific file locations.
Currently, an Asterisk seems to be running OK:

service asterisk@foo status
● asterisk@asterisktenant.service - Asterisk PBX for tenant
     Loaded: loaded (/etc/systemd/system/asterisk@.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-01-16 18:42:43 CET; 53min ago
       Docs: man:asterisk(8)
   Main PID: 173265 (asterisk)
      Tasks: 42 (limit: 1100)
     Memory: 39.4M
        CPU: 47.176s
     CGroup: /system.slice/system-asterisk.slice/asterisk@foo.service
             ├─173265 /usr/sbin/asterisk -g -f -p -U asterisk -C /etc/asterisk/tenant/foo/asterisk.conf>
             └─173266 astcanary /var/run/asterisk/tenant/foo/alt.asterisk.canary.tweet.tweet>

But:

# asterisk -rx 'dialplan reload' -C /etc/asterisk/tenant/foo/asterisk.conf 
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

In my setup, I’ve got

# ls  /var/run/tenant/foo
alt.asterisk.canary.tweet.tweet.tweet  asterisk.ctl  asterisk.pid

From “does /var/run/asterisk/asterisk.ctl exist?”, it seems asterisk needs my /var/run/asterisk/tenant/foo/XXX files.
How can I correct this ?

Best regards

Re-reading my asterisk.conf, I saw a typo within it.
After correcting it, the command bellow works OK.
Sorry for over-looking this.

Working command:

asterisk -rx 'dialplan reload' -C /etc/asterisk/tenant/foo/asterisk.conf

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.