Actually if I disable record_route(), everything goes as expected. I think the problem is in the network translation of any side of the conections.

 Thank you.

--
Thomas Storino Britis

TCNet Inf. e Telecom LTDA
+55(35)3425-2556


--------- Mensagem Original --------
De: "Jon Mansey" <jon@tigrisnet.net>
Para: "Thomas Britis" <thomas@tcnet.com.br>
Cópia: serusers@lists.iptel.org
Assunto: Re: [Serusers] SER + NAT
Data: 25/07/05 20:37


It looks like you may not be record-routing to make sure the messages
always go via the server. I may be wrong.

jm
>
> Thomas Britis wrote:
>
>> Hi all,
>>
>> I have ser running, and everything is working fine.
>> I tried to use two softphones (x-lite) on the same network -
>> behind a firewall (NAT).
>> Both of the clients logs on ok and I can call one from other. The
>> problem comes when I try to hung up from the caller. After a few
>> seconds, the caller gets OK from SER BUT callee don't hang up. And SER
>> don't even terminate the connection (module acc).
>>
>> I'm using nathelper and rtpproxy.
>>
>> Here is my ser.cfg (only parts that matter):
>>
>> loadmodule "/tcnet/ser/lib/ser/modules/nathelper.so"
>>
>> modparam("registrar", "nat_flag", 6)
>>
>> # nathelper
>> modparam("nathelper", "natping_interval", 30)
>> modparam("nathelper", "ping_nated_only", 1)
>>
>> route{
>>
>> if (nat_uac_test("19")) {
>> if (method == "REGISTER" || ! search("^Record-Route:")) {
>> log (1, "src addressw different than via
>> header->NAT");
>> # Try NAT traversal, if the client is symmetrical
>> fix_nated_contact();
>>
>> if (method == "INVITE") {
>> sl_send_reply("", "Client is behind
>> NAT And Requested a call");
>> if (fix_nated_sdp("1"))
>> sl_send_reply("", "Client SDP Replaced");
>> };
>> force_rport();
>> append_hf("P-hint: fixed NAT contact for
>> requestrn");
>> # flag 5 indicates that incoming request is
>> from NATed client
>> setflag(5);
>> };
>> };
>> if (uri==myself) {
>> if (method=="REGISTER") {
>> if (isflagset(5)) {
>> # register from nated client.
>> setflag(6);
>> };
>> }
>>
>> Thank you all.
>
>
> _______________________________________________
> Serusers mailing list
> serusers@lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers






________________________________________________
TCNet WebMail http://webmail.tcnet.com.br