AsterNET: [Bug] - `Dial` event not firing on Asterisk 18.x (maybe due to AsteriskVersion always `ASTERISK_1_0`)

Hi,

I am using this library to connect to an LocaPhone 5.6 instance, which under the hood is running Asterisk 18.x.

I can successfully connect the ManagerConnection via phonesuite, but I miss several events (especially the Dial event)

With LocaPhone 4.x this worked as expected, but now it doesn’t.

Looking at the code, it should definitely be able to handle Asterisk versions up to 17.x and above.

What I am doing wrong?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26

Most upvoted comments

I think this can be closed, if a new version is released with the state of current master… I use a version compiled from master and it works now in production since june…

I could try to give this a shot, but only if the PR gets attention (like many other open PRs…).

Try it and see if it fixes your other issues. If it doesn’t then you can make a separate bug report about that.

Other issues? My only issue was that the Dial event wasn’t triggering anymore, so I went on a debugging journey and discovered, that the AsteriskVersion is equal to what’s actually wrong. (Btw… if the Dial event is working as expected I just don’t care what version is detected 😉) Then I thought that this could be the issue which is leading to my main issue.

After that I fiddled around a bit with other events (which interestingly are working) and tried them to workaround my issue. And finally I tried DialBegin which works like the Dial event on LocaPhone 4.x.

PS: if I rethink about this ticket… I made a perfect example of a xy-problem. Sorry about that 🤦‍♂️

Something seems to be failing in version detection, so if you can get the exact output from the core show version command in the Asterisk CLI, we can debug it better.

I assume that the complete command looks like this: asterisk core show version:

administrator@pbxserver:~$  asterisk core show version
administrator@pbxserver:~$

You are on the Linux CLI? I don’t know how to access the Asterisk CLI from Linux, you will likely have to look at that up yourself.

yes, I am on the linux cli. the actual command looks like this: asterisk -rx 'core show version', but running this outputs this: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

Since this file exists, but have different permissions I run sudo -u asterisk asterisk -rx 'core show version' which finally returns Asterisk 18.10.1~uloca-focal1 built by root @ pbuilder-neu on a x86_64 running Linux on 2023-06-27 07:22:17 UTC