signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.32k stars 1.38k forks source link

[mod_event_socket] Unable to get command output as an INBOUND Mode from event socket #2455

Open surabhigarg1234 opened 2 months ago

surabhigarg1234 commented 2 months ago

Requirement:

  1. Need to connect freeswitch command line from an external application
  2. To achieve that "mod_event_socket" is the one can help out
  3. while doing TCP connection from my application to FreesSWITCH on 127.0.0.1:8021
  4. Connection is successful
  5. But when I am firing command on socket "api callcenter_config agent set state 7999903 Idle"
  6. I am getting response: "ACK : Revieved : Content-Type: auth/request"

But nothing got updated when I checked on freeswitch CLI.

Similarly, when I hit "api getcputime", same response I am getting "ACK : Revieved : Content-Type: auth/request" but nothing else received on my application related to getcputime.

do we need something related to password "Cluecon" which is required for "mod_event_socket"? if yes how can we do password auth in TCP socket connection?

suiyuemanbu commented 2 months ago

you need send "auth ClueCon" to freeswitch