@ -120,6 +120,8 @@ struct pjsip_tpselector;
AST_VECTOR ( ast_sip_service_route_vector , char * ) ;
static const pj_str_t AST_PJ_STR_EMPTY = { " " , 0 } ;
/*!
* \ brief Structure for SIP transport information
*/
@ -3757,6 +3759,79 @@ void ast_sip_transport_state_register(struct ast_sip_tpmgr_state_callback *eleme
*/
void ast_sip_transport_state_unregister ( struct ast_sip_tpmgr_state_callback * element ) ;
/*!
* \ brief Check whether a pjsip_uri is SIP / SIPS or not
* \ since 16.28 .0
*
* \ param uri The pjsip_uri to check
*
* \ retval 1 if true
* \ retval 0 if false
*/
int ast_sip_is_uri_sip_sips ( pjsip_uri * uri ) ;
/*!
* \ brief Check whether a pjsip_uri is allowed or not
* \ since 16.28 .0
*
* \ param uri The pjsip_uri to check
*
* \ retval 1 if allowed
* \ retval 0 if not allowed
*/
int ast_sip_is_allowed_uri ( pjsip_uri * uri ) ;
/*!
* \ brief Get the user portion of the pjsip_uri
* \ since 16.28 .0
*
* \ param uri The pjsip_uri to get the user from
*
* \ note This function will check what kind of URI it receives and return
* the user based off of that
*
* \ return User string or empty string if not present
*/
const pj_str_t * ast_sip_pjsip_uri_get_username ( pjsip_uri * uri ) ;
/*!
* \ brief Get the host portion of the pjsip_uri
* \ since 16.28 .0
*
* \ param uri The pjsip_uri to get the host from
*
* \ note This function will check what kind of URI it receives and return
* the host based off of that
*
* \ return Host string or empty string if not present
*/
const pj_str_t * ast_sip_pjsip_uri_get_hostname ( pjsip_uri * uri ) ;
/*!
* \ brief Find an ' other ' SIP / SIPS URI parameter by name
* \ since 16.28 .0
*
* A convenience function to find a named parameter from a SIP / SIPS URI . This
* function will not find the following standard SIP / SIPS URI parameters which
* are stored separately by PJSIP :
*
* \ li ` user `
* \ li ` method `
* \ li ` transport `
* \ li ` ttl `
* \ li ` lr `
* \ li ` maddr `
*
* \ param uri The pjsip_uri to get the parameter from
* \ param param_str The name of the parameter to find
*
* \ note This function will check what kind of URI it receives and return
* the parameter based off of that
*
* \ return Find parameter or NULL if not present
*/
struct pjsip_param * ast_sip_pjsip_uri_get_other_param ( pjsip_uri * uri , const pj_str_t * param_str ) ;
/*!
* \ brief Convert name to SIP response code
*