<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 04/16/2010 03:39 PM, Nathan Clemons wrote:
<blockquote
 cite="mid:h2of9707c751004161439we3eb09abxefbe1539208c5446@mail.gmail.com"
 type="cite">I'm looking to find a test tool that will register with
our Asterisk (Trixbox) server here at work and place an outgoing call
via our main SIP trunk (BroadVoice) to confirm that things are working.
I've looked around but I can't seem to find any tools that will do what
I'm looking for.<br>
  <br>
I can't just monitor the status of the trunk inside Asterisk, as this
is the normal status:<br>
  <br>
asterisk*CLI&gt; sip show peers<br>
Name/username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dyn Nat ACL Port&nbsp;&nbsp;&nbsp;&nbsp;
Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
BroadVoice/425256XXXX &nbsp;&nbsp;&nbsp;&nbsp; 147.135.32.221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5060&nbsp;&nbsp;&nbsp;&nbsp;
Unmonitored&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
...<br>
37 sip peers [Monitored: 5 online, 31 offline Unmonitored: 1 online, 0
offline]<br>
asterisk*CLI&gt; <br>
  <br>
Alternatively, any suggestions as to how I can change the trunk
configuration so that it is monitored would be appreciated. The peer
config is set as:<br>
  <br>
allow=ulaw<br>
disallow=all<br>
canreinvite=no<br>
context=from-trunk<br>
dtmf=inband<br>
dtmfmode=inband<br>
fromdomain=<a moz-do-not-send="true" href="http://sip.broadvoice.com">sip.broadvoice.com</a><br>
fromuser=425256XXXX<br>
host=<a moz-do-not-send="true" href="http://sip.broadvoice.com">sip.broadvoice.com</a><br>
insecure=very<br>
nat=yes<br>
secret=XXXXXXXXXX<br>
type=peer<br>
username=425256XXXX<br>
  <br>
  <br>
Any assistance would be appreciated. I'd rather know when things fail
via an automated system rather than learning it's down from the users.<br>
  <br clear="all">
-- Nathan Clemons<br>
</blockquote>
<br>
I believe that adding qualify=&lt;enter your value in seconds here&gt;
to your trunk configuration is what you are looking for for the
monitoring state.&nbsp; This will send SIP OPTIONS packets to the trunk
periodically.&nbsp; See "qualify" in the sip.conf samples or documentation.&nbsp;
<br>
<br>