<html 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" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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]-->
<title>SER as proxy in front of Asterisk</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Tom2, li.Tom2, div.Tom2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:Arial;
        font-weight:bold;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1654528665;
        mso-list-template-ids:2084734212;}
@list l0:level1
        {mso-level-number-format:roman-upper;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-text:"%1\.%2\.";
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        margin-left:39.6pt;
        text-indent:-21.6pt;}
@list l0:level3
        {mso-level-text:"%1\.%2\.%3\.";
        mso-level-tab-stop:126.0pt;
        mso-level-number-position:left;
        margin-left:61.2pt;
        text-indent:-25.2pt;}
@list l0:level4
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:162.0pt;
        mso-level-number-position:left;
        margin-left:86.4pt;
        text-indent:-32.4pt;}
@list l0:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.";
        mso-level-tab-stop:198.0pt;
        mso-level-number-position:left;
        margin-left:111.6pt;
        text-indent:-39.6pt;}
@list l0:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.";
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        margin-left:136.8pt;
        text-indent:-46.8pt;}
@list l0:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.";
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        margin-left:162.0pt;
        text-indent:-54.0pt;}
@list l0:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.";
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        margin-left:187.2pt;
        text-indent:-61.2pt;}
@list l0:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\.";
        mso-level-tab-stop:378.0pt;
        mso-level-number-position:left;
        margin-left:216.0pt;
        text-indent:-72.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
</head>
<body lang=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I have made more tries
and now, all my phones don’t work …<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>The firewall opens a
connection to REGISTER phone but after a while the OPTION message from the
Asterisk will be DROP by the FW …<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>You can find a diagram of
the exchange here: <a href="http://deillon.eu/tmp/exchange_sip.png">http://deillon.eu/tmp/exchange_sip.png</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>A list of all exchange: <a
href="http://deillon.eu/tmp/ip_sip.txt">http://deillon.eu/tmp/ip_sip.txt</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>And all sip message: <a
href="http://deillon.eu/tmp/message.txt">http://deillon.eu/tmp/message.txt</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks a lot for your
help,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Thomas<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De :</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@openser.org [mailto:users-bounces@openser.org] <b><span
style='font-weight:bold'>De la part de</span></b> <st1:PersonName w:st="on">Thomas
Deillon</st1:PersonName><br>
<b><span style='font-weight:bold'>Envoyé :</span></b> mardi, 2. janvier
2007 11:44<br>
<b><span style='font-weight:bold'>À :</span></b> users@openser.org<br>
<b><span style='font-weight:bold'>Objet :</span></b> [Users] SER as proxy
in front of Asterisk</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Hi all,<br>
<br>
I wish you first a happy new year !!<br>
One again, I ask you some help. Thanks a lot for your patience and your answers
that really helped me.<br>
<br>
So, I want to put a SER in front of one Asterisk for the moment (more after).<br>
All Servers have public IP address and so, I don't care about the RTP/SDP
messages.<br>
All phones are behind NAT somewhere in Switerland :)<br>
<br>
<br>
I have the configuration below in openser:<br>
<br>
<br>
modparam("dispatcher", "list_file",
"/etc/openser/dispatcher.list")<br>
#modparam("dispatcher", "force_dst", 1)<br>
modparam("dispatcher", "flags", 2)<br>
<br>
modparam("usrloc", "db_mode", 0)<br>
#modparam("rr", "enable_full_lr", 1)<br>
<br>
route{<br>
<br>
<br>
xlog("L_ALERT",
"[$rm] from [$fu] to [$tu]\n");<br>
<br>
if
(!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
};<br>
<br>
if (msg:len >= 2048 ) {<br>
sl_send_reply("513", "Message too big");<br>
exit;<br>
};<br>
<br>
# if (search("User-Agent:.*Thomson.*"))
{<br>
# };<br>
<br>
<br>
if ((src_ip==212.xxx.xxx.152) ||
(src_ip==212.xxx.xxx.153)) {<br>
if(method=="OPTIONS") {<br>
};<br>
avp_pushto("$ru","$tu");<br>
forward();<br>
<br>
}else {<br>
fix_nated_contact();<br>
force_rport();<br>
if(method=="REGISTER"){<br>
ds_select_dst("4", "0");<br>
t_relay();<br>
}<br>
else {<br>
ds_select_dst("0", "4");<br>
forward();<br>
}<br>
}<br>
}<br>
<br>
<br>
And in my dispatcher.list I have:<br>
<br>
0 sip:212.xxx.xxx.153:5060<br>
4 sip:212.xxx.xxx.153:5060<br>
<br>
<br>
<br>
With this configuration, a snom phone, a X-lite phone and a Cisco phone seams
to work ....<br>
But with the Thomson ST2030, it doesn't work.<br>
In fact, the Thomson REGISTER on asterisk, the Asterisk send a OPTION message
to the FW IP adress and the right port where the thomson is and then, after a
while, the FW close the connection. The thomson phone is so
"UNREACHABLE" on asterisk status and nobody can call it.<br>
I'm not sure that my configuration is ok in ser but I think that is a problem
with the Thomson2030. Do you had the same kind of problem or do you understand
the problem here ?<br>
<br>
<br>
Thanks for your help,<br>
<br>
<st1:PersonName w:st="on">Thomas Deillon</st1:PersonName></span></font><o:p></o:p></p>
</div>
</body>
</html>