Page 1 of 1

multi server monitor phone

PostPosted: Tue Nov 08, 2016 5:38 pm
by dreedy
I am trying make an internal sip phone for monitoring across multiple servers. I found /usr/src/astguiclient/trunk/agi/agent_monitor.agi and am trying to add it to /etc/asterisk/extensions.conf using the examples from the agi but i have had no luck calling the extension that i set and getting any action. this is the first time that i have tried to write an extension to take an action. here is the example i have of this.


exten => _2XXXXX,1,set(agent_monitor.agi,USER---N---LISTEN)
exten => _2XXXXX,,n,Meetme(${EXTEN:5},mqX)
exten => _2XXXXX,,n,Hangup()


i am getting a no route to destination when trying to dialer 2+user id. the user id is 5 numbers with no letter in it.

Re: multi server monitor phone

PostPosted: Fri Nov 11, 2016 1:07 pm
by Noah
Looks like you have an extra comma in your dialplan

exten => _2XXXXX,1,set(agent_monitor.agi,USER---N---LISTEN)
exten => _2XXXXX,,n,Meetme(${EXTEN:5},mqX)
exten => _2XXXXX,,n,Hangup()

Should be
exten => _2XXXXX,1,set(agent_monitor.agi,USER---N---LISTEN)
exten => _2XXXXX,n,Meetme(${EXTEN:5},mqX)
exten => _2XXXXX,n,Hangup()

Maybe try 1 hard code value to test with. If you are trying to monitor extension 12345 for example. Then you know you are not running into any other dialplans while testing.
exten => _212345 1,set(agent_monitor.agi,USER---N---LISTEN)
exten => _212345,n,Meetme(${EXTEN:5},mqX)
exten => _212345,n,Hangup()

If you send the asterisk cli output, it's easy to decifer what's going on if you get an error as well.
So run rasterisk on ssh and grab some output when you are trying to test.

Re: multi server monitor phone

PostPosted: Fri Nov 11, 2016 1:32 pm
by dreedy
Thanks i will give this a try. when i do that i will copy the cli and let you see.