2007/4/26, Arsen Chaloyan <[EMAIL PROTECTED]>:
> I'm trying to construct application specific response to incoming OPTIONS
> request, but cannot response even with generic nua_respond.
> Below is the related code usage.
>
> nua_set_params(sofia_agent->nua,
> NUTAG_AUTOANSWER(0),
> NUTAG_APPL_METHOD("OPTIONS"),
> TAG_END());
>
> case nua_i_options:
> nua_respond(nh, SIP_200_OK, TAG_END());
Add NUTAG_WITH_CURRENT(nua) to the tags, otherwise nua pretends that
does not know which request you are responding:
nua_respond(nh, SIP_200_OK,
NUTAG_WITH_CURRENNT(nua), TAG_END());
I believe it is now mentioned in the documentation, too (if Kai got
our documentation building script work around Nokia proxies):
http://sofia-sip.sourceforge.net/refdocs/nua/nua_8h.html#8877bcd956de2cfd690afbc7420ff581
--
Pekka.Pessi mail at nokia.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel