Copy important call parameters to outgoing fax chan.startup message.

git-svn-id: http://voip.null.ro/svn/yate@2434 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-01-13 20:24:28 +00:00
parent 30723048ba
commit a0f226b0fe
1 changed files with 4 additions and 1 deletions

View File

@ -530,7 +530,10 @@ FaxChan::FaxChan(bool outgoing, const char *file, bool sender, Message& msg)
m_caller = msg.getBoolValue("faxcaller",!outgoing);
m_ecm = msg.getBoolValue("faxecm",true);
m_address = file;
Engine::enqueue(message("chan.startup",msg));
Message* s = message("chan.startup",msg);
if (outgoing)
s->copyParams(msg,"called,caller,callername,billid");
Engine::enqueue(s);
}
// Destructor - clears all (audio, image) endpoints early