Sending CallerID to mqtt after superfecta lookup

I am using a custom extension to send incoming call info via mqtt:
/etc/asterisk/extensions_custom.conf:

[from-pstn-custom]

exten => _X.,1,AGI(/opt/agi-mqtt/mqtt,/opt/agi-mqtt/mqtt.cfg,phone/call)

The actual script is on github: /zeha/agi-mqtt
Works very well, only I don’t get the results of the superfecta lookup, the callername is still the number.

I have a workaround using superfecta to send the name to an http site which I have set up to work as a gateway to mqtt. However now I have two mqtt messages, and the whole thing is clumsy.

Is there way to place my script into a custom context which is being processed AFTER superfecta lookup?
Any help is greatly appreciated, thank you!
Peter

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