]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Replaced two deprecated functions of OSP Toolkit.
authorTransNexus OSP Development <support@transnexus.com>
Thu, 3 Dec 2009 08:47:38 +0000 (08:47 +0000)
committerTransNexus OSP Development <support@transnexus.com>
Thu, 3 Dec 2009 08:47:38 +0000 (08:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232771 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_osplookup.c

index 95447711c5fa69edd222e045ea84b79e3ebc5d5f..537d7f0b7e3d3ba62d3925258ab5c7a5193fbfa8 100644 (file)
@@ -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';