Page 1 of 1
get agent phone as channel variable
Posted:
Mon Dec 18, 2023 12:53 pm
by ambiorixg12
Hi, I know I can retrieve vicidial_list fields as variables for the call using the agi-set_variables.agi script. However, in my case, I need to obtain the phone number and name of the agent who answered the call as an Asterisk channel variable. The only way I see is by using the campaign start call URL or disposition URL. Is there a way to get the agent's phone number as a channel variable once the call ends?
Re: get agent phone as channel variable
Posted:
Sat Dec 30, 2023 1:34 pm
by ambiorixg12
As I didn't find any relevant information, I altered my approach. Instead of retrieving data as Asterisk channel variables, I chose to use HTTP GET variables and the dispo URL. Subsequently, I utilized Asterisk's AMI and local channel to convert those variables into channel variables.
Re: get agent phone as channel variable
Posted:
Wed Jan 03, 2024 3:56 pm
by kashyapking
If you want to get connected agent information, then you can check vicidial_live_agents table where you can see connected channel information and get all information which might help for your development of agent information.
Re: get agent phone as channel variable
Posted:
Wed Jan 03, 2024 9:35 pm
by ambiorixg12
Thank you for the information. As I mentioned earlier, I ended up using custom variables in the user field and the campaign dispo URL . Nonetheless, I will take your suggestion and check the table information