add debug in hopes to figure out native bridging

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara
2003-08-14 08:02:33 +00:00
parent 5047f6f219
commit 981b58ae55
2 changed files with 7 additions and 2 deletions

View File

@@ -117,6 +117,7 @@ class MyH323EndPoint : public H323EndPoint {
void SetEndpointTypeInfo( H225_EndpointType & info ) const; void SetEndpointTypeInfo( H225_EndpointType & info ) const;
void SetGateway(void); void SetGateway(void);
}; };
@@ -152,6 +153,8 @@ class MyH323Connection : public H323Connection {
PIPSocket::Address remoteIpAddress; // IP Address of remote endpoint PIPSocket::Address remoteIpAddress; // IP Address of remote endpoint
WORD externalPort; // local media server Data port (control is dataPort+1) WORD externalPort; // local media server Data port (control is dataPort+1)
WORD remotePort; // remote endpoint Data port (control is dataPort+1) WORD remotePort; // remote endpoint Data port (control is dataPort+1)
PSyncPoint bridgeFlag;
}; };

View File

@@ -1581,6 +1581,7 @@ static struct ast_rtp *oh323_get_rtp_peer(struct ast_channel *chan)
p = chan->pvt->pvt; p = chan->pvt->pvt;
if (p && p->rtp && p->bridge) if (p && p->rtp && p->bridge)
return p->rtp; return p->rtp;
ast_log(LOG_ERROR, "No associated RTP structure in pvt???\n");
return NULL; return NULL;
} }
@@ -1597,9 +1598,10 @@ static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, str
struct sockaddr_in them; struct sockaddr_in them;
struct sockaddr_in us; struct sockaddr_in us;
if (!rtp) if (!rtp) {
ast_log(LOG_NOTICE, "RTP is Null\n");
return 0; return 0;
}
p = chan->pvt->pvt; p = chan->pvt->pvt;
if (!p) { if (!p) {
ast_log(LOG_ERROR, "No Private Structure, this is bad\n"); ast_log(LOG_ERROR, "No Private Structure, this is bad\n");