<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<META content="Microsoft Word 11" name=Originator><LINK 
href="cid:filelist.xml@01C556DD.14E8A800" rel=File-List><LINK 
href="cid:editdata.mso" rel=Edit-Time-Data><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseWord2002TableStyleRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]--><!--[if !mso]>
<STYLE>
st1\:*{behavior:url(#default#ieooui) }
</STYLE>
<![endif]-->
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.EmailStyle20
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: 36.0pt" vLink=purple link=blue 
bgColor=white><![if !supportLineBreakNewLine]><![endif]>
<DIV>Good to hear, Greg.&nbsp; Looks like a message without a Contact header (or 
a non-conforming one).&nbsp; Could you find the SIP message that gives this 
message? BTW, just to be sure: The onsip.org files have a test for 
content-length in the onreply route (Empty body). Do you have it in your 
ser.cfg?</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Mr Greg Plater<BR>To: 
serusers@lists.iptel.org<BR>Sent: Thursday, May 12, 2005 02:26 AM<BR>Subject: 
[Serusers] Ser Accepting Calls From Asterisk<BR><BR>&gt; Hi Calls work from 
Asterisk to SER now.<BR>&gt; <BR>&gt; I note in Debug output:<BR>&gt; 
<BR>&gt;&nbsp; 3(1814) contact_parser(): Empty body<BR>&gt;&nbsp; 3(1814) 
parse_contact(): Error while parsing<BR>&gt;&nbsp; 3(1814) error: 
mediaproxy/getContactURI(): cannot parse Contact<BR>&gt; header <BR>&gt; 
<BR>&gt; The call works fine, how do I fix this message or do I leave 
whats<BR>&gt; working alone. <BR>&gt; <BR>&gt; Cheers<BR>&gt; Greg<BR>&gt; 
<BR>&gt; 
_____________________________________________________________________<BR>&gt; Hi 
Greger<BR>&gt; <BR>&gt; Thank you for the information I have found it just what 
I needed.<BR>&gt; <BR>&gt; Calls To SER from Asterisk:<BR>&gt; <BR>&gt; To add 
to trusted in MYSQL I would use this right:<BR>&gt; <BR>&gt; INSERT INTO trusted 
SET<BR>&gt; 
src_ip='***.***.***.***',proto='any',from_pattern='sip:[0-9]*@***.***.***.***';<BR>&gt; 
#replace *** with the asterisk ip address&nbsp; <BR>&gt; <BR>&gt; With this in 
my ser.cfg:<BR>&gt; <BR>&gt; modparam("permissions", "db_url", 
"mysql://ser:heslo@localhost/ser")<BR>&gt; modparam("permissions", "db_mode", 
1)<BR>&gt; modparam("permissions", "trusted_table", "trusted")<BR>&gt; <BR>&gt; 
<BR>&gt; and for routing to Asterisk From SER:<BR>&gt; <BR>&gt; if (method == 
"INVITE" &amp;&amp; (uri=~"^sip:0")){<BR>&gt; rewritehostport 
("***.***.***.***:5060");<BR>&gt; t_relay();<BR>&gt; break();<BR>&gt; };<BR>&gt; 
<BR>&gt; <BR>&gt; <BR>&gt; Or do I just add:<BR>&gt; Asterisk to the trusted 
table and the following near the<BR>&gt; <BR>&gt; <BR>&gt; 
if(!allow_trusted)<BR>&gt; if (!proxy_authorize("","subscriber")) {<BR>&gt; 
proxy_challenge("","0");<BR>&gt; break;<BR>&gt; } else if (!check_from()) 
{<BR>&gt; sl_send_reply("403", "Use From=ID");<BR>&gt; break;<BR>&gt; <BR>&gt; 
<BR>&gt; <BR>&gt; <BR>&gt; Thank you very much for your help<BR>&gt; <BR>&gt; 
Cheers<BR>&gt; Greg<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; From: 
Greger V. Teigre [mailto:greger@teigre.com]<BR>&gt; Sent: Wednesday, 11 May 2005 
6:20 PM<BR>&gt; To: Mr Greg Plater; serusers@lists.iptel.org<BR>&gt; Subject: Re: 
[Serusers] Ser Accepting Calls From Asterisk<BR>&gt; <BR>&gt; Greg,<BR>&gt; 
Basically, you can do four things (first two for dialing<BR>&gt; asterisk-ser, 
the next two for dialing ser-asterisk): <BR>&gt; 1. Accept INVITEs from a 
specific src ip (asterisk) and add if(src_ip<BR>&gt; != asterisk_ip) around the 
INVITE authentication to avoid that part<BR>&gt; being triggered&nbsp; <BR>&gt; 
2. Or you accomplish the same thing be adding asterisk to the trusted<BR>&gt; 
table and us if(!allow_trusted) instead. This will give you more<BR>&gt; control 
as you can filter on ruri as well.&nbsp; <BR>&gt; 3. You can create an account 
in asterisk and have asterisk register<BR>&gt; with SER like a regular user (who 
will be available in location for<BR>&gt; dialling into asterisk). This only 
makes sense if you have one main<BR>&gt; number for all users registered on 
asterisk (you don't need 1 or 2 if<BR>&gt; you do this)&nbsp;&nbsp;&nbsp; 
<BR>&gt; 4. Use some kind of routing, either through manual 
configuration<BR>&gt; (uri=~"some pattern", then forward to asterisk) or use the 
LCR (least<BR>&gt; cost routing) module to look up the ruris and forward to 
asterisk.<BR>&gt; This must be done in combination with 1 or 2.&nbsp;&nbsp; 
<BR>&gt; <BR>&gt; Hope this helps.<BR>&gt; g-)<BR>&gt; <BR>&gt; ---- Original 
Message ----<BR>&gt; From: Mr Greg Plater<BR>&gt; To: serusers@lists.iptel.org<BR>&gt; 
Sent: Wednesday, May 11, 2005 06:10 AM<BR>&gt; Subject: [Serusers] Ser Accepting 
Calls From Asterisk<BR>&gt; <BR>&gt;&gt; Hi<BR>&gt;&gt; <BR>&gt;&gt; I am using 
the onsip getting started doc with mediaproxy.<BR>&gt;&gt; <BR>&gt;&gt; Calls 
for registered users on SER work great but when I try to call a<BR>&gt;&gt; 
registered ser user from my asterisk box.<BR>&gt;&gt; I get a response in 
Asterisk Debug. Says&nbsp; “failed to auth on INVITE”<BR>&gt;&gt; <BR>&gt;&gt; 
If I wish to allow calls from my asterisk box to registered users on<BR>&gt;&gt; 
SER what do I change.<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; IN SER.cfg I note 
these 2 snippets<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; if 
(!www_authorize("","subscriber")) {<BR>&gt;&gt; 
www_challenge("","0");<BR>&gt;&gt; break;<BR>&gt;&gt; };<BR>&gt;&gt; 
<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; if (!proxy_authorize("","subscriber")) 
{<BR>&gt;&gt; proxy_challenge("","0");<BR>&gt;&gt; break;<BR>&gt;&gt; } else if 
(!check_from()) {<BR>&gt;&gt; sl_send_reply("403", "Use From=ID");<BR>&gt;&gt; 
break;<BR>&gt;&gt; };<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Serusers mailing 
list<BR>&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt; <BR>&gt; <BR>&gt; 
<BR>&gt; _______________________________________________<BR>&gt; Serusers 
mailing list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>