Hi,

Does nobody has an idea? 

BR,
Bernhard

-----Ursprüngliche Nachricht-----
Von: Bernhard Suttner [mailto:[email protected]] 
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:[email protected] SIP/2.0
Route: <sip:82.135.113.119:5062;lr>
From: <sip:[email protected]>;tag=15acae96-3
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 20 SUBSCRIBE
Contact: <sip:[email protected]: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:[email protected]>
To: <sip:[email protected]>;tag=15acae96-3
Call-ID: [email protected]
CSeq: 20 SUBSCRIBE
Contact: "user" <sip:[email protected]>
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to