I made a dialplan which working like this:
1- Originate a call to a queue (my-queue)
2- Someone (sip account A) in my-queue answered
3- Make a call to another trunk to customer’s number, sip account A user talks with customer
It’s worked flawlessly but in CDR record I can’t get which sip account answered the call. The destinationchannel in cdr looks like SIP/my-trunk-0034b4dd.
I need sip account username for our business, please help if you have any idea.
Here is my dialplan:
And originate a call by using asterisk-outgoing which looks like