Quantcast
Channel: Developer Group
Viewing all articles
Browse latest Browse all 1888

Forum Post: Not able to get calling number

$
0
0
A voice call has been placed from line 1 to line 2(loop back)of same Diva Board(Diva Analog 4 PCI v1 SN 40373). When I try to get the calling number on the termination side(Calliee), I am not getting the calling number!! I tried to get calling number during incomming,connected and dicsonnected, In all the call states it gives blank.   Here is the sample code for the reference.   Caller side: ========= char  LocalNumber[MAX_ADDR_LEN]; memset(LocalNumber,'\0',sizeof(LocalNumber)); strncpy(LocalNumber,”1234”) ret = DivaSetCallProperties (callHd, DivaCPT_CallingNumber, (DivaCallPropertyValue*) LocalNumber, strlen ( LocalNumber )+1);   Calliee side: ==========             DivaCallPropertyValue   value;             DWORD                       result;               result = DivaGetCallProperties(callHd,DivaCPT_CallingNumber,&value,sizeof(value));             if (result != DivaSuccess)             {                 printf("Error getting Calling Number %d\n",result);             }             else             {                 printf("Calling Number %p %s\n",callHd,value.CallingNumber.Number);             }     Could you please let me know any settings are needed to get this info. Your quicker response is highly appreciated.   Thanks, Karthik

Viewing all articles
Browse latest Browse all 1888


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>