<div>Hi David,</div>
<div>thank you for you answer, </div>
<div> </div>
<div><span class="gmail_quote">2008/11/6, <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ingdavidcespedes@cable.net.co" target="_blank">ingdavidcespedes@cable.net.co</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ingdavidcespedes@cable.net.co" target="_blank">ingdavidcespedes@cable.net.co</a>>:</span><span class="q">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi!<br><br>I had the same problem (My PC was responding everything it receives through the default gateway "eth0" ). Everybody say that it was an Asterisk bug, but it was a problem in the routing table. </blockquote>
<div> </div></span>
<div>Yes, I'm new to Openser but I know quite well Asterisk, and I don't think it is a bug or a misconfiguration . </div><span class="q"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Type route in a terminal and check if they are the way you are thinking. If not, add the correct route. Tell me if it solve your problem.</blockquote>
<div> </div></span>
<div>The route table is correct, but a strange thing happens since the SIP packet is sent from the correct nic, but un the UDP header of that packet I see as source the IP of the other nic (the one that received the orinal packet)</div>
<div> </div>
<div>I have to investigate a little more on this aspect anyway.</div>
<div><span class="e" id="q_11d720f6f0361376_5">
<div> </div>
<div>C.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">David Cespedes<br><br>----- Mensaje original -----<br>De: Cosimo Fadda <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cfadda.lists@gmail.com" target="_blank">cfadda.lists@gmail.com</a>><br>
Fecha: Miércoles, Noviembre 5, 2008 9:36 am<br>Asunto: [Kamailio-Users] Openser as Proxy and Asterisk as Registrar<br><br>> Hi everybody<br>> I'd like to implement this scenario:<br>><br>> ----------- ------------------- ----------<br>
> -----<br>> | GW/FW<br>> |<----LAN1---->|eth0|Openser|eth1|<----LAN2---->|eth0|asterisk| --<br>> >PSTN----------- ------------------- | -----<br>> ----------<br>> |_______________________________________________|<br>
><br>><br>><br>><br>><br>> Where:<br>> - Openser is reachable from the outside with a public IP<br>> forwarded to<br>> eth0 private address;<br>><br>> - Asterisk is connected to Openser using another separated LAN<br>
> - Openser acts as proxy (for requests coming from the outside) and<br>> Asterisk act as registrar and gateway.<br>><br>><br>> This is the description, now the questions:<br>> -since opneser has two different nics, how can configure it to<br>
> properly<br>> send register request to asterisk?<br>> This is what currently happens:<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68:5060/" target="_blank">192.168.40.68:5060</a>: is eth0 Openser Address<br>
> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.12.165/" target="_blank">192.168.12.165</a> is eth1 Openser Address<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.12.106/" target="_blank">192.168.12.106</a> is Asterisk address<br>
> 82.187.X.X is Openser public address<br>> Network 192.168.40.X is not reachable from net 192.168.12.X<br>><br>> <-- SIP read from <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68:5060/" target="_blank">192.168.40.68:5060</a>: REGISTER sip:<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.12.106/" target="_blank">192.168.12.106</a><br>
> SIP/2.0 // 12.106 is Asterisk address<br>> Via: SIP/2.0/UDP 82.187.X.X;branch=z9hG4bKfe0f.21364c47.0 Via:<br>> SIP/2.0/UDP<br>> 192.168.40.254:2660;rport=2265;received=82.187.Y.Ybranch=z9hG4bK532058BAC7C544E0961E038CC29B2106<br>
><br>> From: Cfadda <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip%3A225@82.187.90.68" target="_blank">sip:225@82.187.90.68</a>>;tag=3189722840<br>> To: Cfadda <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip%3A225@82.187.90.68" target="_blank">sip:225@82.187.90.68</a>><br>
> Contact: "Cfadda" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sip:225@192.168.40.254:2660/" target="_blank">sip:225@192.168.40.254:2660</a>><br>> Call-ID: 487DA353295C484FA58B2FB1464A2210@82.187.X.X<br>
> CSeq: 65140 REGISTER<br>> Expires: 1800<br>> Max-Forwards: 69<br>> User-Agent: X-PRO release 1105x<br>> Content-Length: 0<br>><br>><br>> Nov 5 10:37:28 VERBOSE[23848] logger.c: --- (12 headers 0 lines) --<br>
> -<br>> Nov 5 10:37:28 VERBOSE[23848] logger.c: Using latest REGISTER<br>> request<br>> as basis request<br>> Nov 5 10:37:28 VERBOSE[23848] logger.c: Sending to 82.187.X.X :<br>> 5060<br>> (non-NAT)<br>
> Nov 5 10:37:28 VERBOSE[23848] logger.c: Transmitting (NAT) to<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68:5060/" target="_blank">192.168.40.68:5060</a>:<br>> SIP/2.0 100 Trying<br>
> Via: SIP/2.0/UDP 82.187.X.X<br>> ;branch=z9hG4bKfe0f.21364c47.0;received=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68/" target="_blank">192.168.40.68</a><br>> Via: SIP/2.0/UDP<br>
> 192.168.40.254:2660;rport=2265;received=82.187.Y.Y;branch=z9hG4bK532058BAC7C544E0961E038CC29B2106<br>><br>> From: Cfadda <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip%3A225@82.187.90.68" target="_blank">sip:225@82.187.90.68</a>>;tag=3189722840<br>
> To: Cfadda <sip:225@82.187.X.X ><br>> Call-ID: 487DA353295C484FA58B2FB1464A2210@82.187.X.X<br>> CSeq: 65140 REGISTER<br>> User-Agent: Asterisk PBX<br>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
> Contact: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip%3A225@192.168.12.106" target="_blank">sip:225@192.168.12.106</a>><br>> Content-Length: 0<br>><br>><br>> ---<br>> Nov 5 10:37:28 VERBOSE[23848] logger.c: Transmitting (NAT) to<br>
> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68:5060/" target="_blank">192.168.40.68:5060</a>:<br>> SIP/2.0 401 Unauthorized<br>> Via: SIP/2.0/UDP 82.187.X.X<br>> ;branch=z9hG4bKfe0f.21364c47.0;received=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.40.68/" target="_blank">192.168.40.68</a><br>
> Via: SIP/2.0/UDP<br>> 192.168.40.254:2660;rport=2265;received=82.187.Y.Y;branch=z9hG4bK532058BAC7C544E0961E038CC29B2106<br>><br>> From: Cfadda <sip:225@82.187.X.X >;tag=3189722840<br>> To: Cfadda <sip:225@82.187.X.X >;tag=as4c420a53<br>
> Call-ID: 487DA353295C484FA58B2FB1464A2210@82.187.X.X<br>> CSeq: 65140 REGISTER<br>> User-Agent: Asterisk PBX<br>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>> WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",<br>
> nonce="05f14a3e"Content-Length: 0<br>><br>> So asterisk sends response to the wrong interface.<br>><br>> How can I solve this?<br>><br>> Thanks in advance,<br>><br>> C.<br>><br>> _______________________________________________<br>
> Users mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
><br><br></blockquote></span></div></div><br>