Hi Vikas,

2011/3/18 Vikas Bhat <vikasbhat0...@gmail.com>:
> i am implenting early dialog in Sofia sip application using prack.
> the application is stateless using NTA modul.
>
> my application send invite with Supported header,receives 183 with RSeq.
> then the applcation tries to send the PRACK message as shown below but it
> fails
>
> orq=nta_outgoing_prack(leg,      //leg created before sending the invite
>    (nta_outgoing_t *)dialogue->orq,   // this is orq of INVITE message send
> earlier using nta_outgoing_tcreate
>    (nta_response_f *)sofia_sip_response,     //call back function for
> receiving response
>    (nta_outgoing_magic_t*)dialogue,                  //dialogue pointer that
> is created after sending initial INVITE
>    NULL,
>    NULL,
>    NTATAG_STATELESS(1),
>   SIPTAG_RACK(pRackHdr), //added rack header
>       TAG_END());
>
> Kindly guide me to implement Prack .

If you want to use nta_outgoing_prack(), you first have to create a
new instance of INVITE client transaction specific to the new early
dialog you want to PRACK with nta_outgoing_tagged().

When you receive an early response with Require: 100rel, you create
the new invite transaction with nta_outgoing_tagged(), and keep both
it and the original invite transaction around. Depending on your
application, you might run to a situation where the final 200 OK is
received from some other UA (or you might receive 100rel responses
from other UAs, too).

There is a disturbing @bug in nta_outgoing_tagged(), however, I
believe the leak is fixed, but the PRACK and early dialog code is not
very well tested. Please report if you run to any assert() failure.

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to