I am working on a product that sends calls from my Asterisk Server to my client’s PBX systems. Their PBX systems then allocate it further to one of their Agents. Now I need a way to ascertain which Agent the call was actually allocated to.
I have considered using a webhook/api at my end and getting the client’s PBX trigger it when the call is answered by the agent but this has its limitations and is my last option.
I want to achieve this at SIP level.
Can I somehow configure the PBX systems to send me some custom header in 200 OK which tells which Agent has answered the call? Or may be some other message in which this information can be conveyed?