ISDN Presentation Indicator
- From: "General Listmanager" <General.listmanager (at) pysdiscussext.py.intel.com>
- Date: Wed, 21 Sep 2005 01:44:26 GMT
From: "Charles Chau" <jobs (at) CharlesChau.net>
Correct Code should be:
----------------------
CRN tmpCRN = 0;
MAKECALL_BLK mkcall_blk;
IE_BLK ieBlk;
ieBlk.length = strlen(inCallingNo) + 4; // number of bytes to be passed to gc_SetInfoElem()
ieBlk.data[0] = CALLER_NUMBER_IE; // Info element ID
ieBlk.data[1] = strlen(inCallingNo) + 2; //
ieBlk.data[2] = PRIVATE_NUMB_PLAN; // may vary on different networks
ieBlk.data[3] = 3a;
strcpy(&ieBlk.data[4], inCallingNo); // copy caller party number here
if (cc_SetInfoElem(inHLDev, &ieBlk) < 0){
printf("set Error??\n");
}
setMakeCallBlkDef(&mkcall_blk);
if (reCode <0) { return -1; }
reCode = cc_MakeCall(inHLDev, &tmpCRN, inCalledNo, &mkcall_blk, inTimeout, EV_ASYNC);
if (reCode <0) {
printf("Error on Device handle: 0x%lx\n", inHLDev);
return -2;
}
To reply: mailto:General.31053 (at) pysdiscussext.py.intel.com
To start a new topic: mailto:General (at) pysdiscussext.py.intel.com
To login: http://membersresource.intel.com/webboardnet/wb.aspx?board=general