Hi Pekka,
Thanks for your reply very much!
My problem is solved. The only reason that I did not get NOTIFY 200 OK is
that I did not copy the sip_event_t header from NUTAG_REFER_EVENT() in
nua_i_refer tags.
After I retrieve the header using tl_gets as follow:
sip_event_t const *event = NULL;
tl_gets(tags, NUTAG_REFER_EVENT_REF(event), TAG_END());
Then pass event to nua_invite using NUTAG_REFER_EVENT(event), everything
works alright.
Additionally, I also checked the SIP messages. In NOTIFY, the event header
is like:
Event: refer;id=91657248
So the previous problem is that when I constructed a sip_event_t by myself,
I did not include the id. Hope this experience would be helpful to someone
else.
Thanks again!
BR
Tan Miaoqing
On Nov 16, 2007 2:41 PM, Pekka Pessi <[EMAIL PROTECTED]> wrote:
> 2007/11/8, Tan Miaoqing <[EMAIL PROTECTED]>:
> > However, I don't really get its meaning. Thus, I use sip_event_make
> method
> > to construct a event header instead, and then pass it to nua_invite as
> > follows:
>
> There should be a NUTAG_REFER_EVENT() in nua_i_refer tags, the
> intention is that you should copy it to the nua_invite() tags.
>
> ...
> > However, as it works out, my referrer only gets NOTIFY of 100 trying and
> 180
> > ringing. Though the referee successfully establishes a call session with
> > refer target, my referrer never gets the NOTIFY of 200 OK.
>
> I wonder what kind of response the NOTIFY containing 180 ringing gets?
> 200 OK? What kind of Subscription-State header is in the NOTIFY
> requests that you send?
>
>
> --
> Pekka.Pessi mail at nokia.com
>
--
Best Regards
Tan Miaoqing
Master's Programme in Mobile Computing - Services and Security
Helsinki University of Technology
http://users.tkk.fi/~mitan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel