Attached is the beginnings of a patch for this.... can someone point me
in the right direction of what else I need to do.. I know I need to add
the nua_respond_to_register still.. what I would like to do is just send
the event up to the event loop and be able to make a decision if I need
to send it as 407 or 200 I think that right now I am just autoresponding
with 200.
Mike
> -----Original Message-----
> From: Kai Vehmanen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 19, 2006 1:56 PM
> To: Michael Jerris
> Cc: sofia-sip-devel@lists.sourceforge.net; Pekka Pessi
> Subject: Re: [Sofia-sip-devel] NUTAG_IDENTITY and contact header
>
> Hi,
>
> forgot to reply this one.
>
> On Thu, 14 Sep 2006, Michael Jerris wrote:
>
> >> Of course, if someone has the time to try this out:
> >>
> >> - add a new "nua_i_register" event to NUA
> >> - add "nua_respond_to_register()" public method
> > This is exactly what we had been discussing doing, is there a good
> > example of something we could base this off of, or are the 2 steps
above
> > all there is to it?
>
> there are no examples available, and it's possible that there's more
to it
> than just adding the above two new items to the API. So some
> investigation/design work is needed.
>
> --
> under work: Sofia-SIP at http://sofia-sip.sf.net
{
hunk ./libsofia-sip-ua/nua/nua_common.c 288
-
+ case nua_i_register: return "nua_i_register";
hunk ./libsofia-sip-ua/nua/nua_session.c 2120
+/* ======================================================================== */
+/* REGISTER */
+
+int nua_stack_process_register(nua_t *nua,
+ nua_handle_t *nh,
+ nta_incoming_t *irq,
+ sip_t const *sip)
+{
+ nua_stack_event(nh->nh_nua, nh, nta_incoming_getrequest(irq),
+ nua_i_register, SIP_200_OK, TAG_END());
+
+ return 200; /* Respond automatically with 200 Ok */
+}
+
+
+
hunk ./libsofia-sip-ua/nua/nua_stack.c 1633
+
+ case sip_method_register:
+ return nua_stack_process_register(nua, nh, irq, sip);
hunk ./libsofia-sip-ua/nua/nua_stack.h 521
+nua_stack_process_request_t nua_stack_process_register;
hunk ./libsofia-sip-ua/nua/sofia-sip/nua.h 154
+ nua_i_register /**< Incoming register */
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel