[asterisk-addons-commits] trunk r200 - in
/trunk/asterisk-ooh323c/ooh323c/src: ooCmdChannel.c ooq931.c
asterisk-addons-commits at lists.digium.com
asterisk-addons-commits at lists.digium.com
Wed Feb 22 14:46:47 MST 2006
Author: objsys
Date: Wed Feb 22 15:46:45 2006
New Revision: 200
URL: http://svn.digium.com/view/asterisk-addons?rev=200&view=rev
Log:
Conference ID generated with random number, thanks Patrick Jordan
Modified:
trunk/asterisk-ooh323c/ooh323c/src/ooCmdChannel.c
trunk/asterisk-ooh323c/ooh323c/src/ooq931.c
Modified: trunk/asterisk-ooh323c/ooh323c/src/ooCmdChannel.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/ooh323c/src/ooCmdChannel.c?rev=200&r1=199&r2=200&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/ooh323c/src/ooCmdChannel.c (original)
+++ trunk/asterisk-ooh323c/ooh323c/src/ooCmdChannel.c Wed Feb 22 15:46:45 2006
@@ -161,7 +161,7 @@
(char*)cmd.param2);
ooH323MakeCall ((char*)cmd.param1, (char*)cmd.param2,
- (ooCallOptions*)cmd.param3);
+ (ooCallOptions*)cmd.param3);
break;
case OO_CMD_MANUALRINGBACK:
Modified: trunk/asterisk-ooh323c/ooh323c/src/ooq931.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/ooh323c/src/ooq931.c?rev=200&r1=199&r2=200&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/ooh323c/src/ooq931.c (original)
+++ trunk/asterisk-ooh323c/ooh323c/src/ooq931.c Wed Feb 22 15:46:45 2006
@@ -1695,7 +1695,7 @@
OOH323CallData *fwdedCall=NULL;
OOCTXT *pctxt;
ooAliases *pNewAlias=NULL, *alias=NULL;
- int i=0, ret = OO_OK;
+ int i=0, irand=0, ret = OO_OK;
/* Note: We keep same callToken, for new call which is going
to replace an existing call, thus treating it as a single call.*/
@@ -1737,8 +1737,10 @@
fwdedCall->callReference = ooGenerateCallReference();
ooGenerateCallIdentifier(&fwdedCall->callIdentifier);
fwdedCall->confIdentifier.numocts = 16;
- for (i = 0; i < 16; i++)
- fwdedCall->confIdentifier.data[i] = i+1;
+ irand = rand();
+ for (i = 0; i < 16; i++) {
+ fwdedCall->confIdentifier.data[i] = irand++;
+ }
if(gH323ep.gkClient && !OO_TESTFLAG(fwdedCall->flags, OO_M_DISABLEGK))
@@ -1760,7 +1762,7 @@
{
OOCTXT *pctxt;
OOH323CallData *call;
- int ret=0, i=0;
+ int ret=0, i=0, irand=0;
char tmp[30]="\0";
char *ip=NULL, *port = NULL;
@@ -1821,8 +1823,9 @@
call->callReference = ooGenerateCallReference();
ooGenerateCallIdentifier(&call->callIdentifier);
call->confIdentifier.numocts = 16;
+ irand = rand();
for (i = 0; i < 16; i++) {
- call->confIdentifier.data[i] = i+1;
+ call->confIdentifier.data[i] = irand++;
}
More information about the asterisk-addons-commits
mailing list