Thread: Re: [OpenSIPStack] Correct recognition of a called endpoint video capabilities (Page 2)
Brought to you by:
joegenbaclor
From: <jo...@op...> - 2008-09-01 14:13:31
|
Ok I commited this in CVS. However I do not see why this is needed since address.GetIpAndPort() should always return the media port in the SDP m= line and initializing the port to the correct value. Can you explain exactly what you mean by "the algorithm works incorrectly" ?? H.Kropf wrote: > Hi Joegen, > > Implement this change please > > WORD port = 0; > > instead of > > WORD port; > > in OpalOSSConnection::OnReceivedSDPMediaDescription() > > Now this variable accepts value 4 by default and the algorithm works > incorrectly > > > H.Kropf wrote: > >> Hi, >> >> Thanks. >> >> It will work correctly if to make one more change >> >> >> //====== opalossconnection.cxx =========== >> >> BOOL OpalOSSConnection::OnReceivedSDPMediaDescription( >> SDPSessionDescription & sdp, >> SDPMediaDescription::MediaType mediaType, >> unsigned rtpSessionId >> ) >> { >> ........ >> PIPSocket::Address ip; >> // WORD port; >> WORD port = 0; >> address.GetIpAndPort( ip, port ); >> ..... >> } >> >> jo...@op... wrote: >> >> >>> Hi, >>> >>> I have patched OpalOSSConnection >>> >>> * $Log: OpalOSSConnection.cxx,v $ >>> * Revision 1.36 2008/08/24 03:16:05 joegenbaclor >>> * Patched OnReceivedSDPMediaDescription not to overwrite >>> m_RemoteFormatList and to not >>> * create sessions for address or port == 0 >>> >>> >>> Can you verify that this patch works? >>> >>> Joegen >>> >>> >>> H.Kropf wrote: >>> >>> >>> >>>> Hi, >>>> >>>> SIP-phone Linksys/SPA2102-3.3.6 announce video capabilities but it don't >>>> have they. >>>> >>>> v=0 >>>> o=- 3748 3748 IN IP4 193.28.184.99 >>>> s=- >>>> c=IN IP4 193.28.184.13 >>>> t=0 0 >>>> m=audio 20224 RTP/AVP 18 101 >>>> a=rtpmap:18 G729a/8000 >>>> a=rtpmap:101 telephone-event/8000 >>>> a=fmtp:101 0-15 >>>> a=ptime:20 >>>> a=sendrecv >>>> m=video 0 RTP/AVP 31 >>>> a=nortpproxy:yes >>>> >>>> Whether it is possible to "learn" OSS to perceive port "0" in string >>>> "m=video 0 RTP/AVP 31" as absence of video capabilities? >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - http://www.avg.com >>>> Version: 8.0.138 / Virus Database: 270.6.7/1628 - Release Date: 8/22/2008 6:32 PM >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.169 / Virus Database: 270.6.14/1645 - Release Date: 9/1/2008 7:19 AM > > |
From: H.Kropf <mai...@gl...> - 2008-09-01 16:21:42
|
Hi Joegen, > Can you explain exactly what you > mean by "the algorithm works incorrectly" ?? O.K. [OSS endpoint] ==>> INVITE ==>> [Linksys/SPA2102-3.3.6] [OSS endpoint] <<== 200 OK ("... m=video 0 RTP/AVP 31 ...") <<== [Linksys/SPA2102-3.3.6] //================================================== BOOL OpalOSSConnection::OnReceivedSDPMediaDescription(...mediaType == Video...) { ........ WORD port; /** VC2005 assigns value "4" by default **/ address.GetIpAndPort( ip, port ); ..... } //================================================== BOOL OpalInternalIPTransport::GetIpAndPort() { ...... if (!SplitAddress(address, host, service)) /*** address == "tcp$195.21.184.13", host = "195.21.184.13", service == "" ***/ return FALSE; ........ if (service == "*") /*** !!! ignored (service is empty) ***/ port = 0; else { if (!service) { /*** !!! ignored (service is empty) ***/ PString proto = address.Left(address.Find('$')); if (proto *= "ip") proto = "tcp"; port = PIPSocket::GetPortByService(proto, service); } if (port == 0) /*** !!! ignored (port == 4) ***/ { PTRACE(2, "Opal\tIllegal IP transport port/service: \"" << address << '"'); return FALSE; } } ........ if (PIPSocket::GetHostAddress(host, ip)) /*** !!! TRUE is returned ***/ return TRUE; ........ } //================================================== BOOL OpalOSSConnection::OnReceivedSDPMediaDescription() { ........ address.GetIpAndPort( ip, port ); /*** !!! port == 4 ***/ if( ip == 0 || port == 0 ) /*** !!! ignored, port == 4 ***/ return TRUE; ..... } //================================================== //================================================== //================================================== jo...@op... wrote: > Ok I commited this in CVS. However I do not see why this is needed > since address.GetIpAndPort() should always return the media port in the > SDP m= line and initializing the port to the correct value. Can you > explain exactly what you mean by "the algorithm works incorrectly" ?? > > > H.Kropf wrote: > >> Hi Joegen, >> >> Implement this change please >> >> WORD port = 0; >> >> instead of >> >> WORD port; >> >> in OpalOSSConnection::OnReceivedSDPMediaDescription() >> >> Now this variable accepts value 4 by default and the algorithm works >> incorrectly >> >> >> H.Kropf wrote: >> >> >>> Hi, >>> >>> Thanks. >>> >>> It will work correctly if to make one more change >>> >>> >>> //====== opalossconnection.cxx =========== >>> >>> BOOL OpalOSSConnection::OnReceivedSDPMediaDescription( >>> SDPSessionDescription & sdp, >>> SDPMediaDescription::MediaType mediaType, >>> unsigned rtpSessionId >>> ) >>> { >>> ........ >>> PIPSocket::Address ip; >>> // WORD port; >>> WORD port = 0; >>> address.GetIpAndPort( ip, port ); >>> ..... >>> } >>> >>> jo...@op... wrote: >>> >>> >>> >>>> Hi, >>>> >>>> I have patched OpalOSSConnection >>>> >>>> * $Log: OpalOSSConnection.cxx,v $ >>>> * Revision 1.36 2008/08/24 03:16:05 joegenbaclor >>>> * Patched OnReceivedSDPMediaDescription not to overwrite >>>> m_RemoteFormatList and to not >>>> * create sessions for address or port == 0 >>>> >>>> >>>> Can you verify that this patch works? >>>> >>>> Joegen >>>> >>>> >>>> H.Kropf wrote: >>>> >>>> >>>> >>>> >>>>> Hi, >>>>> >>>>> SIP-phone Linksys/SPA2102-3.3.6 announce video capabilities but it don't >>>>> have they. >>>>> >>>>> v=0 >>>>> o=- 3748 3748 IN IP4 193.28.184.99 >>>>> s=- >>>>> c=IN IP4 193.28.184.13 >>>>> t=0 0 >>>>> m=audio 20224 RTP/AVP 18 101 >>>>> a=rtpmap:18 G729a/8000 >>>>> a=rtpmap:101 telephone-event/8000 >>>>> a=fmtp:101 0-15 >>>>> a=ptime:20 >>>>> a=sendrecv >>>>> m=video 0 RTP/AVP 31 >>>>> a=nortpproxy:yes >>>>> >>>>> Whether it is possible to "learn" OSS to perceive port "0" in string >>>>> "m=video 0 RTP/AVP 31" as absence of video capabilities? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG - http://www.avg.com >>>>> Version: 8.0.138 / Virus Database: 270.6.7/1628 - Release Date: 8/22/2008 6:32 PM >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com >> Version: 8.0.169 / Virus Database: 270.6.14/1645 - Release Date: 9/1/2008 7:19 AM >> >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |
From: Joegen E. B. <joe...@gm...> - 2008-09-02 01:30:58
|
Ok I see your point. H.Kropf wrote: > Hi Joegen, > > >> Can you explain exactly what you >> mean by "the algorithm works incorrectly" ?? >> > > > O.K. > > [OSS endpoint] ==>> INVITE ==>> [Linksys/SPA2102-3.3.6] > [OSS endpoint] <<== 200 OK ("... m=video 0 RTP/AVP 31 ...") <<== [Linksys/SPA2102-3.3.6] > > > //================================================== > > BOOL OpalOSSConnection::OnReceivedSDPMediaDescription(...mediaType == Video...) > { > ........ > WORD port; /** VC2005 assigns value "4" by default **/ > address.GetIpAndPort( ip, port ); > ..... > } > > > //================================================== > BOOL OpalInternalIPTransport::GetIpAndPort() > { > ...... > if (!SplitAddress(address, host, service)) /*** address == > "tcp$195.21.184.13", host = "195.21.184.13", service == "" ***/ > return FALSE; > ........ > if (service == "*") /*** !!! ignored (service is empty) ***/ > port = 0; > else { > if (!service) { /*** !!! ignored (service is empty) ***/ > PString proto = address.Left(address.Find('$')); > if (proto *= "ip") > proto = "tcp"; > port = PIPSocket::GetPortByService(proto, service); > } > if (port == 0) /*** !!! ignored (port == 4) ***/ > { > PTRACE(2, "Opal\tIllegal IP transport port/service: \"" << address > << '"'); > return FALSE; > } > } > ........ > if (PIPSocket::GetHostAddress(host, ip)) /*** !!! TRUE is returned ***/ > return TRUE; > ........ > } > //================================================== > > BOOL OpalOSSConnection::OnReceivedSDPMediaDescription() > { > ........ > address.GetIpAndPort( ip, port ); /*** !!! port == 4 ***/ > > if( ip == 0 || port == 0 ) /*** !!! ignored, port == 4 ***/ > return TRUE; > > ..... > } > > //================================================== > //================================================== > //================================================== > > > > jo...@op... wrote: > >> Ok I commited this in CVS. However I do not see why this is needed >> since address.GetIpAndPort() should always return the media port in the >> SDP m= line and initializing the port to the correct value. Can you >> explain exactly what you mean by "the algorithm works incorrectly" ?? >> >> >> H.Kropf wrote: >> >> >>> Hi Joegen, >>> >>> Implement this change please >>> >>> WORD port = 0; >>> >>> instead of >>> >>> WORD port; >>> >>> in OpalOSSConnection::OnReceivedSDPMediaDescription() >>> >>> Now this variable accepts value 4 by default and the algorithm works >>> incorrectly >>> >>> >>> H.Kropf wrote: >>> >>> >>> >>>> Hi, >>>> >>>> Thanks. >>>> >>>> It will work correctly if to make one more change >>>> >>>> >>>> //====== opalossconnection.cxx =========== >>>> >>>> BOOL OpalOSSConnection::OnReceivedSDPMediaDescription( >>>> SDPSessionDescription & sdp, >>>> SDPMediaDescription::MediaType mediaType, >>>> unsigned rtpSessionId >>>> ) >>>> { >>>> ........ >>>> PIPSocket::Address ip; >>>> // WORD port; >>>> WORD port = 0; >>>> address.GetIpAndPort( ip, port ); >>>> ..... >>>> } >>>> >>>> jo...@op... wrote: >>>> >>>> >>>> >>>> >>>>> Hi, >>>>> >>>>> I have patched OpalOSSConnection >>>>> >>>>> * $Log: OpalOSSConnection.cxx,v $ >>>>> * Revision 1.36 2008/08/24 03:16:05 joegenbaclor >>>>> * Patched OnReceivedSDPMediaDescription not to overwrite >>>>> m_RemoteFormatList and to not >>>>> * create sessions for address or port == 0 >>>>> >>>>> >>>>> Can you verify that this patch works? >>>>> >>>>> Joegen >>>>> >>>>> >>>>> H.Kropf wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> SIP-phone Linksys/SPA2102-3.3.6 announce video capabilities but it don't >>>>>> have they. >>>>>> >>>>>> v=0 >>>>>> o=- 3748 3748 IN IP4 193.28.184.99 >>>>>> s=- >>>>>> c=IN IP4 193.28.184.13 >>>>>> t=0 0 >>>>>> m=audio 20224 RTP/AVP 18 101 >>>>>> a=rtpmap:18 G729a/8000 >>>>>> a=rtpmap:101 telephone-event/8000 >>>>>> a=fmtp:101 0-15 >>>>>> a=ptime:20 >>>>>> a=sendrecv >>>>>> m=video 0 RTP/AVP 31 >>>>>> a=nortpproxy:yes >>>>>> >>>>>> Whether it is possible to "learn" OSS to perceive port "0" in string >>>>>> "m=video 0 RTP/AVP 31" as absence of video capabilities? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>> _______________________________________________ >>>>>> opensipstack-devel mailing list >>>>>> ope...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>>> >>>>>> >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG - http://www.avg.com >>>>>> Version: 8.0.138 / Virus Database: 270.6.7/1628 - Release Date: 8/22/2008 6:32 PM >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> opensipstack-devel mailing list >>>>> ope...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> opensipstack-devel mailing list >>>> ope...@li... >>>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> opensipstack-devel mailing list >>> ope...@li... >>> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >>> >>> ------------------------------------------------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - http://www.avg.com >>> Version: 8.0.169 / Virus Database: 270.6.14/1645 - Release Date: 9/1/2008 7:19 AM >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.169 / Virus Database: 270.6.14/1646 - Release Date: 9/1/2008 6:03 PM > > |
From: H.Kropf <mai...@gl...> - 2008-09-11 09:35:52
|
Hi, Joegen How to obtain a name of the current audio codec or PayLoadType? I need it for calculation of ICPIF ("The Calculated Planning Impairment Factor") I get other necessary parametres (packetsLost, packetsTooLate etc.) in OpalOSSConnection::OnRTPStatistics() "Cisco IP Service Level Agreements — Analyzing VoIP Service Levels Using the UDP Jitter Operation" Lost = (packetsLost + packetsTooLate + packetsOutOfOrder) *100.0 / packetsReceived if (Codec == G729) || (Codec == ILBC) { if (Lost< 2.0) then (Ie = 0) else if (Lost< 4.0) then (Ie = 20) else if (Lost< 6.0) then (Ie = 30) else if (Lost< 8.0) then (Ie = 38) else Ie = 40 } else{ if (Lost< 2.0) then (Ie = 0) else if (Lost< 4.0) then (Ie = 12) else if (Lost< 6.0) then (Ie = 22) else if (Lost< 8.0) then (Ie = 28) else Ie = 32 } if (averageReceiveTime < 50) then (Idd = 0) else if (averageReceiveTime < 100) then (Idd = 1) else if (averageReceiveTime < 150) then (Idd = 2) else if (averageReceiveTime < 200) then (Idd = 4) else Idd = 7 ICPIF = Idd + Ie if (ICPIF < 5 ) then print ("Very good") else if (ICPIF < 10 ) then print ("Good") else if (ICPIF < 20 ) then print ("Adequate") else if (ICPIF < 30 ) then print ("Limiting case") else if (ICPIF < 45 ) then print ("Exceptional limiting case") else print ("Change of network operator") print ICPIF |
From: <jo...@op...> - 2008-09-11 16:04:39
|
Check out RTP_UDP::GetSendPayloadType() and RTP_UDP::GetReceivePayloadType() H.Kropf wrote: > Hi, Joegen > > How to obtain a name of the current audio codec or PayLoadType? > > I need it for calculation of ICPIF ("The Calculated Planning Impairment > Factor") > > I get other necessary parametres (packetsLost, packetsTooLate etc.) in > OpalOSSConnection::OnRTPStatistics() > > > "Cisco IP Service Level Agreements — Analyzing VoIP Service Levels Using > the UDP Jitter Operation" > > Lost = (packetsLost + packetsTooLate + packetsOutOfOrder) *100.0 / > packetsReceived > > if (Codec == G729) || (Codec == ILBC) { > if (Lost< 2.0) > then (Ie = 0) > else if (Lost< 4.0) > then (Ie = 20) > else if (Lost< 6.0) > then (Ie = 30) > else if (Lost< 8.0) > then (Ie = 38) > else > Ie = 40 > } else{ > if (Lost< 2.0) > then (Ie = 0) > else if (Lost< 4.0) > then (Ie = 12) > else if (Lost< 6.0) > then (Ie = 22) > else if (Lost< 8.0) > then (Ie = 28) > else > Ie = 32 > } > > if (averageReceiveTime < 50) > then (Idd = 0) > else if (averageReceiveTime < 100) > then (Idd = 1) > else if (averageReceiveTime < 150) > then (Idd = 2) > else if (averageReceiveTime < 200) > then (Idd = 4) > else > Idd = 7 > > ICPIF = Idd + Ie > > if (ICPIF < 5 ) > then print ("Very good") > else if (ICPIF < 10 ) > then print ("Good") > else if (ICPIF < 20 ) > then print ("Adequate") > else if (ICPIF < 30 ) > then print ("Limiting case") > else if (ICPIF < 45 ) > then print ("Exceptional limiting case") > else print ("Change of network operator") > > print ICPIF > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.169 / Virus Database: 270.6.19/1665 - Release Date: 9/10/2008 7:00 PM > > |