< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] INFO message


Hi !

 

A question concerning creating and decoding a SIP message INFO.

Indeed I’m a bit lost with all parameters and variables of the SIPMessage class…

 

- If I want to send DTMF “1” to the network, what should I do? Something like this?

             Contents* content = new PlainContents(Data(“1”));

             pt_invSes->info(*content);

 

- If I want to decode a DTMF received from the network, what should I do in the following callback

onInfo(InviteSessionHandle sessionHandle, const SipMessage& msg)? Something like this?

            dtmf = msg->getContents()->getBodyData()

 

Thanks in advance

Nicolas L.