diff extensions/test_app/ta_dict.c @ 127:8ee43cf85a5f

Added User-Name AVP in test_app extension
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 10 Dec 2009 14:39:55 +0900
parents d7acdc46134d
children 4a9f08d6b6ba
line wrap: on
line diff
--- a/extensions/test_app/ta_dict.c	Thu Dec 10 14:34:31 2009 +0900
+++ b/extensions/test_app/ta_dict.c	Thu Dec 10 14:39:55 2009 +0900
@@ -48,6 +48,7 @@
 struct dict_object * ta_origin_realm = NULL;
 struct dict_object * ta_dest_host = NULL;
 struct dict_object * ta_dest_realm = NULL;
+struct dict_object * ta_user_name = NULL;
 struct dict_object * ta_res_code = NULL;
 
 int ta_dict_init(void)
@@ -101,6 +102,7 @@
 	CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Origin-Realm", &ta_origin_realm, ENOENT) );
 	CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Destination-Host", &ta_dest_host, ENOENT) );
 	CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Destination-Realm", &ta_dest_realm, ENOENT) );
+	CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Name", &ta_user_name, ENOENT) );
 	CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Result-Code", &ta_res_code, ENOENT) );
 	
 	/* Create the rules for Test-Request and Test-Answer */
"Welcome to our mercurial repository"