Hi,

I have a question about implementing call transfer using sofia-sip.

I noticed that "Notifications can be automatically generated actions when
nua_invite() is given referrer's nua handle in NUTAG_NOTIFY_REFER()." In API
doc, it also mentions that "It should also pass the event header object
along with the handle using  NUTAG_REFER_EVENT".

So I further looked at the API doc of NUTAG_REFER_EVENT. It says:

"The nua_i_refer event will contain a suitable SIP event header for the
notifications in the NUTAG_REFER_EVENT() tag. The application should store
the SIP event header and when it makes the referred call, it should pass it
back to the stack again using the NUTAG_REFER_EVENT() tag."

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:

sip_event_t *event = sip_event_make(su_home, "refer");
nua_invite(op_cn->op_handle,
                     NUTAG_NOTIFY_REFER(nh), NUTAG_REFER_EVENT(event),
TAG_END());

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.

Therefore, I would like to ask that is it by design? Or I made a mistake for
the event header for the NUTAG_REFER_EVENT()?

-- 
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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to