How To Know The IP Of “manager Show Connected” In Dialplan
Hi,
Could you give us more details what you are trying to do ?
Your request seems special for me.
Regards.
Hi,
Could you give us more details what you are trying to do ?
Your request seems special for me.
Regards.
4 thoughts on - How To Know The IP Of “manager Show Connected” In Dialplan
I need to launch a remote process at the machine that has the dialer. I
could hard-code the IP address in a global variable, but It would be much more elegant if the dialplan would have a “manager” object where I could read
“manager–>connected”.
If the dialer is connected to Asterisk using AMI, how about issuing a UserEvent in the dialplan, which will then be seen by the logged-in dialer process (assuming it’s looking at the event stream) and can be acted upon to launch the (now local) process?
Antony.
—
I think broken pencils are pointless.
Please reply to the list;
please *don’t* CC me.
—
Maybe I’m wrong, but, with the information you give us, for me, it seems more elegant to use FastAGI to be sure to communicate with the right remote process.
As Antony suggested, UserEvent is also an option, except if you have several dialers connected at the same time or if you need to have an acknowledge that the action is correctly launched.
Regards.
How about using the CUT() function to get the IP address from the return from running the System() application running asterisk -rx “manager show connected”?
I’m not in front of a machine, so cannot test this out…