Page 1 of 1

Call notification of outages

Posted: Tue Jun 18, 2013 3:00 pm
by bacon-dtlk
Hello,

I am attempting to configure Nagios to make a phone call to support personnel in the event of an outage. I want to integrate this with our Cisco Unified Call Manager. The call would be made via our SIP trunk.

I found this document online, but it doesn’t detail integrating with CUCM, or any call manager (http://www.linuxscrew.com/2011/09/13/na ... hone-call/) and I cannot get it to authenticate.

Does anyone have any experience with this or documentation on how to do it?

Thank you in advance,

Nick

Re: Call notification of outages

Posted: Tue Jun 18, 2013 3:50 pm
by abrist
I am not very familiar with CUCM, but you will need to know the api of CUCM in order to create a plugin to work with it.

I did do some looking on the exchange but all I found were plugins to check cisco call devices and services.

What are the exact problems that you experienced with the SIP setup?

Re: Call notification of outages

Posted: Tue Jun 18, 2013 5:00 pm
by bacon-dtlk
Hello and thank you for the response. When I attempted to use the PJsip app mentioned in the link, it isn't authenticating. I used Cisco's manual on setting up "3rd party SIP devices", but no luck still.

Re: Call notification of outages

Posted: Wed Jun 19, 2013 11:38 am
by abrist
What are the exact auth errors you are receiving?

Re: Call notification of outages

Posted: Wed Jun 19, 2013 4:22 pm
by bacon-dtlk
The errors on the Linux side, when attempting the call via PJsip are:

16:04:54.793 pjsua_acc.c ...SIP registration failed, status=408 (Request Timeout)
16:04:54.793 pjsua_acc.c ...Scheduling re-registration retry for acc 2 in 62 seconds..

I am trying to locate logs on the Cisco side, to see if it's reporting anything.

Re: Call notification of outages

Posted: Thu Jun 20, 2013 1:34 pm
by abrist
From: http://stackoverflow.com/questions/1623 ... quest-time
The 408 timeout message typically means that the user agent, in this case your pjsip application, sent it's request but did not get a response.
Check to make sure the right port is declared in the check and open on the server:

Code: Select all

nmap <sip server ip>
I think the default port is 5060.

Re: Call notification of outages

Posted: Thu Jun 20, 2013 2:05 pm
by bacon-dtlk
Hi, I have seen that post. Here are the nmap results:

Not shown: 909 filtered ports, 79 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
1720/tcp open H.323/Q.931
2000/tcp open cisco-sccp
2001/tcp open dc
2002/tcp open globe
5060/tcp open sip
8002/tcp open teradataordbms
8080/tcp open http-proxy
8443/tcp open https-alt
8500/tcp open fmtp

5060 is open.

Re: Call notification of outages

Posted: Thu Jun 20, 2013 3:50 pm
by bacon-dtlk
I am now seeing the registration "rejected" on the Cisco Unified Call Manager, so it looks like I need to figure that end out. Thanks again for all your help and if you have any other ideas, let me know.

Re: Call notification of outages

Posted: Thu Jun 20, 2013 5:05 pm
by abrist
At least it looks like there some form of communication between them. error 408 can also be a user/password/auth issue, but those are rather hard to troubleshoot on our end. If you have nasty meta characters in your username or password, you may have to use the resource.cfg file to bypass escape-related issues.