<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><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@01C55633.3C225150" rel=File-List><!--[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]-->
<STYLE>@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; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
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]--></HEAD>
<BODY lang=EN-US style="tab-interval: 36.0pt" vLink=purple link=blue 
bgColor=#ffffff>
<DIV>Greg,</DIV>
<DIV>Basically, you can do four&nbsp;things (first two for dialing asterisk-ser, 
the next two for dialing ser-asterisk):</DIV>
<DIV>1.&nbsp;Accept INVITEs from a specific src ip (asterisk) and add if(src_ip 
!= asterisk_ip) around the INVITE authentication to avoid that part being 
triggered</DIV>
<DIV>2.&nbsp;Or you accomplish the same thing be adding asterisk to the trusted 
table and us if(!allow_trusted) instead. This will give you more control as you 
can filter on ruri as well.</DIV>
<DIV>3.&nbsp;You can create an account in asterisk and have asterisk register 
with SER like a regular user (who will be available in location for dialling 
into asterisk). This only makes sense if you have one main number for all users 
registered on asterisk (you don't need 1 or 2 if you do this)</DIV>
<DIV>4. Use some kind of routing, either through manual configuration 
(uri=~"some pattern", then forward to asterisk) or use the LCR (least cost 
routing) module to look up the ruris and forward to asterisk. This must be done 
in combination with 1 or 2.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope this helps.</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Mr Greg Plater<BR>To: 
serusers@lists.iptel.org<BR>Sent: Wednesday, May 11, 2005 06:10 AM<BR>Subject: 
[Serusers] Ser Accepting Calls From Asterisk<BR><BR>&gt; Hi<BR>&gt; <BR>&gt; I 
am using the onsip getting started doc with mediaproxy.<BR>&gt; <BR>&gt; Calls 
for registered users on SER work great but when I try to call a<BR>&gt; 
registered ser user from my asterisk box. <BR>&gt; I get a response in Asterisk 
Debug. Says&nbsp; “failed to auth on INVITE”<BR>&gt; <BR>&gt; If I wish to allow 
calls from my asterisk box to registered users on<BR>&gt; SER what do I change. 
<BR>&gt; <BR>&gt; <BR>&gt; IN SER.cfg I note these 2 snippets<BR>&gt; <BR>&gt; 
<BR>&gt; if (!www_authorize("","subscriber")) {<BR>&gt; 
www_challenge("","0");<BR>&gt; break;<BR>&gt; };<BR>&gt; <BR>&gt; <BR>&gt; 
<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; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>