Fixes to compile on gcc-4

git-svn-id: http://voip.null.ro/svn/yate@500 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-09-09 12:07:15 +00:00
parent 2e68fa086a
commit 27abde7ab8
5 changed files with 25 additions and 0 deletions

View File

@ -47,6 +47,11 @@
*/
namespace TelEngine {
class RTPGroup;
class RTPTransport;
class RTPSession;
class RTPSender;
/**
* A base class that contains just placeholders to process raw RTP and RTCP packets.
* @short Base class to ease creation of RTP forwarders

View File

@ -249,6 +249,8 @@ public:
class YateGkRegThread;
class YateH323EndPoint;
class YateGatekeeperServer;
class YateH323EndPoint;
class YateH323Chan;
class H323Driver : public Driver
{

View File

@ -352,6 +352,7 @@ void PriSpan::handleEvent(pri_event &ev)
break;
case PRI_EVENT_RINGING:
Debug(m_driver,DebugInfo,"Ringing our call on channel %d on span %d",ev.ringing.channel,m_span);
ringingChan(ev.proceeding.channel);
break;
case PRI_EVENT_HANGUP:
Debug(m_driver,DebugInfo,"Hangup detected on channel %d on span %d",ev.hangup.channel,m_span);
@ -506,6 +507,18 @@ void PriSpan::proceedingChan(int chan)
}
Debug(m_driver,DebugInfo,"Extending timeout on channel %d on span %d",chan,m_span);
getChan(chan)->setTimeout(60000000);
Engine::enqueue(getChan(chan)->message("call.progress"));
}
void PriSpan::ringingChan(int chan)
{
if (!validChan(chan)) {
Debug(DebugInfo,"Ringing on invalid channel %d on span %d",chan,m_span);
return;
}
Debug(m_driver,DebugInfo,"Extending timeout on channel %d on span %d",chan,m_span);
getChan(chan)->setTimeout(60000000);
Engine::enqueue(getChan(chan)->message("call.ringing"));
}
PriSource::PriSource(PriChan *owner, const char* format, unsigned int bufsize)

View File

@ -94,6 +94,7 @@ protected:
void ackChan(int chan);
void answerChan(int chan);
void proceedingChan(int chan);
void ringingChan(int chan);
PriDriver* m_driver;
int m_span;
int m_offs;

View File

@ -59,6 +59,10 @@ static TokenDict dict_yrtp_dir[] = {
static Configuration s_cfg;
class YRTPSource;
class YRTPConsumer;
class YRTPSession;
class YRTPWrapper : public RefObject
{
friend class YRTPSource;