<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
In an attempt to connect our Asterisk 1.6 phone system with another
phone system called "Broadsmart", they gave me credentials to register
to.<br>
<br>
Connected to Asterisk 1.6.2.5 currently running on watermelon (pid =
10365)<br>
watermelon*CLI> sip show registry<br>
Host dnsmgr Username Refresh
State Reg.Time<br>
{broadsmart_ip}:5060 N {broadsmart_user} 3317
Registered Fri, 07 May 2010 11:21:41<br>
1 SIP registrations.<br>
<br>
It shows that I am registered. But when I go to make a call using:<br>
exten => 706,1,Macro(broadsmart,706)<br>
<br>
and the Macro<br>
[macro-broadsmart]<br>
exten => s,1,Dial(SIP/${arg1}@broadsmart,60)<br>
<br>
Asterisk reports:<br>
[May 7 11:34:45] WARNING[10402]: chan_sip.c:17775
handle_response_invite: Received response: "Forbidden" from '"Mike A.
Leonetti" <a class="moz-txt-link-rfc2396E" href="mailto:sip:{broadsmart_user}@broadsmart.net"><sip:{broadsmart_user}@broadsmart.net></a>;tag=as6376d669'<br>
<br>
The people on the other end sent me this e-mail:<br>
<blockquote type="cite">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Your
registration looks all wrong.
The contact header appears incorrect on this invite. Please make it
read <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Contact:
<sip:{broadsmart_user}@{our_ip}:5060><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">This is
probably the userid or
auth user id.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">REGISTER
sip:{broadsmart_ip}
SIP/2.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Via:
SIP/2.0/UDP {our_ip}:5060;branch=z9hG4bK1e85dd83;rport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Max-Forwards:
70<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">From:
<sip:{broadsmart_user}@{broadsmart_ip}>;tag=as3bafb590<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">To:
<sip:{broadsmart_user}@{broadsmart_ip}><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Call-ID:
<a class="moz-txt-link-abbreviated" href="mailto:13545ba119fb96b707e90636720df33a@127.0.0.1">13545ba119fb96b707e90636720df33a@127.0.0.1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">CSeq: 102
REGISTER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">User-Agent:
Asterisk PBX 1.6.2.5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Expires: </span><span
style="color: red;">120<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Contact: </span><span
style="color: red;"><sip:s@{our_ip}><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Content-Length:
0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<span style="color: rgb(31, 73, 125);">Please change expires to what
we
are configured which is 3600 seconds.</span></blockquote>
I'm not sure what it is that may be causing the "Contact" to show up as
"s".<br>
<br>
Here are the associated configs.<br>
<br>
sip.conf<br>
[general]<br>
register => {broadsmart_user}:{broadsmart_password}@{broadsmart_ip}<br>
<br>
[broadsmart]<br>
host={broadsmart_ip}<br>
port=5060<br>
type=peer<br>
disallow=all<br>
allow=ulaw<br>
dtmfmode=rfc2833<br>
nat=no<br>
fromuser={broadsmart_user}<br>
secret={broadsmart_password}<br>
fromdomain=broadsmart.net<br>
quality=3600<br>
canreinvite=no<br>
<br>
Sorry for the long request. Admittedly I'm lost.<br>
<br>
<pre class="moz-signature" cols="72">--
Mike A. Leonetti
As warm as green tea
</pre>
</body>
</html>