<!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@01C55C59.BEEE2510" 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: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;
        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.EmailStyle22
        {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;}
@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>
<DIV>Not much to say without the SIP messages giving the error. Looks like an
empty Contact header. Could be a faulty user client or something completely
different...</DIV>
<DIV>g-)</DIV>
<DIV>---- Original Message ----<BR>From: Mr Greg Plater<BR>To: 'Greger V.
Teigre'<BR>Sent: Thursday, May 19, 2005 02:01 AM<BR>Subject: RE: [Serusers] Ser
Accepting Calls From Asterisk<BR><BR>> Hi Greger<BR>> <BR>> I note I
have this content-length in the onreply route…<BR>> <BR>> Any
Ideas<BR>> <BR>> Cheers<BR>> Greg<BR>> <BR>> BTW thanks for your
help<BR>> <BR>> <BR>> <BR>> <BR>> From: Greger V. Teigre
[mailto:greger@teigre.com]<BR>> Sent: Thursday, 12 May 2005 6:04 PM<BR>>
To: Mr Greg Plater; serusers@lists.iptel.org<BR>> Subject: Re: [Serusers] Ser
Accepting Calls From Asterisk<BR>> <BR>> Good to hear, Greg. Looks
like a message without a Contact header<BR>> (or a non-conforming one).
Could you find the SIP message that gives<BR>> this message? BTW, just to be
sure: The onsip.org files have a test<BR>> for content-length in the onreply
route (Empty body). Do you have it<BR>> in your ser.cfg?
<BR>> g-)<BR>> <BR>> ---- 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>>> Hi Calls work from Asterisk to SER now.<BR>>> <BR>>> I
note in Debug output:<BR>>> <BR>>> 3(1814) contact_parser():
Empty body<BR>>> 3(1814) parse_contact(): Error while
parsing<BR>>> 3(1814) error: mediaproxy/getContactURI(): cannot
parse Contact<BR>>> header<BR>>> <BR>>> The call works fine,
how do I fix this message or do I leave whats<BR>>> working
alone.<BR>>> <BR>>> Cheers<BR>>> Greg<BR>>> <BR>>>
_____________________________________________________________________<BR>>>
Hi Greger<BR>>> <BR>>> Thank you for the information I have found it
just what I needed.<BR>>> <BR>>> Calls To SER from
Asterisk:<BR>>> <BR>>> To add to trusted in MYSQL I would use this
right:<BR>>> <BR>>> INSERT INTO trusted SET<BR>>>
src_ip='***.***.***.***',proto='any',from_pattern='sip:[0-9]*@***.***.***.***';<BR>>>
#replace *** with the asterisk ip address<BR>>> <BR>>> With this in
my ser.cfg:<BR>>> <BR>>> modparam("permissions", "db_url",
"mysql://ser:heslo@localhost/ser")<BR>>> modparam("permissions",
"db_mode", 1)<BR>>> modparam("permissions", "trusted_table",
"trusted")<BR>>> <BR>>> <BR>>> and for routing to Asterisk
>From SER:<BR>>> <BR>>> if (method == "INVITE" &&
(uri=~"^sip:0")){<BR>>> rewritehostport
("***.***.***.***:5060");<BR>>> t_relay();<BR>>>
break();<BR>>> };<BR>>> <BR>>> <BR>>> <BR>>> Or do
I just add:<BR>>> Asterisk to the trusted table and the following near
the<BR>>> <BR>>> <BR>>> if(!allow_trusted)<BR>>> if
(!proxy_authorize("","subscriber")) {<BR>>>
proxy_challenge("","0");<BR>>> break;<BR>>> } else if
(!check_from()) {<BR>>> sl_send_reply("403", "Use From=ID");<BR>>>
break;<BR>>> <BR>>> <BR>>> <BR>>> <BR>>> Thank you
very much for your help<BR>>> <BR>>> Cheers<BR>>>
Greg<BR>>> <BR>>> <BR>>> <BR>>> <BR>>>
<BR>>> From: Greger V. Teigre [mailto:greger@teigre.com]<BR>>> Sent:
Wednesday, 11 May 2005 6:20 PM<BR>>> To: Mr Greg Plater;
serusers@lists.iptel.org<BR>>> Subject: Re: [Serusers] Ser Accepting Calls From
Asterisk<BR>>> <BR>>> Greg,<BR>>> Basically, you can do four
things (first two for dialing<BR>>> asterisk-ser, the next two for dialing
ser-asterisk):<BR>>> 1. Accept INVITEs from a specific src ip (asterisk)
and add if(src_ip<BR>>> != asterisk_ip) around the INVITE authentication
to avoid that part<BR>>> being triggered<BR>>> 2. Or you accomplish
the same thing be adding asterisk to the trusted<BR>>> table and us
if(!allow_trusted) instead. This will give you more<BR>>> control as you
can filter on ruri as well.<BR>>> 3. You can create an account in asterisk
and have asterisk register<BR>>> with SER like a regular user (who will be
available in location for<BR>>> dialling into asterisk). This only makes
sense if you have one main<BR>>> number for all users registered on
asterisk (you don't need 1 or 2 if<BR>>> you do this)<BR>>> 4. Use
some kind of routing, either through manual configuration<BR>>>
(uri=~"some pattern", then forward to asterisk) or use the LCR
(least<BR>>> cost routing) module to look up the ruris and forward to
asterisk.<BR>>> This must be done in combination with 1 or 2.<BR>>>
<BR>>> Hope this helps.<BR>>> g-)<BR>>> <BR>>> ----
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>>>> Hi<BR>>>> <BR>>>> I am using the onsip
getting started doc with mediaproxy.<BR>>>> <BR>>>> Calls for
registered users on SER work great but when I try to call<BR>>>> a
registered ser user from my asterisk box.<BR>>>> I get a response in
Asterisk Debug. Says “failed to auth on INVITE”<BR>>>>
<BR>>>> If I wish to allow calls from my asterisk box to registered
users on<BR>>>> SER what do I change.<BR>>>> <BR>>>>
<BR>>>> IN SER.cfg I note these 2 snippets<BR>>>>
<BR>>>> <BR>>>> if (!www_authorize("","subscriber"))
{<BR>>>> www_challenge("","0");<BR>>>> break;<BR>>>>
};<BR>>>> <BR>>>> <BR>>>> <BR>>>> if
(!proxy_authorize("","subscriber")) {<BR>>>>
proxy_challenge("","0");<BR>>>> break;<BR>>>> } else if
(!check_from()) {<BR>>>> sl_send_reply("403", "Use
From=ID");<BR>>>> break;<BR>>>> };<BR>>>>
<BR>>>> <BR>>>> <BR>>>>
_______________________________________________<BR>>>> Serusers mailing
list<BR>>>> serusers@lists.iptel.org<BR>>>>
http://lists.iptel.org/mailman/listinfo/serusers<BR>>> <BR>>>
<BR>>> <BR>>>
_______________________________________________<BR>>> Serusers mailing
list<BR>>> serusers@lists.iptel.org<BR>>>
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>