Hello my friends , i have a dialplan that transfer to an AGI that captures callerid and channel , but i need to get the sip agente that makes the transfer , is there a way to do that ?
;Dial Plan
exten => s,1,Answer
exten => s,2,Background(encuesta)
exten => 2,1,Wait(1)
exten => 2,n,AGI(/root/test.php)
;AGI
#!/usr/bin/php -q
Thank you very much