Hi David, thank you for you answer, 2008/11/6, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi! > > 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.
Yes, I'm new to Openser but I know quite well Asterisk, and I don't think it is a bug or a misconfiguration . 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. 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) I have to investigate a little more on this aspect anyway. C. David Cespedes > > ----- Mensaje original ----- > De: Cosimo Fadda <[EMAIL PROTECTED]> > Fecha: MiƩrcoles, Noviembre 5, 2008 9:36 am > Asunto: [Kamailio-Users] Openser as Proxy and Asterisk as Registrar > > > Hi everybody > > I'd like to implement this scenario: > > > > ----------- ------------------- ---------- > > ----- > > | GW/FW > > |<----LAN1---->|eth0|Openser|eth1|<----LAN2---->|eth0|asterisk| -- > > >PSTN----------- ------------------- | ----- > > ---------- > > |_______________________________________________| > > > > > > > > > > > > Where: > > - Openser is reachable from the outside with a public IP > > forwarded to > > eth0 private address; > > > > - Asterisk is connected to Openser using another separated LAN > > - Openser acts as proxy (for requests coming from the outside) and > > Asterisk act as registrar and gateway. > > > > > > This is the description, now the questions: > > -since opneser has two different nics, how can configure it to > > properly > > send register request to asterisk? > > This is what currently happens: > > 192.168.40.68:5060: is eth0 Openser Address > > 192.168.12.165 is eth1 Openser Address > > 192.168.12.106 is Asterisk address > > 82.187.X.X is Openser public address > > Network 192.168.40.X is not reachable from net 192.168.12.X > > > > <-- SIP read from 192.168.40.68:5060: REGISTER sip:192.168.12.106 > > SIP/2.0 // 12.106 is Asterisk address > > Via: SIP/2.0/UDP 82.187.X.X;branch=z9hG4bKfe0f.21364c47.0 Via: > > SIP/2.0/UDP > > 192.168.40.254:2660 > ;rport=2265;received=82.187.Y.Ybranch=z9hG4bK532058BAC7C544E0961E038CC29B2106 > > > > From: Cfadda <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]> > >;tag=3189722840 > > To: Cfadda <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>> > > Contact: "Cfadda" <sip:[EMAIL PROTECTED]:2660> > > Call-ID: [EMAIL PROTECTED] > > CSeq: 65140 REGISTER > > Expires: 1800 > > Max-Forwards: 69 > > User-Agent: X-PRO release 1105x > > Content-Length: 0 > > > > > > Nov 5 10:37:28 VERBOSE[23848] logger.c: --- (12 headers 0 lines) -- > > - > > Nov 5 10:37:28 VERBOSE[23848] logger.c: Using latest REGISTER > > request > > as basis request > > Nov 5 10:37:28 VERBOSE[23848] logger.c: Sending to 82.187.X.X : > > 5060 > > (non-NAT) > > Nov 5 10:37:28 VERBOSE[23848] logger.c: Transmitting (NAT) to > > 192.168.40.68:5060: > > SIP/2.0 100 Trying > > Via: SIP/2.0/UDP 82.187.X.X > > ;branch=z9hG4bKfe0f.21364c47.0;received=192.168.40.68 > > Via: SIP/2.0/UDP > > 192.168.40.254:2660 > ;rport=2265;received=82.187.Y.Y;branch=z9hG4bK532058BAC7C544E0961E038CC29B2106 > > > > From: Cfadda <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]> > >;tag=3189722840 > > To: Cfadda <sip:[EMAIL PROTECTED] > > > Call-ID: [EMAIL PROTECTED] > > CSeq: 65140 REGISTER > > User-Agent: Asterisk PBX > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY > > Contact: <sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>> > > Content-Length: 0 > > > > > > --- > > Nov 5 10:37:28 VERBOSE[23848] logger.c: Transmitting (NAT) to > > 192.168.40.68:5060: > > SIP/2.0 401 Unauthorized > > Via: SIP/2.0/UDP 82.187.X.X > > ;branch=z9hG4bKfe0f.21364c47.0;received=192.168.40.68 > > Via: SIP/2.0/UDP > > 192.168.40.254:2660 > ;rport=2265;received=82.187.Y.Y;branch=z9hG4bK532058BAC7C544E0961E038CC29B2106 > > > > From: Cfadda <sip:[EMAIL PROTECTED] >;tag=3189722840 > > To: Cfadda <sip:[EMAIL PROTECTED] >;tag=as4c420a53 > > Call-ID: [EMAIL PROTECTED] > > CSeq: 65140 REGISTER > > User-Agent: Asterisk PBX > > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY > > WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", > > nonce="05f14a3e"Content-Length: 0 > > > > So asterisk sends response to the wrong interface. > > > > How can I solve this? > > > > Thanks in advance, > > > > C. > > > > _______________________________________________ > > Users mailing list > > [email protected] > > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > > > >
_______________________________________________ Users mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
