Hi,

Does nobody has an idea? 

BR,
Bernhard

-----Ursprüngliche Nachricht-----
Von: Bernhard Suttner [mailto:sutt...@comdasys.com] 
Gesendet: Dienstag, 8. September 2009 16:47
An: sofia-sip-devel
Betreff: [Sofia-sip-devel] Subscribe Answer with wrong tags

Hi,

we are using sofia-sip version 1.12.9 as a SIP Server and we receive the
following SUBSCRIBE:

SUBSCRIBE sip:3...@82.135.113.119 SIP/2.0
Route: <sip:82.135.113.119:5062;lr>
From: <sip:8...@82.135.113.119>;tag=15acae96-3
To: <sip:3...@82.135.113.119>
Call-ID: 3258637...@192.168.11.28
CSeq: 20 SUBSCRIBE
Contact: <sip:8...@192.168.11.28:5082>
Max-Forwards: 70
Event: presence
Accept: application/pidf+xml
Content-Length: 0

Then we will answer with a Accepted with:

        nua_respond(nh, SIP_202_ACCEPTED,
                    NUTAG_WITH_THIS(nua),
                    SIPTAG_SUBSCRIPTION_STATE_STR(state_str),
                    SIPTAG_FROM(sip->sip_to),
                    SIPTAG_TO(sip->sip_from),
                    SIPTAG_CONTACT_STR(contact_str),
                    TAG_END());

Sofia-SIP does generate the answer with:

SIP/2.0 202 Accepted
From: <sip:3...@82.135.113.119>
To: <sip:8...@82.135.113.119>;tag=15acae96-3
Call-ID: 3258637...@192.168.11.28
CSeq: 20 SUBSCRIBE
Contact: "user" <sip:8...@10.42.1.41>
Expires: 3600
User-Agent: ComdasysB2BUA5.0.1
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: precondition, timer, pref
Allow-Events: talk, presence, presence.winfo, message-summary
Subscription-State: active;expires=3600
Content-Length: 0

I see that there are 2 problems:
1. why is the From Tag not set?
2. why is the To Tag set to the From-Tag which we receive from the
Subscribe?

Later, if the server send a NOTIFY for this subscription, sofia-sip does
add the FROM-Tag but I think the tags are still interchanged. 

Does somebody has an idea how to fix that issue? 

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

Reply via email to