multi server monitor phone

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

multi server monitor phone

Postby dreedy » Tue Nov 08, 2016 5:38 pm

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.
1- mysql/apache Server (ViciBox 11) Dell R640
1- Dialer (Vicibox 11) Dell R620
1- Web (Vicibox 11) Dell R620
1- Archive Server Drobo 810n

Asterisk 16.30.0-vici | VERSION: 2.14-924a | BUILD: 240716-1453 | svn 3856|dbschema 1717
dreedy
 
Posts: 182
Joined: Tue Nov 24, 2015 10:16 pm

Re: multi server monitor phone

Postby Noah » Fri Nov 11, 2016 1:07 pm

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.
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: multi server monitor phone

Postby dreedy » Fri Nov 11, 2016 1:32 pm

Thanks i will give this a try. when i do that i will copy the cli and let you see.
1- mysql/apache Server (ViciBox 11) Dell R640
1- Dialer (Vicibox 11) Dell R620
1- Web (Vicibox 11) Dell R620
1- Archive Server Drobo 810n

Asterisk 16.30.0-vici | VERSION: 2.14-924a | BUILD: 240716-1453 | svn 3856|dbschema 1717
dreedy
 
Posts: 182
Joined: Tue Nov 24, 2015 10:16 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 123 guests