Fixed some message parameter naming.

git-svn-id: http://voip.null.ro/svn/yate@450 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-07-16 22:06:35 +00:00
parent c307b13bf7
commit cc39357317
4 changed files with 7 additions and 15 deletions

View File

@ -161,7 +161,7 @@ GenConnection* GenConnection::find(const String& id)
bool GenConnection::oneCall(String* target)
{
Message m("call.route");
m.addParam("driver","callgen");
m.addParam("module","callgen");
m.addParam("caller",s_cfg.getValue("parameters","caller","yate"));
String callto(s_cfg.getValue("parameters","callto"));
if (callto.null()) {

View File

@ -479,7 +479,7 @@ bool OssHandler::received(Message &msg)
if (direct)
{
Message m("call.execute");
m.addParam("driver","oss");
m.addParam("module","oss");
m.addParam("id",dest);
m.addParam("caller",dest);
m.addParam("callto",direct);
@ -501,7 +501,7 @@ bool OssHandler::received(Message &msg)
return false;
}
Message m("call.route");
m.addParam("driver","oss");
m.addParam("module","oss");
m.addParam("id",dest);
m.addParam("caller",dest);
m.addParam("called",targ);

View File

@ -221,12 +221,7 @@ bool PrerouteHandler::received(Message &msg)
return false;
String caller(msg.getValue("caller"));
if (caller.null()) {
caller << msg.getValue("driver") << "/";
caller << msg.getValue("span") << "/";
caller << msg.getValue("channel");
}
if (caller == "//")
if (caller.null())
return false;
String ret;

View File

@ -1074,8 +1074,7 @@ SDPBody* YateSIPConnection::createPasstroughSDP(Message &msg)
SDPBody* YateSIPConnection::createRtpSDP(SIPMessage* msg, const char* formats)
{
Message m("chan.rtp");
m.addParam("driver","sip");
m.addParam("id",id());
complete(m,true);
m.addParam("direction","bidir");
m.addParam("remoteip",msg->getParty()->getPartyAddr());
m.userData(static_cast<CallEndpoint *>(this));
@ -1097,8 +1096,7 @@ SDPBody* YateSIPConnection::createRtpSDP(bool start)
return createSDP(0,m_rtpLocalPort,m_formats);
}
Message m("chan.rtp");
m.addParam("driver","sip");
m.addParam("id",id());
complete(m,true);
m.addParam("direction","bidir");
m.addParam("remoteip",m_rtpAddr);
if (start) {
@ -1125,8 +1123,7 @@ bool YateSIPConnection::startRtp()
return false;
DDebug(this,DebugAll,"YateSIPConnection::startRtp() [%p]",this);
Message m("chan.rtp");
m.addParam("driver","sip");
m.addParam("id",id());
complete(m,true);
m.addParam("rtpid",m_rtpid);
m.addParam("direction","bidir");
m.addParam("remoteip",m_rtpAddr);