]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
lets try it this way
authorJeremy McNamara <jj@nufone.net>
Thu, 11 Nov 2004 20:10:45 +0000 (20:10 +0000)
committerJeremy McNamara <jj@nufone.net>
Thu, 11 Nov 2004 20:10:45 +0000 (20:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4209 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c

index 2050624a503f1e539458af1a0928f39f10b1b7d6..ae4b5c3525c9206fda5affb95784b045f86e030f 100755 (executable)
@@ -448,7 +448,7 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
         /* Clear and then set the address to call */
         memset(addr, 0, sizeof(addr));
         if (usingGk) {
-                memcpy(addr, dest, strlen(addr));
+                memcpy(called_addr, dest, strlen(called_addr));
                 pvt->options.noFastStart = noFastStart;
                 pvt->options.noH245Tunneling = noH245Tunneling;
                 pvt->options.noSilenceSuppression = noSilenceSuppression;
@@ -456,12 +456,11 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
         } else {
                 ast_inet_ntoa(addr, sizeof(addr), pvt->sa.sin_addr);
                 pvt->options.port = htons(pvt->sa.sin_port);
-        }
-       if (pvt->username) {
-               sprintf(called_addr, "%s@%s", pvt->username, addr);
-        } else {
-               memcpy(called_addr, addr, strlen(called_addr));
-       }
+               if (pvt->username) {
+                       sprintf(called_addr, "%s@%s", pvt->username, addr);
+
+               }
+       }       
        pvt->outgoing = 1;
        ast_log(LOG_DEBUG, "Placing outgoing call to %s:%d\n", called_addr, pvt->options.port);
        res = h323_make_call(called_addr, &(pvt->cd), pvt->options);
@@ -949,7 +948,7 @@ static int create_addr(struct oh323_pvt *pvt, char *opeer)
                return 0;
        }
 }
-static struct ast_channel *oh323_request(const char *type, int format, void *data, int *cause)
+static struct ast_channel *oh323_request(const char *type, int format, void *data)
 {
        int oldformat;
        struct oh323_pvt *pvt;