Send Caller ID via HTTP Request

HI,

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:

http://mydomain.com/cid?34616616616

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

Thanks

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?