<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>SER as proxy in front of Asterisk</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>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>
Thomas Deillon<BR>
</FONT>
</P>
</BODY>
</HTML>