Problem with IAD Gateway

Re: Problem with IAD Gateway

Postby thomas.miesch on Sun Jan 31, 2010 11:04 am

Hi

I have tested it now with my system and found out the following code is not correct
Code: Select all
if (m_observedParameter[nPosDS+2] == '"')
  {
          // digit string is in quotes
          nPosDS+=2;
          nPosSep-=2;
  }


In the debugger I had to use the following code

Code: Select all
if (m_observedParameter[nPosDS] == '"')
  {
           // digit string is in quotes
           nPosDS+=1;
           nPosSep-=1;
   }



Then I had the number 12341 in the number string
thomas.miesch
 
Posts: 40
Joined: Sun Jun 14, 2009 8:13 am

Re: Problem with IAD Gateway

Postby huangkai.30 on Sun Jan 31, 2010 4:07 pm

Hi,
It is successful,my IAD can be used by two different phone .Many thanks for your support!
I have changed my code by following above your post and I also modified a bit in the callflow_h/smallmgc_h_messagebuilder.cpp.
Code: Select all
std::string SmallMGC_HMessageBuilder::buildModifyModem(Poco::UInt32 transactionId,std::string contextId, std::string physical, std::string ephemeral, std::string remoteDescriptor, Poco::UInt32 eventId)
{
  //std::string  addrstr = "[10.1.2.50]:2944";

  std::stringstream ss;
  ss << "!/1 " << SmallMGC_HMessageBuilder::mgcMessageHeader << " T=" << transactionId << "{"
     << "C=" << contextId << "{"
     << "MF=" << physical
          << "{M{O{MO=SR,RV=OFF,RG=OFF,tdmc/ec=OFF}},E=" << eventId
          << "{ctyp/dtone,al/on{strict=exact},al/of{strict=exact},al/fl},SG{}},MF=" << ephemeral
          << "{M{TS{ctype/calltype=DATA},O{MO=SR,RV=OFF,RG=OFF}," << remoteDescriptor << "}}}}\n"; <---------remove the last ","
  return ss.str();
}

If I don't remove "," in the code,I can not call another phone and have the error "401{"Syntax Error: Line 1, Column 192"}" .
I will continue learn Megaco by your "Smallmgc",if I meet some problems,I will keep in touch with you. :mrgreen:
Thank you!
huangkai.30
 
Posts: 8
Joined: Mon Dec 14, 2009 3:37 pm

Previous

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron