According to sipX\sipXphone\src\pingerjni and 
sipXtapi\sipXmediaLib\src\mp\MpdPtAVT.cpp:257, you should do the following:

      unsigned short iButton = (unsigned short) pCallInfo->toneId;
      unsigned short isButtonUp = (iButton & 0x8000);

      if ( isButtonUp )
      {
         iButton = iButton &  0x0003FFF;
      }

The real problem lies in the fact that you may not always get this event, 
depending on VoIP service provider as well as PSTN gateway. Correct me if 
some one there knows more on why this event does not occur consistently.

_________________________________________________________________
Get today's hot entertainment gossip  http://movies.msn.com/movies/hotgossip

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to