I think the dialparties.agi is responsible for connecting the inbound call to the xtn that answered it. It also logs the event and shows debug info in the console.
I would like it to do one more thing.
I would like it to use netcat or similar to send the inbound phone number to a predetermined ip address.
So a call comes in to a ring group and all phones ring.
One phone answers the call
Asterisk knows the caller number and the xtn number that answered it
Asterisk connects the trunk to the extention
addition Asterisk netcat’s the caller number to an IP address
That’s all. Is this something I can do? I guess changes here would be overwritten during an upgrade, but that’s ok.
It feels like it should just be one single line of code, I just dont know where to start, tips and comments greatly appreciated.