How to add body to SIP REGISTRATION message in PJSIP using JAVA or C++?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I try to sent to SIP server REGISTRATION message with body. Till now I could add to message only header (like below) but I cannot find any java wrappers allowing me to add a body.

  AccountConfig accountConfig =AccountConfigFactory.create();  String idUri =String.format("sip:%s@%s", sipAlias,BuildConfig.sipDNS);
  accountConfig.setIdUri(idUri);
  accountConfig.getNatConfig().setIceEnabled(true);  SipHeader header =newSipHeader();
  header.setHName("Content-Type");
  header.setHValue("text/plain");
  headers.add(header);

So how to add body to message?

Or how to add body via C++ code?

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux