[asterisk-commits] mmichelson: branch mmichelson/outbound_auth r382363 - /team/mmichelson/outbou...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Mar 2 11:10:43 CST 2013
Author: mmichelson
Date: Sat Mar 2 11:10:40 2013
New Revision: 382363
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382363
Log:
Add comments explaining how outbound auth will be accomplished for out-of-dialog requests.
Once endpoint location code has been merged, this function can actually be written.
Modified:
team/mmichelson/outbound_auth/res/res_sip.c
Modified: team/mmichelson/outbound_auth/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/outbound_auth/res/res_sip.c?view=diff&rev=382363&r1=382362&r2=382363
==============================================================================
--- team/mmichelson/outbound_auth/res/res_sip.c (original)
+++ team/mmichelson/outbound_auth/res/res_sip.c Sat Mar 2 11:10:40 2013
@@ -250,14 +250,18 @@
{
/*XXX Stub
*
- * We need to get the destination from the endpoint and then call
- * pjsip_endpt_create_request to create the request.
+ * We need to get the destinations from the endpoint and then call
+ * pjsip_endpt_create_request to create requests to each destination.
*
- * We can then add the body as necessary and transmit with
- * pjsip_endpt_send_request_stateless(). The end.
+ * Once we create the outgoing requests, we can create a pjsip_auth_clt_sess
+ * for each one, and call pjsip_auth_clt_init_req() on each created request.
+ * We can then add the body as necessary and transmit with pjsip_endpt_send_request().
+ * We can pass the pjsip_auth_clt_sess we created as the "token" parameter and
+ * set a callback that will set auth parameters appropriately if we receive
+ * a 401 or 407 response.
*
- * It's hard to really get started though without an ast_sip_endpoint
- * structure to work with
+ * Once endpoint location work is committed, we can actually write this
+ * function.
*/
return 0;
}
More information about the asterisk-commits
mailing list