ast_sip_outbound_authenticator Struct Reference

an interchangeable way of responding to authentication challenges More...

#include <res_pjsip.h>


Data Fields

int(* create_request_with_auth )(const struct ast_sip_auth_vector *auths, struct pjsip_rx_data *challenge, struct pjsip_transaction *tsx, struct pjsip_tx_data **new_request)
 Create a new request with authentication credentials.


Detailed Description

an interchangeable way of responding to authentication challenges

An outbound authenticator takes incoming challenges and formulates a new SIP request with credentials.

Definition at line 687 of file res_pjsip.h.


Field Documentation

int(* create_request_with_auth)(const struct ast_sip_auth_vector *auths, struct pjsip_rx_data *challenge, struct pjsip_transaction *tsx, struct pjsip_tx_data **new_request)

Create a new request with authentication credentials.

Parameters:
auths A vector of IDs of auth sorcery objects
challenge The SIP response with authentication challenge(s)
tsx The transaction in which the challenge was received
new_request The new SIP request with challenge response(s)
Return values:
0 Successfully created new request
-1 Failed to create a new request

Referenced by ast_sip_create_request_with_auth().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:35:36 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6