@ -3243,6 +3243,11 @@ static struct ast_custom_function chan_pjsip_parse_uri_function = {
. read = pjsip_acf_parse_uri_read ,
. read = pjsip_acf_parse_uri_read ,
} ;
} ;
static struct ast_custom_function chan_pjsip_parse_uri_from_function = {
. name = " PJSIP_PARSE_URI_FROM " ,
. read = pjsip_acf_parse_uri_read ,
} ;
static struct ast_custom_function media_offer_function = {
static struct ast_custom_function media_offer_function = {
. name = " PJSIP_MEDIA_OFFER " ,
. name = " PJSIP_MEDIA_OFFER " ,
. read = pjsip_acf_media_offer_read ,
. read = pjsip_acf_media_offer_read ,
@ -3305,6 +3310,11 @@ static int load_module(void)
goto end ;
goto end ;
}
}
if ( ast_custom_function_register ( & chan_pjsip_parse_uri_from_function ) ) {
ast_log ( LOG_ERROR , " Unable to register PJSIP_PARSE_URI_FROM dialplan function \n " ) ;
goto end ;
}
if ( ast_custom_function_register ( & media_offer_function ) ) {
if ( ast_custom_function_register ( & media_offer_function ) ) {
ast_log ( LOG_WARNING , " Unable to register PJSIP_MEDIA_OFFER dialplan function \n " ) ;
ast_log ( LOG_WARNING , " Unable to register PJSIP_MEDIA_OFFER dialplan function \n " ) ;
goto end ;
goto end ;
@ -3378,6 +3388,7 @@ end:
ast_custom_function_unregister ( & media_offer_function ) ;
ast_custom_function_unregister ( & media_offer_function ) ;
ast_custom_function_unregister ( & chan_pjsip_dial_contacts_function ) ;
ast_custom_function_unregister ( & chan_pjsip_dial_contacts_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_from_function ) ;
ast_custom_function_unregister ( & session_refresh_function ) ;
ast_custom_function_unregister ( & session_refresh_function ) ;
ast_unregister_application ( app_pjsip_hangup ) ;
ast_unregister_application ( app_pjsip_hangup ) ;
ast_manager_unregister ( app_pjsip_hangup ) ;
ast_manager_unregister ( app_pjsip_hangup ) ;
@ -3410,6 +3421,7 @@ static int unload_module(void)
ast_custom_function_unregister ( & media_offer_function ) ;
ast_custom_function_unregister ( & media_offer_function ) ;
ast_custom_function_unregister ( & chan_pjsip_dial_contacts_function ) ;
ast_custom_function_unregister ( & chan_pjsip_dial_contacts_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_function ) ;
ast_custom_function_unregister ( & chan_pjsip_parse_uri_from_function ) ;
ast_custom_function_unregister ( & session_refresh_function ) ;
ast_custom_function_unregister ( & session_refresh_function ) ;
ast_unregister_application ( app_pjsip_hangup ) ;
ast_unregister_application ( app_pjsip_hangup ) ;
ast_manager_unregister ( app_pjsip_hangup ) ;
ast_manager_unregister ( app_pjsip_hangup ) ;