P
P
poteh2018-06-10 21:33:25
Asterisk
poteh, 2018-06-10 21:33:25

Why don't events come to 1C from FreePBX via AMI (Asterisk)?

I am doing a bunch of 1C and Asterisk (FreePBX). I'm trying 2 components: BROM-Asterisk-Native and Asterisk.NET.dll (via COM). Both successfully connected to AMI, it turned out to make a call. But I just can't figure out why I can't receive events from Asteriska when I call. At the same time, if I connect via putty to port 5038, events are poured during the call.
Windows Server 2008 R2, 1C version 8.3.10.2580 (tried both 64-bit and 32-bit versions), FreePBX 14.0.3.2 are used.
I test the same components, the same processing and configurations in a different environment - everything works.
Second environment: Windows Server 2012, 1C version 8.3.10.2650 (32 bits), FreePBX 2.11.0.43.
Here is the configuration manager.conf

[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects 1.6+
allowmultiplelogin=yes
httptimeout=60
[mappings]
recordingfile=>recordingfile
linkedid=>linkedid
[test]
secret = test
deny=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.255.0
read = call,user,originate
write = call,user,originate
writetimeout = 100

I can't figure out where the bug is. From the side of 1C, everything seems to be fine, because. the same code successfully fulfills on other server. From the side of Asterisk, everything seems to be fine, too. through the console I see all the events, in theory they should come in 1C.
What else can be? Where else to dig?
PS raised a couple of test FreePBXs on the virtual machine, including version 2 - the result is negative. Maybe the problem is somewhere in the network? I'm not the network admin, I don't know the settings, but I can't even imagine what can have such an effect.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gansterito, 2018-06-13
@Gansterito

Take a pcap dump (tcpdump on Linux or Wireshark on windows) and see if data is being transferred or not.
In general, is there a connection? See if there is a connection from 1C with the manager show connected command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question