[asterisk-commits] transnexus: trunk r232771 - /trunk/apps/app_osplookup.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 3 02:47:42 CST 2009


Author: transnexus
Date: Thu Dec  3 02:47:38 2009
New Revision: 232771

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232771
Log:
Replaced two deprecated functions of OSP Toolkit.

Modified:
    trunk/apps/app_osplookup.c

Modified: trunk/apps/app_osplookup.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_osplookup.c?view=diff&rev=232771&r1=232770&r2=232771
==============================================================================
--- trunk/apps/app_osplookup.c (original)
+++ trunk/apps/app_osplookup.c Thu Dec  3 02:47:38 2009
@@ -901,12 +901,18 @@
 		ast_base64encode(results->token, (const unsigned char*)token, tokenlen, sizeof(results->token) - 1);
 	}
 
-	if ((error = OSPPTransactionGetDestNetworkId(results->outhandle, results->networkid)) != OSPC_ERR_NO_ERROR) {
+	if ((error = OSPPTransactionGetDestinationNetworkId(results->outhandle, sizeof(results->networkid), results->networkid)) != OSPC_ERR_NO_ERROR) {
 		ast_debug(1, "OSP: Unable to get destination network ID, error '%d'\n", error);
 		results->networkid[0] = '\0';
 	}
 
-	if ((error = OSPPTransactionGetNumberPortability(results->outhandle, results->nprn, results->npcic, &results->npdi)) != OSPC_ERR_NO_ERROR) {
+	error = OSPPTransactionGetNumberPortabilityParameters(results->outhandle,
+		sizeof(results->nprn),
+		results->nprn,
+		sizeof(results->npcic),
+		results->npcic,
+		&results->npdi);
+	if (error != OSPC_ERR_NO_ERROR) {
 		ast_debug(1, "OSP: Unable to get number portability parameters, error '%d'\n", error);
 		results->nprn[0] = '\0';
 		results->npcic[0] = '\0';




More information about the asterisk-commits mailing list