aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_osplookup.c
diff options
context:
space:
mode:
authortransnexus <transnexus@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-03 08:47:38 +0000
committertransnexus <transnexus@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-03 08:47:38 +0000
commitc167b4ab3e0d7f060a740a5cb6279c93d79ff5a0 (patch)
tree5cc6c64608d72312b37479c8dcc2058d45518a02 /apps/app_osplookup.c
parent6539a1c31b81b68bab061bea53f0a75fe6ba3b17 (diff)
Replaced two deprecated functions of OSP Toolkit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232771 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_osplookup.c')
-rw-r--r--apps/app_osplookup.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c
index 95447711c..537d7f0b7 100644
--- a/apps/app_osplookup.c
+++ b/apps/app_osplookup.c
@@ -901,12 +901,18 @@ static int osp_check_destination(
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';