FreePBX | Register | Issues | Wiki | Portal | Support

FreePBX -> Incoming Call - > MQTT

(D E) #1

Does anyone have any advice on how to send the incoming call number to MQTT from within the GUI? Thanks!

Answer query about call flow

You can’t easily do it from inside the GUI, you will need to pass the call data to your mqtt broker , there are a couple of asterisk specific libraries, one for example:-

There are sip2mqtt type connectors for many iot type stuff (home assistant for example) and there is good old mosquitto_pub/sub you can call within your custom inbound call context dialplan with

exten => s,1,trysystem(mosquitto_pub -h -t 'your/topic/${EXTEN}' -m ${CallerID(number)} )
exten=> s,n, goto(from-pstn,${EXTEN},1)

for example, the -m (message) can be as complex as you want if json formatted

(system) closed #3

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