2009/8/26 Bernhard Suttner <sutt...@comdasys.com>:
> attached the network trace. You have to decode the first paket as SIP in 
> Wireshark (destination ip).

Contact is used when the callee send caller a BYE request (or OPTIONS
or UPDATE or INFO etc...).

The RFC 3261 (section 18.2.1) specifies how to send the response:
unless you happen to have maddr parameter, the response is sent to the
source address, which is 10.251.0.1. If you can include a maddr
parameter in the incoming INVITE Sofia should send the response to the
address specified in maddr parameter. So you could have request like
this:

INVITE sip:757-2...@10.251.0.101:12004 SIP/2.0
Via: SIP/2.0/UDP 10.27.0.60:5060;branch=z9hG4bK3745033304-3162;maddr=10.27.0.60
From: "Aman DECT" <sip:7074...@10.23.0.203:5060>;tag=shorUA_3745033458-3162
To: 757-2026 <sip:757-2...@10.23.0.203>
Contact: "Aman DECT" <sip:7074...@10.27.0.60:5060>
...

and Sofia would respond like this (to 10.27.0.60):

SIP/2.0 100 Trying
Via: SIP/2.0/UDP
10.27.0.60:5060;branch=z9hG4bK3745033304-3162;maddr=10.27.0.60;received=10.251.b0.1
From: "Aman DECT" <sip:7074...@10.23.0.203:5060>;tag=shorUA_3745033458-3162
To: 757-2026 <sip:757-2...@10.23.0.203>
...



--Pekka

> -----Ursprüngliche Nachricht-----
> Von: Michael Jerris [mailto:m...@jerris.com]
> Gesendet: Mittwoch, 26. August 2009 16:53
> An: sofia-sip-devel
> Betreff: Re: [Sofia-sip-devel] Wrong answer from sofia-sip
>
> Can you paste the actual sip trace here.
>
> Mike
>
> On Aug 26, 2009, at 6:45 AM, Bernhard Suttner wrote:
>
>> Hi,
>>
>> I have the following problem (using sofia sip 1.12.9):
>>
>> A (non sofia-sip) sends INVITE to B (user agent with sofia-sip)
>> B send back a Trying
>> B send Ringing and then a 200 OK
>>
>> Most important data for the INVITE from A:
>> Src IP: 10.251.0.1
>> Dest IP: 10.251.0.101
>> Contact: 10.27.0.60
>>
>> The Trying generated from sofia-sip has the data:
>> Src IP: 10.251.0.101
>> Dest IP: 10.251.0.1
>> VIA: SIP/2.0/UDP 10.27.0.60;branch=ydfasfasfsf;received=10.251.0.1
>>
>> The problem is, that B use the IP 10.251.0.1 as destination and not
>> the
>> contact of the INVITE (that would be 10.27.0.60). Also in the RINGING
>> and 200 OK sofia-sip will use the Src-IP and not the Contact addr.
>>
>> Can I somehow configure sofia-sip in that way, that it will use the
>> CONTACT addr instead of the Src IP?
>>
>> Thanks in advance!
>>
>> Best regards,
>> Bernhard Suttner
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and
>> focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Sofia-sip-devel mailing list
>> Sofia-sip-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Sofia-sip-devel mailing list
> Sofia-sip-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Sofia-sip-devel mailing list
> Sofia-sip-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
>
>



-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to