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
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…).
Other issues? My only issue was that the
Dialevent wasn’t triggering anymore, so I went on a debugging journey and discovered, that theAsteriskVersionis equal to what’s actually wrong. (Btw… if theDialevent 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
DialBeginwhich works like theDialevent on LocaPhone 4.x.PS: if I rethink about this ticket… I made a perfect example of a xy-problem. Sorry about that 🤦♂️
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 returnsAsterisk 18.10.1~uloca-focal1 built by root @ pbuilder-neu on a x86_64 running Linux on 2023-06-27 07:22:17 UTC