Send Caller ID via HTTP Request


I’m trying to find a way to send the caller ID to an external url on inbound calls.

I know this will need to be in the dial plan but I do not know where to start.

For example on inbound call send this http request:

This is for a web application so I can match incoming calls to clients.


I would simply write a custom context that sends the http then passes control back to FreePBX (goto from-trunk).

Asterisk, The future of Telephony and the third edition, The Definitive reference provide excellent programming tutorials.

Put your code in a custom context in /etc/asterisk/extensions_custom.conf, then change the context of the trunk to match the context you created.

How do you intend on aligning channels with CID’s?