@voipsdk/react-native-voipcloud 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (644) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +55 -9
  3. package/android/build.gradle +14 -8
  4. package/ios/VoipCloud.mm +214 -28
  5. package/ios/VoipCloud.xcframework/Info.plist +48 -0
  6. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/activesock.h +598 -0
  7. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/addr_resolv.h +189 -0
  8. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/array.h +95 -0
  9. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/assert.h +84 -0
  10. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/assert.h +36 -0
  11. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_armcc.h +57 -0
  12. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_clang.h +64 -0
  13. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_codew.h +55 -0
  14. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcc.h +79 -0
  15. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcce.h +54 -0
  16. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_msvc.h +87 -0
  17. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_mwcc.h +55 -0
  18. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/ctype.h +44 -0
  19. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/errno.h +44 -0
  20. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/high_precision.h +87 -0
  21. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/limits.h +66 -0
  22. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_alpha.h +35 -0
  23. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_armv4.h +38 -0
  24. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h +60 -0
  25. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h.in +59 -0
  26. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_i386.h +34 -0
  27. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_m68k.h +34 -0
  28. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_powerpc.h +35 -0
  29. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_sparc.h +34 -0
  30. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_x86_64.h +35 -0
  31. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/malloc.h +33 -0
  32. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h +245 -0
  33. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h.in +244 -0
  34. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_darwinos.h +141 -0
  35. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_linux.h +130 -0
  36. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_palmos.h +118 -0
  37. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_rtems.h +138 -0
  38. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_sunos.h +131 -0
  39. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_symbian.h +166 -0
  40. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32.h +148 -0
  41. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32_wince.h +145 -0
  42. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winphone8.h +149 -0
  43. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winuwp.h +149 -0
  44. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/rand.h +55 -0
  45. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/setjmp.h +49 -0
  46. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/size_t.h +31 -0
  47. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/socket.h +223 -0
  48. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdarg.h +31 -0
  49. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdfileio.h +31 -0
  50. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/string.h +178 -0
  51. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/time.h +41 -0
  52. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config.h +1537 -0
  53. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site.h +22 -0
  54. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_sample.h +485 -0
  55. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_test.h +11 -0
  56. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ctype.h +174 -0
  57. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/doxygen.h +995 -0
  58. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/errno.h +593 -0
  59. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/except.h +420 -0
  60. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/fifobuf.h +43 -0
  61. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_access.h +108 -0
  62. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_io.h +183 -0
  63. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/guid.h +119 -0
  64. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/hash.h +253 -0
  65. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ioqueue.h +955 -0
  66. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ip_helper.h +152 -0
  67. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/limits.h +57 -0
  68. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list.h +268 -0
  69. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list_i.h +120 -0
  70. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/lock.h +453 -0
  71. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/log.h +487 -0
  72. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/math.h +203 -0
  73. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/os.h +1536 -0
  74. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool.h +918 -0
  75. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_alt.h +212 -0
  76. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_buf.h +104 -0
  77. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_i.h +131 -0
  78. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rand.h +65 -0
  79. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rbtree.h +215 -0
  80. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock.h +1566 -0
  81. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_qos.h +429 -0
  82. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_select.h +151 -0
  83. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ssl_sock.h +1508 -0
  84. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string.h +963 -0
  85. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string_i.h +406 -0
  86. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/timer.h +386 -0
  87. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/types.h +594 -0
  88. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/unicode.h +140 -0
  89. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/file.hpp +187 -0
  90. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/hash.hpp +155 -0
  91. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/list.hpp +351 -0
  92. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/lock.hpp +148 -0
  93. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/os.hpp +869 -0
  94. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/pool.hpp +278 -0
  95. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/proactor.hpp +514 -0
  96. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/scanner.hpp +245 -0
  97. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/sock.hpp +443 -0
  98. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/string.hpp +467 -0
  99. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/timer.hpp +197 -0
  100. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/tree.hpp +128 -0
  101. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/types.hpp +174 -0
  102. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib++.hpp +34 -0
  103. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/base64.h +91 -0
  104. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli.h +530 -0
  105. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_console.h +116 -0
  106. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_imp.h +207 -0
  107. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_telnet.h +167 -0
  108. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/config.h +373 -0
  109. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/crc32.h +95 -0
  110. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns.h +460 -0
  111. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns_server.h +116 -0
  112. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/errno.h +455 -0
  113. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/getopt.h +144 -0
  114. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_md5.h +108 -0
  115. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_sha1.h +106 -0
  116. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/http_client.h +493 -0
  117. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/json.h +227 -0
  118. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/md5.h +73 -0
  119. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/pcap.h +195 -0
  120. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/resolver.h +515 -0
  121. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner.h +553 -0
  122. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
  123. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_uint.h +83 -0
  124. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/sha1.h +79 -0
  125. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/srv_resolver.h +221 -0
  126. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/string.h +101 -0
  127. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/stun_simple.h +288 -0
  128. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/types.h +94 -0
  129. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/xml.h +248 -0
  130. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util.h +75 -0
  131. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib.h +62 -0
  132. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/alaw_ulaw.h +212 -0
  133. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/audiodev.h +761 -0
  134. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi.h +201 -0
  135. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi_stream.h +195 -0
  136. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/bidirectional.h +66 -0
  137. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/circbuf.h +436 -0
  138. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/clock.h +338 -0
  139. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/codec.h +1192 -0
  140. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/conference.h +599 -0
  141. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config.h +1713 -0
  142. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h +43 -0
  143. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h.in +42 -0
  144. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/converter.h +386 -0
  145. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/delaybuf.h +175 -0
  146. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/doxygen.h +243 -0
  147. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo.h +420 -0
  148. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo_port.h +73 -0
  149. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/endpoint.h +389 -0
  150. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/errno.h +693 -0
  151. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/event.h +493 -0
  152. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/format.h +821 -0
  153. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/frame.h +331 -0
  154. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/g711.h +88 -0
  155. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/jbuf.h +484 -0
  156. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/master_port.h +198 -0
  157. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/mem_port.h +241 -0
  158. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/null_port.h +69 -0
  159. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/plc.h +114 -0
  160. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/port.h +565 -0
  161. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/resample.h +199 -0
  162. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp.h +511 -0
  163. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_fb.h +487 -0
  164. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_xr.h +477 -0
  165. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtp.h +457 -0
  166. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp.h +830 -0
  167. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp_neg.h +822 -0
  168. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/session.h +435 -0
  169. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/signatures.h +217 -0
  170. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/silencedet.h +199 -0
  171. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound.h +353 -0
  172. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound_port.h +397 -0
  173. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/splitcomb.h +142 -0
  174. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stereo.h +203 -0
  175. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream.h +541 -0
  176. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream_common.h +123 -0
  177. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/symbian_sound_aps.h +47 -0
  178. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/tonegen.h +302 -0
  179. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport.h +1069 -0
  180. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_adapter_sample.h +75 -0
  181. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_ice.h +458 -0
  182. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_loop.h +158 -0
  183. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_srtp.h +579 -0
  184. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_udp.h +161 -0
  185. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/types.h +345 -0
  186. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec.h +896 -0
  187. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec_util.h +194 -0
  188. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_conf.h +310 -0
  189. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_port.h +269 -0
  190. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_stream.h +514 -0
  191. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_tee.h +141 -0
  192. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/videodev.h +859 -0
  193. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_playlist.h +131 -0
  194. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_port.h +342 -0
  195. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wave.h +183 -0
  196. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wsola.h +218 -0
  197. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev.h +110 -0
  198. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
  199. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiotest.h +115 -0
  200. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/config.h +525 -0
  201. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/errno.h +227 -0
  202. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_helper.h +1236 -0
  203. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
  204. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
  205. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
  206. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/audio_codecs.h +97 -0
  207. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/bcg729.h +120 -0
  208. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config.h +720 -0
  209. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h +104 -0
  210. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h.in +103 -0
  211. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
  212. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g722.h +103 -0
  213. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221.h +164 -0
  214. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
  215. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/gsm.h +86 -0
  216. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h263_packetizer.h +145 -0
  217. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h264_packetizer.h +163 -0
  218. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ilbc.h +118 -0
  219. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ipp_codecs.h +321 -0
  220. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/l16.h +83 -0
  221. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opencore_amr.h +145 -0
  222. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/openh264.h +68 -0
  223. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opus.h +160 -0
  224. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/passthrough.h +276 -0
  225. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/silk.h +126 -0
  226. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/speex.h +149 -0
  227. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/types.h +145 -0
  228. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vid_toolbox.h +70 -0
  229. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx.h +68 -0
  230. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
  231. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec.h +47 -0
  232. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/avi_dev.h +139 -0
  233. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/config.h +326 -0
  234. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/errno.h +158 -0
  235. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/opengl_dev.h +52 -0
  236. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev.h +119 -0
  237. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev_imp.h +229 -0
  238. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia.h +81 -0
  239. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_audiodev.h +32 -0
  240. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_videodev.h +30 -0
  241. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/config.h +596 -0
  242. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/errno.h +225 -0
  243. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_session.h +1122 -0
  244. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_strans.h +1112 -0
  245. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/nat_detect.h +233 -0
  246. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_auth.h +456 -0
  247. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_config.h +135 -0
  248. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_msg.h +1856 -0
  249. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_session.h +763 -0
  250. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_sock.h +496 -0
  251. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_transaction.h +291 -0
  252. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_session.h +968 -0
  253. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_sock.h +673 -0
  254. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/types.h +75 -0
  255. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/upnp.h +147 -0
  256. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath.h +46 -0
  257. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/print_util.h +166 -0
  258. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth.h +637 -0
  259. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_aka.h +212 -0
  260. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_msg.h +269 -0
  261. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_parser.h +74 -0
  262. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h +39 -0
  263. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h.in +38 -0
  264. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_config.h +1545 -0
  265. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_dialog.h +935 -0
  266. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_endpoint.h +715 -0
  267. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_errno.h +544 -0
  268. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_event.h +230 -0
  269. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_module.h +221 -0
  270. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_msg.h +2134 -0
  271. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_multipart.h +276 -0
  272. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_parser.h +465 -0
  273. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_private.h +31 -0
  274. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_resolve.h +347 -0
  275. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_tel_uri.h +83 -0
  276. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transaction.h +542 -0
  277. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport.h +1672 -0
  278. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_loop.h +146 -0
  279. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tcp.h +300 -0
  280. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tls.h +642 -0
  281. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_udp.h +389 -0
  282. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_types.h +265 -0
  283. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_ua_layer.h +159 -0
  284. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_uri.h +470 -0
  285. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_util.h +888 -0
  286. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/errno.h +117 -0
  287. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub.h +561 -0
  288. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub_msg.h +119 -0
  289. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/iscomposing.h +137 -0
  290. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/mwi.h +211 -0
  291. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/pidf.h +177 -0
  292. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/presence.h +416 -0
  293. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/publish.h +350 -0
  294. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/rpid.h +150 -0
  295. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/types.h +30 -0
  296. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/xpidf.h +137 -0
  297. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_100rel.h +244 -0
  298. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_inv.h +1224 -0
  299. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_regc.h +497 -0
  300. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_replaces.h +303 -0
  301. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_timer.h +274 -0
  302. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_xfer.h +207 -0
  303. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip.h +61 -0
  304. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_auth.h +37 -0
  305. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_simple.h +45 -0
  306. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_ua.h +31 -0
  307. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua.h +8899 -0
  308. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua_internal.h +989 -0
  309. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua.h +1 -0
  310. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/account.hpp +2123 -0
  311. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/call.hpp +2253 -0
  312. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/config.hpp +72 -0
  313. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/doxygen.hpp +48 -0
  314. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/endpoint.hpp +2160 -0
  315. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/json.hpp +115 -0
  316. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/media.hpp +2748 -0
  317. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/persistent.hpp +715 -0
  318. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/presence.hpp +368 -0
  319. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/siptypes.hpp +1013 -0
  320. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/types.hpp +283 -0
  321. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2.hpp +28 -0
  322. package/ios/VoipCloud.xcframework/ios-arm64/libVoipCloud.a +0 -0
  323. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/activesock.h +598 -0
  324. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/addr_resolv.h +189 -0
  325. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/array.h +95 -0
  326. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/assert.h +84 -0
  327. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/assert.h +36 -0
  328. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_armcc.h +57 -0
  329. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_clang.h +64 -0
  330. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_codew.h +55 -0
  331. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcc.h +79 -0
  332. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcce.h +54 -0
  333. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_msvc.h +87 -0
  334. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_mwcc.h +55 -0
  335. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/ctype.h +44 -0
  336. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/errno.h +44 -0
  337. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/high_precision.h +87 -0
  338. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/limits.h +66 -0
  339. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_alpha.h +35 -0
  340. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_armv4.h +38 -0
  341. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h +60 -0
  342. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h.in +59 -0
  343. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_i386.h +34 -0
  344. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_m68k.h +34 -0
  345. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_powerpc.h +35 -0
  346. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_sparc.h +34 -0
  347. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_x86_64.h +35 -0
  348. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/malloc.h +33 -0
  349. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h +245 -0
  350. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h.in +244 -0
  351. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_darwinos.h +141 -0
  352. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_linux.h +130 -0
  353. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_palmos.h +118 -0
  354. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_rtems.h +138 -0
  355. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_sunos.h +131 -0
  356. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_symbian.h +166 -0
  357. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32.h +148 -0
  358. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32_wince.h +145 -0
  359. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winphone8.h +149 -0
  360. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winuwp.h +149 -0
  361. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/rand.h +55 -0
  362. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/setjmp.h +49 -0
  363. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/size_t.h +31 -0
  364. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/socket.h +223 -0
  365. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdarg.h +31 -0
  366. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdfileio.h +31 -0
  367. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/string.h +178 -0
  368. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/time.h +41 -0
  369. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config.h +1537 -0
  370. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site.h +22 -0
  371. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_sample.h +485 -0
  372. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_test.h +11 -0
  373. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ctype.h +174 -0
  374. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/doxygen.h +995 -0
  375. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/errno.h +593 -0
  376. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/except.h +420 -0
  377. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/fifobuf.h +43 -0
  378. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_access.h +108 -0
  379. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_io.h +183 -0
  380. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/guid.h +119 -0
  381. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/hash.h +253 -0
  382. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ioqueue.h +955 -0
  383. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ip_helper.h +152 -0
  384. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/limits.h +57 -0
  385. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list.h +268 -0
  386. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list_i.h +120 -0
  387. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/lock.h +453 -0
  388. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/log.h +487 -0
  389. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/math.h +203 -0
  390. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/os.h +1536 -0
  391. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool.h +918 -0
  392. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_alt.h +212 -0
  393. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_buf.h +104 -0
  394. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_i.h +131 -0
  395. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rand.h +65 -0
  396. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rbtree.h +215 -0
  397. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock.h +1566 -0
  398. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_qos.h +429 -0
  399. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_select.h +151 -0
  400. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ssl_sock.h +1508 -0
  401. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string.h +963 -0
  402. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string_i.h +406 -0
  403. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/timer.h +386 -0
  404. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/types.h +594 -0
  405. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/unicode.h +140 -0
  406. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/file.hpp +187 -0
  407. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/hash.hpp +155 -0
  408. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/list.hpp +351 -0
  409. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/lock.hpp +148 -0
  410. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/os.hpp +869 -0
  411. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/pool.hpp +278 -0
  412. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/proactor.hpp +514 -0
  413. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/scanner.hpp +245 -0
  414. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/sock.hpp +443 -0
  415. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/string.hpp +467 -0
  416. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/timer.hpp +197 -0
  417. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/tree.hpp +128 -0
  418. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/types.hpp +174 -0
  419. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib++.hpp +34 -0
  420. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/base64.h +91 -0
  421. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli.h +530 -0
  422. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_console.h +116 -0
  423. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_imp.h +207 -0
  424. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_telnet.h +167 -0
  425. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/config.h +373 -0
  426. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/crc32.h +95 -0
  427. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns.h +460 -0
  428. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns_server.h +116 -0
  429. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/errno.h +455 -0
  430. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/getopt.h +144 -0
  431. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_md5.h +108 -0
  432. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_sha1.h +106 -0
  433. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/http_client.h +493 -0
  434. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/json.h +227 -0
  435. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/md5.h +73 -0
  436. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/pcap.h +195 -0
  437. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/resolver.h +515 -0
  438. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner.h +553 -0
  439. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
  440. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_uint.h +83 -0
  441. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/sha1.h +79 -0
  442. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/srv_resolver.h +221 -0
  443. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/string.h +101 -0
  444. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/stun_simple.h +288 -0
  445. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/types.h +94 -0
  446. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/xml.h +248 -0
  447. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util.h +75 -0
  448. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib.h +62 -0
  449. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/alaw_ulaw.h +212 -0
  450. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/audiodev.h +761 -0
  451. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi.h +201 -0
  452. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi_stream.h +195 -0
  453. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/bidirectional.h +66 -0
  454. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/circbuf.h +436 -0
  455. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/clock.h +338 -0
  456. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/codec.h +1192 -0
  457. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/conference.h +599 -0
  458. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config.h +1713 -0
  459. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h +43 -0
  460. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h.in +42 -0
  461. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/converter.h +386 -0
  462. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/delaybuf.h +175 -0
  463. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/doxygen.h +243 -0
  464. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo.h +420 -0
  465. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo_port.h +73 -0
  466. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/endpoint.h +389 -0
  467. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/errno.h +693 -0
  468. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/event.h +493 -0
  469. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/format.h +821 -0
  470. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/frame.h +331 -0
  471. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/g711.h +88 -0
  472. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/jbuf.h +484 -0
  473. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/master_port.h +198 -0
  474. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/mem_port.h +241 -0
  475. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/null_port.h +69 -0
  476. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/plc.h +114 -0
  477. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/port.h +565 -0
  478. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/resample.h +199 -0
  479. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp.h +511 -0
  480. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_fb.h +487 -0
  481. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_xr.h +477 -0
  482. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtp.h +457 -0
  483. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp.h +830 -0
  484. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp_neg.h +822 -0
  485. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/session.h +435 -0
  486. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/signatures.h +217 -0
  487. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/silencedet.h +199 -0
  488. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound.h +353 -0
  489. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound_port.h +397 -0
  490. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/splitcomb.h +142 -0
  491. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stereo.h +203 -0
  492. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream.h +541 -0
  493. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream_common.h +123 -0
  494. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/symbian_sound_aps.h +47 -0
  495. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/tonegen.h +302 -0
  496. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport.h +1069 -0
  497. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_adapter_sample.h +75 -0
  498. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_ice.h +458 -0
  499. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_loop.h +158 -0
  500. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_srtp.h +579 -0
  501. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_udp.h +161 -0
  502. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/types.h +345 -0
  503. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec.h +896 -0
  504. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec_util.h +194 -0
  505. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_conf.h +310 -0
  506. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_port.h +269 -0
  507. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_stream.h +514 -0
  508. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_tee.h +141 -0
  509. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/videodev.h +859 -0
  510. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_playlist.h +131 -0
  511. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_port.h +342 -0
  512. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wave.h +183 -0
  513. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wsola.h +218 -0
  514. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev.h +110 -0
  515. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
  516. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiotest.h +115 -0
  517. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/config.h +525 -0
  518. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/errno.h +227 -0
  519. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_helper.h +1236 -0
  520. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
  521. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
  522. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
  523. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/audio_codecs.h +97 -0
  524. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/bcg729.h +120 -0
  525. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config.h +720 -0
  526. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h +104 -0
  527. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h.in +103 -0
  528. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
  529. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g722.h +103 -0
  530. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221.h +164 -0
  531. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
  532. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/gsm.h +86 -0
  533. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h263_packetizer.h +145 -0
  534. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h264_packetizer.h +163 -0
  535. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ilbc.h +118 -0
  536. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ipp_codecs.h +321 -0
  537. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/l16.h +83 -0
  538. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opencore_amr.h +145 -0
  539. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/openh264.h +68 -0
  540. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opus.h +160 -0
  541. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/passthrough.h +276 -0
  542. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/silk.h +126 -0
  543. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/speex.h +149 -0
  544. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/types.h +145 -0
  545. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vid_toolbox.h +70 -0
  546. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx.h +68 -0
  547. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
  548. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec.h +47 -0
  549. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/avi_dev.h +139 -0
  550. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/config.h +326 -0
  551. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/errno.h +158 -0
  552. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/opengl_dev.h +52 -0
  553. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev.h +119 -0
  554. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev_imp.h +229 -0
  555. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia.h +81 -0
  556. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_audiodev.h +32 -0
  557. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_videodev.h +30 -0
  558. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/config.h +596 -0
  559. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/errno.h +225 -0
  560. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_session.h +1122 -0
  561. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_strans.h +1112 -0
  562. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/nat_detect.h +233 -0
  563. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_auth.h +456 -0
  564. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_config.h +135 -0
  565. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_msg.h +1856 -0
  566. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_session.h +763 -0
  567. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_sock.h +496 -0
  568. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_transaction.h +291 -0
  569. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_session.h +968 -0
  570. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_sock.h +673 -0
  571. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/types.h +75 -0
  572. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/upnp.h +147 -0
  573. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath.h +46 -0
  574. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/print_util.h +166 -0
  575. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth.h +637 -0
  576. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_aka.h +212 -0
  577. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_msg.h +269 -0
  578. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_parser.h +74 -0
  579. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h +39 -0
  580. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h.in +38 -0
  581. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_config.h +1545 -0
  582. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_dialog.h +935 -0
  583. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_endpoint.h +715 -0
  584. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_errno.h +544 -0
  585. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_event.h +230 -0
  586. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_module.h +221 -0
  587. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_msg.h +2134 -0
  588. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_multipart.h +276 -0
  589. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_parser.h +465 -0
  590. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_private.h +31 -0
  591. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_resolve.h +347 -0
  592. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_tel_uri.h +83 -0
  593. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transaction.h +542 -0
  594. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport.h +1672 -0
  595. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_loop.h +146 -0
  596. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tcp.h +300 -0
  597. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tls.h +642 -0
  598. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_udp.h +389 -0
  599. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_types.h +265 -0
  600. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_ua_layer.h +159 -0
  601. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_uri.h +470 -0
  602. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_util.h +888 -0
  603. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/errno.h +117 -0
  604. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub.h +561 -0
  605. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub_msg.h +119 -0
  606. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/iscomposing.h +137 -0
  607. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/mwi.h +211 -0
  608. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/pidf.h +177 -0
  609. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/presence.h +416 -0
  610. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/publish.h +350 -0
  611. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/rpid.h +150 -0
  612. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/types.h +30 -0
  613. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/xpidf.h +137 -0
  614. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_100rel.h +244 -0
  615. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_inv.h +1224 -0
  616. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_regc.h +497 -0
  617. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_replaces.h +303 -0
  618. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_timer.h +274 -0
  619. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_xfer.h +207 -0
  620. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip.h +61 -0
  621. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_auth.h +37 -0
  622. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_simple.h +45 -0
  623. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_ua.h +31 -0
  624. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua.h +8899 -0
  625. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua_internal.h +989 -0
  626. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua.h +1 -0
  627. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/account.hpp +2123 -0
  628. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/call.hpp +2253 -0
  629. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/config.hpp +72 -0
  630. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/doxygen.hpp +48 -0
  631. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/endpoint.hpp +2160 -0
  632. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/json.hpp +115 -0
  633. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/media.hpp +2748 -0
  634. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/persistent.hpp +715 -0
  635. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/presence.hpp +368 -0
  636. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/siptypes.hpp +1013 -0
  637. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/types.hpp +283 -0
  638. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2.hpp +28 -0
  639. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/libVoipCloud.a +0 -0
  640. package/ios/VoipCloudEngine.h +62 -0
  641. package/ios/VoipCloudEngine.mm +571 -0
  642. package/package.json +4 -3
  643. package/react-native-voipcloud.podspec +27 -1
  644. package/react-native.config.js +22 -0
@@ -0,0 +1,2160 @@
1
+ /*
2
+ * Copyright (C) 2013 Teluu Inc. (http://www.teluu.com)
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ */
18
+ #ifndef __PJSUA2_UA_HPP__
19
+ #define __PJSUA2_UA_HPP__
20
+
21
+ /**
22
+ * @file pjsua2/endpoint.hpp
23
+ * @brief PJSUA2 Base Agent Operation
24
+ */
25
+ #include <pjsua2/persistent.hpp>
26
+ #include <pjsua2/media.hpp>
27
+ #include <pjsua2/siptypes.hpp>
28
+ #include <list>
29
+ #include <map>
30
+
31
+ /** PJSUA2 API is inside pj namespace */
32
+ namespace pj
33
+ {
34
+
35
+ /**
36
+ * @defgroup PJSUA2_UA Endpoint
37
+ * @ingroup PJSUA2_Ref
38
+ * @{
39
+ */
40
+
41
+ using std::string;
42
+ using std::vector;
43
+
44
+
45
+ //////////////////////////////////////////////////////////////////////////////
46
+
47
+ /**
48
+ * Argument to Endpoint::onNatDetectionComplete() callback.
49
+ */
50
+ struct OnNatDetectionCompleteParam
51
+ {
52
+ /**
53
+ * Status of the detection process. If this value is not PJ_SUCCESS,
54
+ * the detection has failed and \a nat_type field will contain
55
+ * PJ_STUN_NAT_TYPE_UNKNOWN.
56
+ */
57
+ pj_status_t status;
58
+
59
+ /**
60
+ * The text describing the status, if the status is not PJ_SUCCESS.
61
+ */
62
+ string reason;
63
+
64
+ /**
65
+ * This contains the NAT type as detected by the detection procedure.
66
+ * This value is only valid when the \a status is PJ_SUCCESS.
67
+ */
68
+ pj_stun_nat_type natType;
69
+
70
+ /**
71
+ * Text describing that NAT type.
72
+ */
73
+ string natTypeName;
74
+
75
+ };
76
+
77
+ /**
78
+ * Argument to Endpoint::onNatCheckStunServersComplete() callback.
79
+ */
80
+ struct OnNatCheckStunServersCompleteParam
81
+ {
82
+ /**
83
+ * Arbitrary user data that was passed to Endpoint::natCheckStunServers()
84
+ * function.
85
+ */
86
+ Token userData;
87
+
88
+ /**
89
+ * This will contain PJ_SUCCESS if at least one usable STUN server
90
+ * is found, otherwise it will contain the last error code during
91
+ * the operation.
92
+ */
93
+ pj_status_t status;
94
+
95
+ /**
96
+ * The server name that yields successful result. This will only
97
+ * contain value if status is successful.
98
+ */
99
+ string name;
100
+
101
+ /**
102
+ * The server IP address and port in "IP:port" format. This will only
103
+ * contain value if status is successful.
104
+ */
105
+ SocketAddress addr;
106
+ };
107
+
108
+ /**
109
+ * Parameter of Endpoint::onTimer() callback.
110
+ */
111
+ struct OnTimerParam
112
+ {
113
+ /**
114
+ * Arbitrary user data that was passed to Endpoint::utilTimerSchedule()
115
+ * function.
116
+ */
117
+ Token userData;
118
+
119
+ /**
120
+ * The interval of this timer, in miliseconds.
121
+ */
122
+ unsigned msecDelay;
123
+ };
124
+
125
+ /**
126
+ * SSL certificate type and name structure.
127
+ */
128
+ struct SslCertName
129
+ {
130
+ pj_ssl_cert_name_type type; /**< Name type */
131
+ string name; /**< The name */
132
+
133
+ public:
134
+ /**
135
+ * Default constructor
136
+ */
137
+ SslCertName() : type(PJ_SSL_CERT_NAME_UNKNOWN)
138
+ {}
139
+ };
140
+
141
+ /** Array of SSL certificate type and name. */
142
+ typedef std::vector<SslCertName> SslCertNameVector;
143
+
144
+ /**
145
+ * SSL certificate information.
146
+ */
147
+ struct SslCertInfo
148
+ {
149
+ unsigned version; /**< Certificate version */
150
+ unsigned char serialNo[20]; /**< Serial number, array
151
+ of octets, first index
152
+ is MSB */
153
+ string subjectCn; /**< Subject common name */
154
+ string subjectInfo; /**< One line subject, fields
155
+ are separated by slash, e.g:
156
+ "CN=sample.org/OU=HRD" */
157
+
158
+ string issuerCn; /**< Issuer common name */
159
+ string issuerInfo; /**< One line subject, fields
160
+ are separated by slash */
161
+
162
+ TimeVal validityStart; /**< Validity start */
163
+ TimeVal validityEnd; /**< Validity end */
164
+ bool validityGmt; /**< Flag if validity
165
+ date/time use GMT */
166
+
167
+ SslCertNameVector subjectAltName; /**< Subject alternative
168
+ name extension */
169
+
170
+ string raw; /**< Raw certificate in PEM
171
+ format, only available
172
+ for remote certificate */
173
+
174
+ public:
175
+ /**
176
+ * Constructor.
177
+ */
178
+ SslCertInfo();
179
+
180
+ /**
181
+ * Check if the info is set with empty values.
182
+ *
183
+ * @return True if the info is empty.
184
+ */
185
+ bool isEmpty() const;
186
+
187
+ /**
188
+ * Convert from pjsip
189
+ */
190
+ void fromPj(const pj_ssl_cert_info &info);
191
+
192
+ private:
193
+ bool empty;
194
+ };
195
+
196
+ /**
197
+ * TLS transport information.
198
+ */
199
+ struct TlsInfo
200
+ {
201
+ /**
202
+ * Describes whether secure socket connection is established, i.e: TLS/SSL
203
+ * handshaking has been done successfully.
204
+ */
205
+ bool established;
206
+
207
+ /**
208
+ * Describes secure socket protocol being used, see #pj_ssl_sock_proto.
209
+ * Use bitwise OR operation to combine the protocol type.
210
+ */
211
+ unsigned protocol;
212
+
213
+ /**
214
+ * Describes cipher suite being used, this will only be set when connection
215
+ * is established.
216
+ */
217
+ pj_ssl_cipher cipher;
218
+
219
+ /**
220
+ * Describes cipher name being used, this will only be set when connection
221
+ * is established.
222
+ */
223
+ string cipherName;
224
+
225
+ /**
226
+ * Describes local address.
227
+ */
228
+ SocketAddress localAddr;
229
+
230
+ /**
231
+ * Describes remote address.
232
+ */
233
+ SocketAddress remoteAddr;
234
+
235
+ /**
236
+ * Describes active local certificate info. Use SslCertInfo.isEmpty()
237
+ * to check if the local cert info is available.
238
+ */
239
+ SslCertInfo localCertInfo;
240
+
241
+ /**
242
+ * Describes active remote certificate info. Use SslCertInfo.isEmpty()
243
+ * to check if the remote cert info is available.
244
+ */
245
+ SslCertInfo remoteCertInfo;
246
+
247
+ /**
248
+ * Status of peer certificate verification.
249
+ */
250
+ unsigned verifyStatus;
251
+
252
+ /**
253
+ * Error messages (if any) of peer certificate verification, based on
254
+ * the field verifyStatus above.
255
+ */
256
+ StringVector verifyMsgs;
257
+
258
+ public:
259
+ /**
260
+ * Constructor.
261
+ */
262
+ TlsInfo();
263
+
264
+ /**
265
+ * Check if the info is set with empty values.
266
+ *
267
+ * @return True if the info is empty.
268
+ */
269
+ bool isEmpty() const;
270
+
271
+ /**
272
+ * Convert from pjsip
273
+ */
274
+ void fromPj(const pjsip_tls_state_info &info);
275
+
276
+ private:
277
+ bool empty;
278
+ };
279
+
280
+ /**
281
+ * Parameter of Endpoint::onTransportState() callback.
282
+ */
283
+ struct OnTransportStateParam
284
+ {
285
+ /**
286
+ * The transport handle.
287
+ */
288
+ TransportHandle hnd;
289
+
290
+ /**
291
+ * The transport type.
292
+ */
293
+ string type;
294
+
295
+ /**
296
+ * Transport current state.
297
+ */
298
+ pjsip_transport_state state;
299
+
300
+ /**
301
+ * The last error code related to the transport state.
302
+ */
303
+ pj_status_t lastError;
304
+
305
+ /**
306
+ * TLS transport info, only used if transport type is TLS. Use
307
+ * TlsInfo.isEmpty() to check if this info is available.
308
+ */
309
+ TlsInfo tlsInfo;
310
+ };
311
+
312
+ /**
313
+ * Parameter of Endpoint::onSelectAccount() callback.
314
+ */
315
+ struct OnSelectAccountParam
316
+ {
317
+ /**
318
+ * The incoming request.
319
+ */
320
+ SipRxData rdata;
321
+
322
+ /**
323
+ * The account index to be used to handle the request.
324
+ * Upon entry, this will be filled by the account index
325
+ * chosen by the library. Application may change it to
326
+ * another value to use another account.
327
+ */
328
+ int accountIndex;
329
+ };
330
+
331
+ /**
332
+ * Parameter of Endpoint::handleIpChange().
333
+ */
334
+ struct IpChangeParam {
335
+ /**
336
+ * If set to PJ_TRUE, this will restart the transport listener.
337
+ *
338
+ * Default : PJ_TRUE
339
+ */
340
+ bool restartListener;
341
+
342
+ /**
343
+ * If \a restartListener is set to PJ_TRUE, some delay might be needed
344
+ * for the listener to be restarted. Use this to set the delay.
345
+ *
346
+ * Default : PJSUA_TRANSPORT_RESTART_DELAY_TIME
347
+ */
348
+ unsigned restartLisDelay;
349
+
350
+ public:
351
+ /**
352
+ * Constructor.
353
+ */
354
+ IpChangeParam();
355
+
356
+ /**
357
+ * Export to pjsua_ip_change_param.
358
+ */
359
+ pjsua_ip_change_param toPj() const;
360
+
361
+ /**
362
+ * Convert from pjsip
363
+ */
364
+ void fromPj(const pjsua_ip_change_param &param);
365
+ };
366
+
367
+ /**
368
+ * Information of Update contact on IP change progress.
369
+ */
370
+ struct RegProgressParam
371
+ {
372
+ /**
373
+ * Indicate if this is a Register or Un-Register message.
374
+ */
375
+ bool isRegister;
376
+
377
+ /**
378
+ * SIP status code received.
379
+ */
380
+ int code;
381
+ };
382
+
383
+ /**
384
+ * Parameter of Endpoint::onIpChangeProgress().
385
+ */
386
+ struct OnIpChangeProgressParam
387
+ {
388
+ /**
389
+ * The IP change progress operation.
390
+ */
391
+ pjsua_ip_change_op op;
392
+
393
+ /**
394
+ * The operation progress status.
395
+ */
396
+ pj_status_t status;
397
+
398
+ /**
399
+ * Information of the transport id. This is only available when the
400
+ * operation is PJSUA_IP_CHANGE_OP_RESTART_LIS.
401
+ */
402
+ TransportId transportId;
403
+
404
+ /**
405
+ * Information of the account id. This is only available when the
406
+ * operation is:
407
+ * - PJSUA_IP_CHANGE_OP_ACC_SHUTDOWN_TP
408
+ * - PJSUA_IP_CHANGE_OP_ACC_UPDATE_CONTACT
409
+ * - PJSUA_IP_CHANGE_OP_ACC_HANGUP_CALLS
410
+ * - PJSUA_IP_CHANGE_OP_ACC_REINVITE_CALLS
411
+ */
412
+ int accId;
413
+
414
+ /**
415
+ * Information of the call id. This is only available when the operation is
416
+ * PJSUA_IP_CHANGE_OP_ACC_HANGUP_CALLS or
417
+ * PJSUA_IP_CHANGE_OP_ACC_REINVITE_CALLS
418
+ */
419
+ int callId;
420
+
421
+ /**
422
+ * Registration information. This is only available when the operation is
423
+ * PJSUA_IP_CHANGE_OP_ACC_UPDATE_CONTACT
424
+ */
425
+ RegProgressParam regInfo;
426
+ };
427
+
428
+ /**
429
+ * Parameter of Endpoint::onCallMediaEvent() callback.
430
+ */
431
+ struct OnMediaEventParam
432
+ {
433
+ /**
434
+ * The media event.
435
+ */
436
+ MediaEvent ev;
437
+ };
438
+
439
+ /**
440
+ * Parameter of Endpoint::onRejectedIncomingCall() callback.
441
+ */
442
+ struct OnRejectedIncomingCallParam
443
+ {
444
+ /**
445
+ * The incoming call id. This will be set to PJSUA_INVALID_ID when there is
446
+ * no available call slot at the time.
447
+ */
448
+ pjsua_call_id callId;
449
+
450
+ /**
451
+ * Local URI.
452
+ */
453
+ std::string localInfo;
454
+
455
+ /**
456
+ * Remote URI.
457
+ */
458
+ std::string remoteInfo;
459
+
460
+ /**
461
+ * Rejection code.
462
+ */
463
+ int statusCode;
464
+
465
+ /**
466
+ * Rejection text.
467
+ */
468
+ std::string reason;
469
+
470
+ /**
471
+ * The original INVITE message, on some cases it is not available.
472
+ */
473
+ SipRxData rdata;
474
+ };
475
+
476
+ /**
477
+ * This structure describes authentication challenge used in Proxy-Authenticate
478
+ * or WWW-Authenticate for digest authentication scheme.
479
+ */
480
+ struct DigestChallenge
481
+ {
482
+ /**
483
+ * Realm for the challenge.
484
+ * */
485
+ std::string realm;
486
+
487
+ /**
488
+ * Other parameters.
489
+ */
490
+ StringToStringMap otherParam;
491
+
492
+ /**
493
+ * Domain.
494
+ */
495
+ std::string domain;
496
+
497
+ /**
498
+ * Nonce challenge.
499
+ */
500
+ std::string nonce;
501
+
502
+ /**
503
+ * Opaque value.
504
+ */
505
+ std::string opaque;
506
+
507
+ /**
508
+ * Stale parameter.
509
+ */
510
+ int stale;
511
+
512
+ /**
513
+ * Algorithm parameter.
514
+ */
515
+ std::string algorithm;
516
+
517
+ /**
518
+ * Quality of protection.
519
+ */
520
+ std::string qop;
521
+
522
+ /**
523
+ * Convert from pjsip
524
+ */
525
+ void fromPj(const pjsip_digest_challenge &prm);
526
+
527
+ /**
528
+ * Convert to pjsip
529
+ */
530
+ pjsip_digest_challenge toPj() const;
531
+ };
532
+
533
+ /**
534
+ * This structure describe credential used in Authorization and
535
+ * Proxy-Authorization header for digest authentication scheme.
536
+ */
537
+ struct DigestCredential
538
+ {
539
+ /**
540
+ *Realm of the credential
541
+ */
542
+ std::string realm;
543
+
544
+ /**
545
+ *Other parameters.
546
+ */
547
+ StringToStringMap otherParam;
548
+
549
+ /**
550
+ *Username parameter.
551
+ */
552
+ std::string username;
553
+
554
+ /**
555
+ *Nonce parameter.
556
+ */
557
+ std::string nonce;
558
+
559
+ /**
560
+ *URI parameter.
561
+ */
562
+ std::string uri;
563
+
564
+ /**
565
+ *Response digest.
566
+ */
567
+ std::string response;
568
+
569
+ /**
570
+ *Algorithm.
571
+ */
572
+ std::string algorithm;
573
+
574
+ /**
575
+ *Cnonce.
576
+ */
577
+ std::string cnonce;
578
+
579
+ /**
580
+ *Opaque value.
581
+ */
582
+ std::string opaque;
583
+
584
+ /**
585
+ *Quality of protection.
586
+ */
587
+ std::string qop;
588
+
589
+ /**
590
+ *Nonce count.
591
+ */
592
+ std::string nc;
593
+
594
+ /**
595
+ * Convert from pjsip
596
+ */
597
+ void fromPj(const pjsip_digest_credential &prm);
598
+
599
+ /**
600
+ * Convert to pjsip
601
+ */
602
+ pjsip_digest_credential toPj() const;
603
+ };
604
+
605
+
606
+ /**
607
+ * Parameters for onCredAuth account method.
608
+ */
609
+ struct OnCredAuthParam
610
+ {
611
+ /** Digest challenge */
612
+ DigestChallenge digestChallenge;
613
+
614
+ /** Credential info */
615
+ AuthCredInfo credentialInfo;
616
+
617
+ /** Method */
618
+ std::string method;
619
+
620
+ /** Digest credential */
621
+ DigestCredential digestCredential;
622
+ };
623
+
624
+ //////////////////////////////////////////////////////////////////////////////
625
+ /**
626
+ * SIP User Agent related settings.
627
+ */
628
+ struct UaConfig : public PersistentObject
629
+ {
630
+ /**
631
+ * Maximum calls to support (default: 4). The value specified here
632
+ * must be smaller than the compile time maximum settings
633
+ * PJSUA_MAX_CALLS, which by default is 32. To increase this
634
+ * limit, the library must be recompiled with new PJSUA_MAX_CALLS
635
+ * value.
636
+ */
637
+ unsigned maxCalls;
638
+
639
+ /**
640
+ * Number of worker threads. Normally application will want to have at
641
+ * least one worker thread, unless when it wants to poll the library
642
+ * periodically, which in this case the worker thread can be set to
643
+ * zero.
644
+ */
645
+ unsigned threadCnt;
646
+
647
+ /**
648
+ * When this flag is non-zero, all callbacks that come from thread
649
+ * other than main thread will be posted to the main thread and
650
+ * to be executed by Endpoint::libHandleEvents() function. This
651
+ * includes the logging callback. Note that this will only work if
652
+ * threadCnt is set to zero and Endpoint::libHandleEvents() is
653
+ * performed by main thread. By default, the main thread is set
654
+ * from the thread that invoke Endpoint::libCreate()
655
+ *
656
+ * Default: false
657
+ */
658
+ bool mainThreadOnly;
659
+
660
+ /**
661
+ * Array of nameservers to be used by the SIP resolver subsystem.
662
+ * The order of the name server specifies the priority (first name
663
+ * server will be used first, unless it is not reachable).
664
+ */
665
+ StringVector nameserver;
666
+
667
+ /**
668
+ * Specify the URL of outbound proxies to visit for all outgoing requests.
669
+ * The outbound proxies will be used for all accounts, and it will
670
+ * be used to build the route set for outgoing requests. The final
671
+ * route set for outgoing requests will consists of the outbound proxies
672
+ * and the proxy configured in the account.
673
+ */
674
+ StringVector outboundProxies;
675
+
676
+ /**
677
+ * Optional user agent string (default empty). If it's empty, no
678
+ * User-Agent header will be sent with outgoing requests.
679
+ */
680
+ string userAgent;
681
+
682
+ /**
683
+ * Array of STUN servers to try. The library will try to resolve and
684
+ * contact each of the STUN server entry until it finds one that is
685
+ * usable. Each entry may be a domain name, host name, IP address, and
686
+ * it may contain an optional port number. For example:
687
+ * - "pjsip.org" (domain name)
688
+ * - "sip.pjsip.org" (host name)
689
+ * - "pjsip.org:33478" (domain name and a non-standard port number)
690
+ * - "10.0.0.1:3478" (IP address and port number)
691
+ *
692
+ * When nameserver is configured in the \a pjsua_config.nameserver field,
693
+ * if entry is not an IP address, it will be resolved with DNS SRV
694
+ * resolution first, and it will fallback to use DNS A resolution if this
695
+ * fails. Port number may be specified even if the entry is a domain name,
696
+ * in case the DNS SRV resolution should fallback to a non-standard port.
697
+ *
698
+ * When nameserver is not configured, entries will be resolved with
699
+ * pj_gethostbyname() if it's not an IP address. Port number may be
700
+ * specified if the server is not listening in standard STUN port.
701
+ */
702
+ StringVector stunServer;
703
+
704
+ /**
705
+ * This specifies if the library should try to do an IPv6 resolution of
706
+ * the STUN servers if the IPv4 resolution fails. It can be useful
707
+ * in an IPv6-only environment, including on NAT64.
708
+ *
709
+ * Default: FALSE
710
+ */
711
+ bool stunTryIpv6;
712
+
713
+ /**
714
+ * This specifies if the library startup should ignore failure with the
715
+ * STUN servers. If this is set to PJ_FALSE, the library will refuse to
716
+ * start if it fails to resolve or contact any of the STUN servers.
717
+ *
718
+ * Default: TRUE
719
+ */
720
+ bool stunIgnoreFailure;
721
+
722
+ /**
723
+ * Support for adding and parsing NAT type in the SDP to assist
724
+ * troubleshooting. The valid values are:
725
+ * - 0: no information will be added in SDP, and parsing is disabled.
726
+ * - 1: only the NAT type number is added.
727
+ * - 2: add both NAT type number and name.
728
+ *
729
+ * Default: 1
730
+ */
731
+ int natTypeInSdp;
732
+
733
+ /**
734
+ * Handle unsolicited NOTIFY requests containing message waiting
735
+ * indication (MWI) info. Unsolicited MWI is incoming NOTIFY requests
736
+ * which are not requested by client with SUBSCRIBE request.
737
+ *
738
+ * If this is enabled, the library will respond 200/OK to the NOTIFY
739
+ * request and forward the request to Endpoint::onMwiInfo() callback.
740
+ *
741
+ * Note: the callback will not be invoked and 481/"No account to handle" response
742
+ * will be sent if this is enabled but no account is configured.
743
+ *
744
+ * See also AccountMwiConfig.enabled.
745
+ *
746
+ * Default: PJ_TRUE
747
+ */
748
+ bool mwiUnsolicitedEnabled;
749
+
750
+ /**
751
+ * Specify whether to enable UPnP.
752
+ *
753
+ * Note that this setting can be further customized in account
754
+ * configuration (#pjsua_acc_config).
755
+ *
756
+ * Default: FALSE
757
+ */
758
+ bool enableUpnp;
759
+
760
+ /**
761
+ * Specify which interface to use for UPnP. If empty, UPnP will use
762
+ * the first suitable interface found.
763
+ *
764
+ * Note that this setting is only applicable if UPnP is enabled.
765
+ *
766
+ * Default: empty string
767
+ */
768
+ string upnpIfName;
769
+
770
+ public:
771
+ /**
772
+ * Default constructor to initialize with default values.
773
+ */
774
+ UaConfig();
775
+
776
+ /**
777
+ * Construct from pjsua_config.
778
+ */
779
+ void fromPj(const pjsua_config &ua_cfg);
780
+
781
+ /**
782
+ * Export to pjsua_config
783
+ */
784
+ pjsua_config toPj() const;
785
+
786
+ /**
787
+ * Read this object from a container.
788
+ *
789
+ * @param node Container to write values from.
790
+ */
791
+ virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error);
792
+
793
+ /**
794
+ * Write this object to a container.
795
+ *
796
+ * @param node Container to write values to.
797
+ */
798
+ virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error);
799
+
800
+ };
801
+
802
+
803
+ /**
804
+ * Data containing log entry to be written by the LogWriter.
805
+ */
806
+ struct LogEntry
807
+ {
808
+ /** Log verbosity level of this message */
809
+ int level;
810
+
811
+ /** The log message */
812
+ string msg;
813
+
814
+ /** ID of current thread */
815
+ long threadId;
816
+
817
+ /** The name of the thread that writes this log */
818
+ string threadName;
819
+ };
820
+
821
+
822
+ /**
823
+ * Interface for writing log messages. Applications can inherit this class
824
+ * and supply it in the LogConfig structure to implement custom log
825
+ * writing facility.
826
+ */
827
+ class LogWriter
828
+ {
829
+ public:
830
+ /** Destructor */
831
+ virtual ~LogWriter() {}
832
+
833
+ /** Write a log entry. */
834
+ virtual void write(const LogEntry &entry) = 0;
835
+ };
836
+
837
+
838
+ /**
839
+ * Logging configuration, which can be (optionally) specified when calling
840
+ * Lib::init().
841
+ */
842
+ struct LogConfig : public PersistentObject
843
+ {
844
+ /** Log incoming and outgoing SIP message? Yes! */
845
+ unsigned msgLogging;
846
+
847
+ /** Input verbosity level. Value 5 is reasonable. */
848
+ unsigned level;
849
+
850
+ /** Verbosity level for console. Value 4 is reasonable. */
851
+ unsigned consoleLevel;
852
+
853
+ /** Log decoration. */
854
+ unsigned decor;
855
+
856
+ /** Optional log filename if app wishes the library to write to log file.
857
+ */
858
+ string filename;
859
+
860
+ /**
861
+ * Additional flags to be given to pj_file_open() when opening
862
+ * the log file. By default, the flag is PJ_O_WRONLY. Application
863
+ * may set PJ_O_APPEND here so that logs are appended to existing
864
+ * file instead of overwriting it.
865
+ *
866
+ * Default is 0.
867
+ */
868
+ unsigned fileFlags;
869
+
870
+ /**
871
+ * Custom log writer, if required. This instance will be destroyed
872
+ * by the endpoint when the endpoint is destroyed.
873
+ */
874
+ LogWriter *writer;
875
+
876
+ public:
877
+ /** Default constructor initialises with default values */
878
+ LogConfig();
879
+
880
+ /** Construct from pjsua_logging_config */
881
+ void fromPj(const pjsua_logging_config &lc);
882
+
883
+ /** Generate pjsua_logging_config. */
884
+ pjsua_logging_config toPj() const;
885
+
886
+ /**
887
+ * Read this object from a container.
888
+ *
889
+ * @param node Container to write values from.
890
+ */
891
+ virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error);
892
+
893
+ /**
894
+ * Write this object to a container.
895
+ *
896
+ * @param node Container to write values to.
897
+ */
898
+ virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error);
899
+ };
900
+
901
+
902
+ /**
903
+ * This structure describes media configuration, which will be specified
904
+ * when calling Lib::init().
905
+ */
906
+ struct MediaConfig : public PersistentObject
907
+ {
908
+ public:
909
+ /**
910
+ * Clock rate to be applied to the conference bridge.
911
+ * If value is zero, default clock rate will be used
912
+ * (PJSUA_DEFAULT_CLOCK_RATE, which by default is 16KHz).
913
+ */
914
+ unsigned clockRate;
915
+
916
+ /**
917
+ * Clock rate to be applied when opening the sound device.
918
+ * If value is zero, conference bridge clock rate will be used.
919
+ */
920
+ unsigned sndClockRate;
921
+
922
+ /**
923
+ * Channel count be applied when opening the sound device and
924
+ * conference bridge.
925
+ */
926
+ unsigned channelCount;
927
+
928
+ /**
929
+ * Specify audio frame ptime. The value here will affect the
930
+ * samples per frame of both the sound device and the conference
931
+ * bridge. Specifying lower ptime will normally reduce the
932
+ * latency.
933
+ *
934
+ * Default value: PJSUA_DEFAULT_AUDIO_FRAME_PTIME
935
+ */
936
+ unsigned audioFramePtime;
937
+
938
+ /**
939
+ * Specify maximum number of media ports to be created in the
940
+ * conference bridge. Since all media terminate in the bridge
941
+ * (calls, file player, file recorder, etc), the value must be
942
+ * large enough to support all of them. However, the larger
943
+ * the value, the more computations are performed.
944
+ *
945
+ * Default value: PJSUA_MAX_CONF_PORTS
946
+ */
947
+ unsigned maxMediaPorts;
948
+
949
+ /**
950
+ * Specify whether the media manager should manage its own
951
+ * ioqueue for the RTP/RTCP sockets. If yes, ioqueue will be created
952
+ * and at least one worker thread will be created too. If no,
953
+ * the RTP/RTCP sockets will share the same ioqueue as SIP sockets,
954
+ * and no worker thread is needed.
955
+ *
956
+ * Normally application would say yes here, unless it wants to
957
+ * run everything from a single thread.
958
+ */
959
+ bool hasIoqueue;
960
+
961
+ /**
962
+ * Specify the number of worker threads to handle incoming RTP
963
+ * packets. A value of one is recommended for most applications.
964
+ */
965
+ unsigned threadCnt;
966
+
967
+ /**
968
+ * Media quality, 0-10, according to this table:
969
+ * 5-10: resampling use large filter,
970
+ * 3-4: resampling use small filter,
971
+ * 1-2: resampling use linear.
972
+ * The media quality also sets speex codec quality/complexity to the
973
+ * number.
974
+ *
975
+ * Default: PJSUA_DEFAULT_CODEC_QUALITY.
976
+ */
977
+ unsigned quality;
978
+
979
+ /**
980
+ * Specify default codec ptime.
981
+ *
982
+ * Default: 0 (codec specific)
983
+ */
984
+ unsigned ptime;
985
+
986
+ /**
987
+ * Disable VAD?
988
+ *
989
+ * Default: 0 (codec specific)
990
+ */
991
+ bool noVad;
992
+
993
+ /**
994
+ * iLBC mode (20 or 30).
995
+ *
996
+ * Default: 30 (PJSUA_DEFAULT_ILBC_MODE)
997
+ */
998
+ unsigned ilbcMode;
999
+
1000
+ /**
1001
+ * Percentage of RTP packet to drop in TX direction
1002
+ * (to simulate packet lost).
1003
+ *
1004
+ * Default: 0
1005
+ */
1006
+ unsigned txDropPct;
1007
+
1008
+ /**
1009
+ * Percentage of RTP packet to drop in RX direction
1010
+ * (to simulate packet lost).
1011
+ *
1012
+ * Default: 0
1013
+ */
1014
+ unsigned rxDropPct;
1015
+
1016
+ /**
1017
+ * Echo canceller options (see pjmedia_echo_create()).
1018
+ * Specify PJMEDIA_ECHO_USE_SW_ECHO here if application wishes
1019
+ * to use software echo canceller instead of device EC.
1020
+ *
1021
+ * Default: 0.
1022
+ */
1023
+ unsigned ecOptions;
1024
+
1025
+ /**
1026
+ * Echo canceller tail length, in miliseconds. Setting this to zero
1027
+ * will disable echo cancellation.
1028
+ *
1029
+ * Default: PJSUA_DEFAULT_EC_TAIL_LEN
1030
+ */
1031
+ unsigned ecTailLen;
1032
+
1033
+ /**
1034
+ * Audio capture buffer length, in milliseconds.
1035
+ *
1036
+ * Default: PJMEDIA_SND_DEFAULT_REC_LATENCY
1037
+ */
1038
+ unsigned sndRecLatency;
1039
+
1040
+ /**
1041
+ * Audio playback buffer length, in milliseconds.
1042
+ *
1043
+ * Default: PJMEDIA_SND_DEFAULT_PLAY_LATENCY
1044
+ */
1045
+ unsigned sndPlayLatency;
1046
+
1047
+ /**
1048
+ * Jitter buffer initial prefetch delay in msec. The value must be
1049
+ * between jb_min_pre and jb_max_pre below. If the value is 0,
1050
+ * prefetching will be disabled.
1051
+ *
1052
+ * Default: -1 (to use default stream settings, currently 0)
1053
+ */
1054
+ int jbInit;
1055
+
1056
+ /**
1057
+ * Jitter buffer minimum prefetch delay in msec.
1058
+ *
1059
+ * Default: -1 (to use default stream settings, currently codec ptime)
1060
+ */
1061
+ int jbMinPre;
1062
+
1063
+ /**
1064
+ * Jitter buffer maximum prefetch delay in msec.
1065
+ *
1066
+ * Default: -1 (to use default stream settings, currently 80% of jbMax)
1067
+ */
1068
+ int jbMaxPre;
1069
+
1070
+ /**
1071
+ * Set maximum delay that can be accomodated by the jitter buffer msec.
1072
+ *
1073
+ * Default: -1 (to use default stream settings, currently 500 msec)
1074
+ */
1075
+ int jbMax;
1076
+
1077
+ /**
1078
+ * Set the algorithm the jitter buffer uses to discard frames in order to
1079
+ * adjust the latency.
1080
+ *
1081
+ * Default: PJMEDIA_JB_DISCARD_PROGRESSIVE
1082
+ */
1083
+ pjmedia_jb_discard_algo jbDiscardAlgo;
1084
+
1085
+ /**
1086
+ * Specify idle time of sound device before it is automatically closed,
1087
+ * in seconds. Use value -1 to disable the auto-close feature of sound
1088
+ * device
1089
+ *
1090
+ * Default : 1
1091
+ */
1092
+ int sndAutoCloseTime;
1093
+
1094
+ /**
1095
+ * Specify whether built-in/native preview should be used if available.
1096
+ * In some systems, video input devices have built-in capability to show
1097
+ * preview window of the device. Using this built-in preview is preferable
1098
+ * as it consumes less CPU power. If built-in preview is not available,
1099
+ * the library will perform software rendering of the input. If this
1100
+ * field is set to PJ_FALSE, software preview will always be used.
1101
+ *
1102
+ * Default: PJ_TRUE
1103
+ */
1104
+ bool vidPreviewEnableNative;
1105
+
1106
+ public:
1107
+ /** Default constructor initialises with default values */
1108
+ MediaConfig();
1109
+
1110
+ /** Construct from pjsua_media_config. */
1111
+ void fromPj(const pjsua_media_config &mc);
1112
+
1113
+ /** Export */
1114
+ pjsua_media_config toPj() const;
1115
+
1116
+ /**
1117
+ * Read this object from a container.
1118
+ *
1119
+ * @param node Container to write values from.
1120
+ */
1121
+ virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error);
1122
+
1123
+ /**
1124
+ * Write this object to a container.
1125
+ *
1126
+ * @param node Container to write values to.
1127
+ */
1128
+ virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error);
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * Endpoint configuration
1134
+ */
1135
+ struct EpConfig : public PersistentObject
1136
+ {
1137
+ /** UA config */
1138
+ UaConfig uaConfig;
1139
+
1140
+ /** Logging config */
1141
+ LogConfig logConfig;
1142
+
1143
+ /** Media config */
1144
+ MediaConfig medConfig;
1145
+
1146
+ /**
1147
+ * Read this object from a container.
1148
+ *
1149
+ * @param node Container to write values from.
1150
+ */
1151
+ virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error);
1152
+
1153
+ /**
1154
+ * Write this object to a container.
1155
+ *
1156
+ * @param node Container to write values to.
1157
+ */
1158
+ virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error);
1159
+
1160
+ };
1161
+
1162
+ /* This represents posted job */
1163
+ struct PendingJob
1164
+ {
1165
+ /** Perform the job */
1166
+ virtual void execute(bool is_pending) = 0;
1167
+
1168
+ /** Virtual destructor */
1169
+ virtual ~PendingJob() {}
1170
+ };
1171
+
1172
+ //////////////////////////////////////////////////////////////////////////////
1173
+
1174
+ /**
1175
+ * Endpoint represents an instance of pjsua library. There can only be
1176
+ * one instance of pjsua library in an application, hence this class
1177
+ * is a singleton.
1178
+ */
1179
+ class Endpoint
1180
+ {
1181
+ public:
1182
+ /** Retrieve the singleton instance of the endpoint */
1183
+ static Endpoint &instance() PJSUA2_THROW(Error);
1184
+
1185
+ /** Default constructor */
1186
+ Endpoint();
1187
+
1188
+ /** Virtual destructor */
1189
+ virtual ~Endpoint();
1190
+
1191
+
1192
+ /*************************************************************************
1193
+ * Base library operations
1194
+ */
1195
+
1196
+ /**
1197
+ * Get library version.
1198
+ */
1199
+ Version libVersion() const;
1200
+
1201
+ /**
1202
+ * Instantiate pjsua application. Application must call this function before
1203
+ * calling any other functions, to make sure that the underlying libraries
1204
+ * are properly initialized. Once this function has returned success,
1205
+ * application must call libDestroy() before quitting.
1206
+ */
1207
+ void libCreate() PJSUA2_THROW(Error);
1208
+
1209
+ /**
1210
+ * Get library state.
1211
+ *
1212
+ * @return library state.
1213
+ */
1214
+ pjsua_state libGetState() const;
1215
+
1216
+ /**
1217
+ * Initialize pjsua with the specified settings. All the settings are
1218
+ * optional, and the default values will be used when the config is not
1219
+ * specified.
1220
+ *
1221
+ * Note that create() MUST be called before calling this function.
1222
+ *
1223
+ * @param prmEpConfig Endpoint configurations
1224
+ */
1225
+ void libInit( const EpConfig &prmEpConfig) PJSUA2_THROW(Error);
1226
+
1227
+ /**
1228
+ * Call this function after all initialization is done, so that the
1229
+ * library can do additional checking set up. Application may call this
1230
+ * function any time after init().
1231
+ */
1232
+ void libStart() PJSUA2_THROW(Error);
1233
+
1234
+ /**
1235
+ * Register a thread that was created by external or native API to the
1236
+ * library. Note that each time this function is called, it will allocate
1237
+ * some memory to store the thread description, which will only be freed
1238
+ * when the library is destroyed.
1239
+ *
1240
+ * @param name The optional name to be assigned to the thread.
1241
+ */
1242
+ void libRegisterThread(const string &name) PJSUA2_THROW(Error);
1243
+
1244
+ /**
1245
+ * Check if this thread has been registered to the library. Note that
1246
+ * this function is only applicable for library main & worker threads and
1247
+ * external/native threads registered using libRegisterThread().
1248
+ */
1249
+ bool libIsThreadRegistered();
1250
+
1251
+ /**
1252
+ * Stop all worker threads.
1253
+ */
1254
+ void libStopWorkerThreads();
1255
+
1256
+ /**
1257
+ * Poll pjsua for events, and if necessary block the caller thread for
1258
+ * the specified maximum interval (in miliseconds).
1259
+ *
1260
+ * Application doesn't normally need to call this function if it has
1261
+ * configured worker thread (\a thread_cnt field) in pjsua_config
1262
+ * structure, because polling then will be done by these worker threads
1263
+ * instead.
1264
+ *
1265
+ * If EpConfig::UaConfig::mainThreadOnly is enabled and this function
1266
+ * is called from the main thread (by default the main thread is thread
1267
+ * that calls libCreate()), this function will also scan and run any
1268
+ * pending jobs in the list.
1269
+ *
1270
+ * @param msec_timeout Maximum time to wait, in miliseconds.
1271
+ *
1272
+ * @return The number of events that have been handled during the
1273
+ * poll. Negative value indicates error, and application
1274
+ * can retrieve the error as (status = -return_value).
1275
+ */
1276
+ int libHandleEvents(unsigned msec_timeout);
1277
+
1278
+ /**
1279
+ * Destroy pjsua. Application is recommended to perform graceful shutdown
1280
+ * before calling this function (such as unregister the account from the
1281
+ * SIP server, terminate presense subscription, and hangup active calls),
1282
+ * however, this function will do all of these if it finds there are
1283
+ * active sessions that need to be terminated. This function will
1284
+ * block for few seconds to wait for replies from remote.
1285
+ *
1286
+ * Application.may safely call this function more than once if it doesn't
1287
+ * keep track of it's state.
1288
+ *
1289
+ * @param prmFlags Combination of pjsua_destroy_flag enumeration.
1290
+ */
1291
+ void libDestroy(unsigned prmFlags=0) PJSUA2_THROW(Error);
1292
+
1293
+
1294
+ /*************************************************************************
1295
+ * Utilities
1296
+ */
1297
+
1298
+ /**
1299
+ * Retrieve the error string for the specified status code.
1300
+ *
1301
+ * @param prmErr The error code.
1302
+ */
1303
+ string utilStrError(pj_status_t prmErr);
1304
+
1305
+ /**
1306
+ * Write a log message.
1307
+ *
1308
+ * @param prmLevel Log verbosity level (1-5)
1309
+ * @param prmSender The log sender.
1310
+ * @param prmMsg The log message.
1311
+ */
1312
+ void utilLogWrite(int prmLevel,
1313
+ const string &prmSender,
1314
+ const string &prmMsg);
1315
+
1316
+ /**
1317
+ * Write a log entry.
1318
+ * Application must implement its own custom LogWriter and
1319
+ * this function will then call the LogWriter::write() method.
1320
+ * Note that this function does not call PJSIP's internal
1321
+ * logging functionality. For that, you should use
1322
+ * utilLogWrite(prmLevel, prmSender, prmMsg) above.
1323
+ *
1324
+ * @param e The log entry.
1325
+ */
1326
+ void utilLogWrite(LogEntry &e);
1327
+
1328
+ /**
1329
+ * This is a utility function to verify that valid SIP url is given. If the
1330
+ * URL is a valid SIP/SIPS scheme, PJ_SUCCESS will be returned.
1331
+ *
1332
+ * @param prmUri The URL string.
1333
+ *
1334
+ * @return PJ_SUCCESS on success, or the appropriate error
1335
+ * code.
1336
+ *
1337
+ * @see utilVerifyUri()
1338
+ */
1339
+ pj_status_t utilVerifySipUri(const string &prmUri);
1340
+
1341
+ /**
1342
+ * This is a utility function to verify that valid URI is given. Unlike
1343
+ * utilVerifySipUri(), this function will return PJ_SUCCESS if tel: URI
1344
+ * is given.
1345
+ *
1346
+ * @param prmUri The URL string.
1347
+ *
1348
+ * @return PJ_SUCCESS on success, or the appropriate error
1349
+ * code.
1350
+ *
1351
+ * @see pjsua_verify_sip_url()
1352
+ */
1353
+ pj_status_t utilVerifyUri(const string &prmUri);
1354
+
1355
+ /**
1356
+ * Schedule a timer with the specified interval and user data. When the
1357
+ * interval elapsed, onTimer() callback will be
1358
+ * called. Note that the callback may be executed by different thread,
1359
+ * depending on whether worker thread is enabled or not.
1360
+ *
1361
+ * @param prmMsecDelay The time interval in msec.
1362
+ * @param prmUserData Arbitrary user data, to be given back to
1363
+ * application in the callback.
1364
+ *
1365
+ * @return Token to identify the timer, which could be
1366
+ * given to utilTimerCancel().
1367
+ */
1368
+ Token utilTimerSchedule(unsigned prmMsecDelay,
1369
+ Token prmUserData) PJSUA2_THROW(Error);
1370
+
1371
+ /**
1372
+ * Cancel previously scheduled timer with the specified timer token.
1373
+ *
1374
+ * @param prmToken The timer token, which was returned from
1375
+ * previous utilTimerSchedule() call.
1376
+ */
1377
+ void utilTimerCancel(Token prmToken);
1378
+
1379
+ /**
1380
+ * Utility to register a pending job to be executed by main thread.
1381
+ * If EpConfig::UaConfig::mainThreadOnly is false, the job will be
1382
+ * executed immediately.
1383
+ *
1384
+ * @param job The job class.
1385
+ */
1386
+ void utilAddPendingJob(PendingJob *job);
1387
+
1388
+ /**
1389
+ * Get cipher list supported by SSL/TLS backend.
1390
+ */
1391
+ IntVector utilSslGetAvailableCiphers() PJSUA2_THROW(Error);
1392
+
1393
+ /*************************************************************************
1394
+ * NAT operations
1395
+ */
1396
+ /**
1397
+ * This is a utility function to detect NAT type in front of this endpoint.
1398
+ * Once invoked successfully, this function will complete asynchronously
1399
+ * and report the result in onNatDetectionComplete().
1400
+ *
1401
+ * After NAT has been detected and the callback is called, application can
1402
+ * get the detected NAT type by calling natGetType(). Application
1403
+ * can also perform NAT detection by calling natDetectType()
1404
+ * again at later time.
1405
+ *
1406
+ * Note that STUN must be enabled to run this function successfully.
1407
+ */
1408
+ void natDetectType(void) PJSUA2_THROW(Error);
1409
+
1410
+ /**
1411
+ * Get the NAT type as detected by natDetectType() function. This
1412
+ * function will only return useful NAT type after natDetectType()
1413
+ * has completed successfully and onNatDetectionComplete()
1414
+ * callback has been called.
1415
+ *
1416
+ * Exception: if this function is called while detection is in progress,
1417
+ * PJ_EPENDING exception will be raised.
1418
+ */
1419
+ pj_stun_nat_type natGetType() PJSUA2_THROW(Error);
1420
+
1421
+ /**
1422
+ * Update the STUN servers list. The libInit() must have been called
1423
+ * before calling this function.
1424
+ *
1425
+ * @param prmServers Array of STUN servers to try. The endpoint
1426
+ * will try to resolve and contact each of the
1427
+ * STUN server entry until it finds one that is
1428
+ * usable. Each entry may be a domain name, host
1429
+ * name, IP address, and it may contain an
1430
+ * optional port number. For example:
1431
+ * - "pjsip.org" (domain name)
1432
+ * - "sip.pjsip.org" (host name)
1433
+ * - "pjsip.org:33478" (domain name and a non-
1434
+ * standard port number)
1435
+ * - "10.0.0.1:3478" (IP address and port number)
1436
+ * @param prmWait Specify if the function should block until
1437
+ * it gets the result. In this case, the
1438
+ * function will block while the resolution
1439
+ * is being done, and the callback
1440
+ * onNatCheckStunServersComplete() will be called
1441
+ * before this function returns.
1442
+ *
1443
+ */
1444
+ void natUpdateStunServers(const StringVector &prmServers,
1445
+ bool prmWait) PJSUA2_THROW(Error);
1446
+
1447
+ /**
1448
+ * Auxiliary function to resolve and contact each of the STUN server
1449
+ * entries (sequentially) to find which is usable. The libInit() must
1450
+ * have been called before calling this function.
1451
+ *
1452
+ * @param prmServers Array of STUN servers to try. The endpoint
1453
+ * will try to resolve and contact each of the
1454
+ * STUN server entry until it finds one that is
1455
+ * usable. Each entry may be a domain name, host
1456
+ * name, IP address, and it may contain an
1457
+ * optional port number. For example:
1458
+ * - "pjsip.org" (domain name)
1459
+ * - "sip.pjsip.org" (host name)
1460
+ * - "pjsip.org:33478" (domain name and a non-
1461
+ * standard port number)
1462
+ * - "10.0.0.1:3478" (IP address and port number)
1463
+ * @param prmWait Specify if the function should block until
1464
+ * it gets the result. In this case, the function
1465
+ * will block while the resolution is being done,
1466
+ * and the callback will be called before this
1467
+ * function returns.
1468
+ * @param prmUserData Arbitrary user data to be passed back to
1469
+ * application in the callback.
1470
+ *
1471
+ * @see natCancelCheckStunServers()
1472
+ */
1473
+ void natCheckStunServers(const StringVector &prmServers,
1474
+ bool prmWait,
1475
+ Token prmUserData) PJSUA2_THROW(Error);
1476
+
1477
+ /**
1478
+ * Cancel pending STUN resolution which match the specified token.
1479
+ *
1480
+ * @param token The token to match. This token was given to
1481
+ * natCheckStunServers()
1482
+ * @param notify_cb Boolean to control whether the callback should
1483
+ * be called for cancelled resolutions. When the
1484
+ * callback is called, the status in the result
1485
+ * will be set as PJ_ECANCELLED.
1486
+ *
1487
+ * Exception: PJ_ENOTFOUND if there is no matching one, or other error.
1488
+ */
1489
+ void natCancelCheckStunServers(Token token,
1490
+ bool notify_cb = false) PJSUA2_THROW(Error);
1491
+
1492
+ /*************************************************************************
1493
+ * Transport operations
1494
+ */
1495
+
1496
+ /**
1497
+ * Create and start a new SIP transport according to the specified
1498
+ * settings.
1499
+ *
1500
+ * @param type Transport type.
1501
+ * @param cfg Transport configuration.
1502
+ *
1503
+ * @return The transport ID.
1504
+ */
1505
+ TransportId transportCreate(pjsip_transport_type_e type,
1506
+ const TransportConfig &cfg) PJSUA2_THROW(Error);
1507
+
1508
+ /**
1509
+ * Enumerate all transports currently created in the system. This
1510
+ * function will return all transport IDs, and application may then
1511
+ * call transportGetInfo() function to retrieve detailed information
1512
+ * about the transport.
1513
+ *
1514
+ * @return Array of transport IDs.
1515
+ */
1516
+ IntVector transportEnum() const PJSUA2_THROW(Error);
1517
+
1518
+ /**
1519
+ * Get information about transport.
1520
+ *
1521
+ * @param id Transport ID.
1522
+ *
1523
+ * @return Transport info.
1524
+ */
1525
+ TransportInfo transportGetInfo(TransportId id) const PJSUA2_THROW(Error);
1526
+
1527
+ /**
1528
+ * Disable a transport or re-enable it. By default transport is always
1529
+ * enabled after it is created. Disabling a transport does not necessarily
1530
+ * close the socket, it will only discard incoming messages and prevent
1531
+ * the transport from being used to send outgoing messages.
1532
+ *
1533
+ * @param id Transport ID.
1534
+ * @param enabled Enable or disable the transport.
1535
+ *
1536
+ */
1537
+ void transportSetEnable(TransportId id, bool enabled) PJSUA2_THROW(Error);
1538
+
1539
+ /**
1540
+ * Close the transport. The system will wait until all transactions are
1541
+ * closed while preventing new users from using the transport, and will
1542
+ * close the transport when its usage count reaches zero.
1543
+ *
1544
+ * @param id Transport ID.
1545
+ */
1546
+ void transportClose(TransportId id) PJSUA2_THROW(Error);
1547
+
1548
+ /**
1549
+ * Start graceful shutdown procedure for this transport handle. After
1550
+ * graceful shutdown has been initiated, no new reference can be
1551
+ * obtained for the transport. However, existing objects that currently
1552
+ * uses the transport may still use this transport to send and receive
1553
+ * packets. After all objects release their reference to this transport,
1554
+ * the transport will be destroyed immediately.
1555
+ *
1556
+ * Note: application normally uses this API after obtaining the handle
1557
+ * from onTransportState() callback.
1558
+ *
1559
+ * @param tp The transport.
1560
+ */
1561
+ void transportShutdown(TransportHandle tp) PJSUA2_THROW(Error);
1562
+
1563
+ /*************************************************************************
1564
+ * Call operations
1565
+ */
1566
+
1567
+ /**
1568
+ * Terminate all calls. This will initiate call hangup for all
1569
+ * currently active calls.
1570
+ */
1571
+ void hangupAllCalls(void);
1572
+
1573
+ /*************************************************************************
1574
+ * Media operations
1575
+ */
1576
+
1577
+ /**
1578
+ * Add media to the media list.
1579
+ *
1580
+ * @param media media to be added.
1581
+ */
1582
+ void mediaAdd(AudioMedia &media);
1583
+
1584
+ /**
1585
+ * Remove media from the media list.
1586
+ *
1587
+ * @param media media to be removed.
1588
+ */
1589
+ void mediaRemove(AudioMedia &media);
1590
+
1591
+ /**
1592
+ * Check if media has been added to the media list.
1593
+ *
1594
+ * @param media media to be check.
1595
+ *
1596
+ * @return True if media has been added, false otherwise.
1597
+ */
1598
+ bool mediaExists(const AudioMedia &media) const;
1599
+
1600
+ /**
1601
+ * Get maximum number of media port.
1602
+ *
1603
+ * @return Maximum number of media port in the conference bridge.
1604
+ */
1605
+ unsigned mediaMaxPorts() const;
1606
+
1607
+ /**
1608
+ * Get current number of active media port in the bridge.
1609
+ *
1610
+ * @return The number of active media port.
1611
+ */
1612
+ unsigned mediaActivePorts() const;
1613
+
1614
+ #if !DEPRECATED_FOR_TICKET_2232
1615
+ /**
1616
+ * Warning: deprecated, use mediaEnumPorts2() instead. This function is
1617
+ * not safe in multithreaded environment.
1618
+ *
1619
+ * Enumerate all media port.
1620
+ *
1621
+ * @return The list of media port.
1622
+ */
1623
+ const AudioMediaVector &mediaEnumPorts() const PJSUA2_THROW(Error);
1624
+ #endif
1625
+
1626
+ /**
1627
+ * Enumerate all audio media port.
1628
+ *
1629
+ * @return The list of audio media port.
1630
+ */
1631
+ AudioMediaVector2 mediaEnumPorts2() const PJSUA2_THROW(Error);
1632
+
1633
+ /**
1634
+ * Enumerate all video media port.
1635
+ *
1636
+ * @return The list of video media port.
1637
+ */
1638
+ VideoMediaVector mediaEnumVidPorts() const PJSUA2_THROW(Error);
1639
+
1640
+ /**
1641
+ * Get the instance of Audio Device Manager.
1642
+ *
1643
+ * @return The Audio Device Manager.
1644
+ */
1645
+ AudDevManager &audDevManager();
1646
+
1647
+ /**
1648
+ * Get the instance of Video Device Manager.
1649
+ *
1650
+ * @return The Video Device Manager.
1651
+ */
1652
+ VidDevManager &vidDevManager();
1653
+
1654
+ /*************************************************************************
1655
+ * Codec management operations
1656
+ */
1657
+
1658
+ #if !DEPRECATED_FOR_TICKET_2232
1659
+ /**
1660
+ * Warning: deprecated, use codecEnum2() instead. This function is not
1661
+ * safe in multithreaded environment.
1662
+ *
1663
+ * Enum all supported codecs in the system.
1664
+ *
1665
+ * @return Array of codec info.
1666
+ */
1667
+ const CodecInfoVector &codecEnum() PJSUA2_THROW(Error);
1668
+ #endif
1669
+
1670
+ /**
1671
+ * Enum all supported codecs in the system.
1672
+ *
1673
+ * @return Array of codec info.
1674
+ */
1675
+ CodecInfoVector2 codecEnum2() const PJSUA2_THROW(Error);
1676
+
1677
+ /**
1678
+ * Change codec priority.
1679
+ *
1680
+ * @param codec_id Codec ID, which is a string that uniquely identify
1681
+ * the codec (such as "speex/8000").
1682
+ * @param priority Codec priority, 0-255, where zero means to disable
1683
+ * the codec.
1684
+ *
1685
+ */
1686
+ void codecSetPriority(const string &codec_id,
1687
+ pj_uint8_t priority) PJSUA2_THROW(Error);
1688
+
1689
+ /**
1690
+ * Get codec parameters.
1691
+ *
1692
+ * @param codec_id Codec ID.
1693
+ *
1694
+ * @return Codec parameters. If codec is not found, Error
1695
+ * will be thrown.
1696
+ *
1697
+ */
1698
+ CodecParam codecGetParam(const string &codec_id) const PJSUA2_THROW(Error);
1699
+
1700
+ /**
1701
+ * Set codec parameters.
1702
+ *
1703
+ * @param codec_id Codec ID.
1704
+ * @param param Codec parameter to set. Set to NULL to reset
1705
+ * codec parameter to library default settings.
1706
+ *
1707
+ */
1708
+ void codecSetParam(const string &codec_id,
1709
+ const CodecParam param) PJSUA2_THROW(Error);
1710
+
1711
+ #if !DEPRECATED_FOR_TICKET_2232
1712
+ /**
1713
+ * Warning: deprecated, use videoCodecEnum2() instead. This function is
1714
+ * not safe in multithreaded environment.
1715
+ *
1716
+ * Enum all supported video codecs in the system.
1717
+ *
1718
+ * @return Array of video codec info.
1719
+ */
1720
+ const CodecInfoVector &videoCodecEnum() PJSUA2_THROW(Error);
1721
+ #endif
1722
+
1723
+ /**
1724
+ * Enum all supported video codecs in the system.
1725
+ *
1726
+ * @return Array of video codec info.
1727
+ */
1728
+ CodecInfoVector2 videoCodecEnum2() const PJSUA2_THROW(Error);
1729
+
1730
+ /**
1731
+ * Change video codec priority.
1732
+ *
1733
+ * @param codec_id Codec ID, which is a string that uniquely identify
1734
+ * the codec (such as "H263/90000"). Please see pjsua
1735
+ * manual or pjmedia codec reference for details.
1736
+ * @param priority Codec priority, 0-255, where zero means to disable
1737
+ * the codec.
1738
+ *
1739
+ */
1740
+ void videoCodecSetPriority(const string &codec_id,
1741
+ pj_uint8_t priority) PJSUA2_THROW(Error);
1742
+
1743
+ /**
1744
+ * Get video codec parameters.
1745
+ *
1746
+ * @param codec_id Codec ID.
1747
+ *
1748
+ * @return Codec parameters. If codec is not found, Error
1749
+ * will be thrown.
1750
+ *
1751
+ */
1752
+ VidCodecParam getVideoCodecParam(const string &codec_id) const
1753
+ PJSUA2_THROW(Error);
1754
+
1755
+ /**
1756
+ * Set video codec parameters.
1757
+ *
1758
+ * @param codec_id Codec ID.
1759
+ * @param param Codec parameter to set.
1760
+ *
1761
+ */
1762
+ void setVideoCodecParam(const string &codec_id,
1763
+ const VidCodecParam &param) PJSUA2_THROW(Error);
1764
+
1765
+ /**
1766
+ * Reset video codec parameters to library default settings.
1767
+ *
1768
+ * @param codec_id Codec ID.
1769
+ *
1770
+ */
1771
+ void resetVideoCodecParam(const string &codec_id) PJSUA2_THROW(Error);
1772
+
1773
+ #if defined(PJMEDIA_HAS_OPUS_CODEC) && (PJMEDIA_HAS_OPUS_CODEC!=0)
1774
+ /**
1775
+ * Get codec Opus config.
1776
+ *
1777
+ */
1778
+ CodecOpusConfig getCodecOpusConfig() const PJSUA2_THROW(Error);
1779
+
1780
+ /**
1781
+ * Set codec Opus config.
1782
+ *
1783
+ * @param opus_cfg Codec Opus configuration.
1784
+ *
1785
+ */
1786
+ void setCodecOpusConfig(const CodecOpusConfig &opus_cfg)
1787
+ PJSUA2_THROW(Error);
1788
+ #endif
1789
+
1790
+ /**
1791
+ * Enumerate all SRTP crypto-suite names.
1792
+ *
1793
+ * @return The list of SRTP crypto-suite name.
1794
+ */
1795
+ StringVector srtpCryptoEnum() PJSUA2_THROW(Error);
1796
+
1797
+ /*************************************************************************
1798
+ * IP Change
1799
+ */
1800
+
1801
+ /**
1802
+ * Inform the stack that IP address change event was detected.
1803
+ * The stack will:
1804
+ * 1. Restart the listener (this step is configurable via
1805
+ * \a IpChangeParam.restartListener).
1806
+ * 2. Shutdown the transport used by account registration (this step is
1807
+ * configurable via \a AccountConfig.ipChangeConfig.shutdownTp).
1808
+ * 3. Update contact URI by sending re-Registration (this step is
1809
+ * configurable via a\ AccountConfig.natConfig.contactRewriteUse and
1810
+ * a\ AccountConfig.natConfig.contactRewriteMethod)
1811
+ * 4. Hangup active calls (this step is configurable via
1812
+ * a\ AccountConfig.ipChangeConfig.hangupCalls) or
1813
+ * continue the call by sending re-INVITE
1814
+ * (configurable via \a AccountConfig.ipChangeConfig.reinviteFlags).
1815
+ *
1816
+ * @param param The IP change parameter, have a look at IpChangeParam.
1817
+ */
1818
+ void handleIpChange(const IpChangeParam &param) PJSUA2_THROW(Error);
1819
+
1820
+ public:
1821
+ /*
1822
+ * Overrideables callbacks
1823
+ */
1824
+
1825
+ /**
1826
+ * Callback when the Endpoint has finished performing NAT type
1827
+ * detection that is initiated with natDetectType().
1828
+ *
1829
+ * @param prm Callback parameters containing the detection
1830
+ * result.
1831
+ */
1832
+ virtual void onNatDetectionComplete(
1833
+ const OnNatDetectionCompleteParam &prm)
1834
+ { PJ_UNUSED_ARG(prm); }
1835
+
1836
+ /**
1837
+ * Callback when the Endpoint has finished performing STUN server
1838
+ * checking that is initiated when calling libInit(), or by
1839
+ * calling natCheckStunServers() or natUpdateStunServers().
1840
+ *
1841
+ * @param prm Callback parameters.
1842
+ */
1843
+ virtual void onNatCheckStunServersComplete(
1844
+ const OnNatCheckStunServersCompleteParam &prm)
1845
+ { PJ_UNUSED_ARG(prm); }
1846
+
1847
+ /**
1848
+ * This callback is called when transport state has changed.
1849
+ *
1850
+ * @param prm Callback parameters.
1851
+ */
1852
+ virtual void onTransportState(
1853
+ const OnTransportStateParam &prm)
1854
+ { PJ_UNUSED_ARG(prm); }
1855
+
1856
+ /**
1857
+ * Callback when a timer has fired. The timer was scheduled by
1858
+ * utilTimerSchedule().
1859
+ *
1860
+ * @param prm Callback parameters.
1861
+ */
1862
+ virtual void onTimer(const OnTimerParam &prm)
1863
+ { PJ_UNUSED_ARG(prm); }
1864
+
1865
+ /**
1866
+ * This callback can be used by application to override the account
1867
+ * to be used to handle an incoming message. Initially, the account to
1868
+ * be used will be calculated automatically by the library. This initial
1869
+ * account will be used if application does not implement this callback,
1870
+ * or application sets an invalid account upon returning from this
1871
+ * callback.
1872
+ *
1873
+ * Note that currently the incoming messages requiring account assignment
1874
+ * are INVITE, MESSAGE, SUBSCRIBE, and unsolicited NOTIFY. This callback
1875
+ * may be called before the callback of the SIP event itself, i.e:
1876
+ * incoming call, pager, subscription, or unsolicited-event.
1877
+ *
1878
+ * @param prm Callback parameters.
1879
+ */
1880
+ virtual void onSelectAccount(OnSelectAccountParam &prm)
1881
+ { PJ_UNUSED_ARG(prm); }
1882
+
1883
+ /**
1884
+ * Calling #handleIpChange() may involve different operation. This
1885
+ * callback is called to report the progress of each enabled operation.
1886
+ *
1887
+ * @param prm Callback parameters.
1888
+ *
1889
+ */
1890
+ virtual void onIpChangeProgress(OnIpChangeProgressParam &prm)
1891
+ { PJ_UNUSED_ARG(prm); }
1892
+
1893
+ /**
1894
+ * Notification about media events such as video notifications. This
1895
+ * callback will most likely be called from media threads, thus
1896
+ * application must not perform heavy processing in this callback.
1897
+ * If application needs to perform more complex tasks to handle the
1898
+ * event, it should post the task to another thread.
1899
+ *
1900
+ * @param prm Callback parameter.
1901
+ */
1902
+ virtual void onMediaEvent(OnMediaEventParam &prm)
1903
+ { PJ_UNUSED_ARG(prm); }
1904
+
1905
+ /**
1906
+ * Callback for computation of the digest credential.
1907
+ *
1908
+ * Usually, an application does not need to implement (overload) this callback.
1909
+ * Use it, if your application needs to support Digest AKA authentication without
1910
+ * the default digest computation back-end (i.e: using <b>libmilenage</b>).
1911
+ *
1912
+ * To use Digest AKA authentication, add \a PJSIP_CRED_DATA_EXT_AKA flag in the
1913
+ * AuthCredInfo's \a dataType field of the AccountConfig, and fill up other
1914
+ * AKA specific information in AuthCredInfo:
1915
+ * - If PJSIP_HAS_DIGEST_AKA_AUTH is disabled, you have to overload this callback
1916
+ * to provide your own digest computation back-end.
1917
+ * - If PJSIP_HAS_DIGEST_AKA_AUTH is enabled, <b>libmilenage</b> library from
1918
+ * \a third_party directory is linked, and this callback returns PJ_ENOTSUP,
1919
+ * then the default digest computation back-end is used.
1920
+ *
1921
+ * @param prm.digestChallenge The authentication challenge sent by server in 401
1922
+ * or 401 response, as either Proxy-Authenticate or
1923
+ * WWW-Authenticate header.
1924
+ * @param prm.credentialInfo The credential to be used.
1925
+ * @param method The request method.
1926
+ * @param prm.digestCredential The digest credential where the digest response
1927
+ * will be placed to. Upon calling this function, the
1928
+ * nonce, nc, cnonce, qop, uri, and realm fields of
1929
+ * this structure must have been set by caller. Upon
1930
+ * return, the \a response field will be initialized
1931
+ * by this function.
1932
+ *
1933
+ * @return PJ_ENOTSUP is the default. If you overload this callback,
1934
+ * return PJ_SUCCESS on success.
1935
+ */
1936
+ virtual pj_status_t onCredAuth(OnCredAuthParam &prm);
1937
+
1938
+ /**
1939
+ * This callback will be invoked when the library implicitly rejects
1940
+ * an incoming call.
1941
+ *
1942
+ * In addition to being declined explicitly using the Call::answer()
1943
+ * method, the library may also automatically reject the incoming call
1944
+ * due to different scenarios, e.g:
1945
+ * - no available call slot.
1946
+ * - no available account to handle the call.
1947
+ * - when an incoming INVITE is received with, for instance, a message
1948
+ * containing invalid SDP.
1949
+ *
1950
+ * @param prm Callback parameters.
1951
+ */
1952
+ virtual void onRejectedIncomingCall(OnRejectedIncomingCallParam &prm)
1953
+ { PJ_UNUSED_ARG(prm); }
1954
+
1955
+ private:
1956
+ static Endpoint *instance_; // static instance
1957
+ LogWriter *writer; // Custom writer, if any
1958
+ AudDevManager *audioDevMgr;
1959
+ VidDevManager *videoDevMgr;
1960
+ #if !DEPRECATED_FOR_TICKET_2232
1961
+ CodecInfoVector codecInfoList;
1962
+ CodecInfoVector videoCodecInfoList;
1963
+ #endif
1964
+ std::map<pj_thread_t*, pj_thread_desc*> threadDescMap;
1965
+ pj_mutex_t *threadDescMutex;
1966
+ #if !DEPRECATED_FOR_TICKET_2232
1967
+ AudioMediaVector mediaList;
1968
+ pj_mutex_t *mediaListMutex;
1969
+ #endif
1970
+
1971
+ /* Pending logging */
1972
+ bool mainThreadOnly;
1973
+ void *mainThread;
1974
+ unsigned pendingJobSize;
1975
+ std::list<PendingJob*> pendingJobs;
1976
+
1977
+ void performPendingJobs();
1978
+
1979
+ /* Endpoint static callbacks */
1980
+ static void logFunc(int level, const char *data, int len);
1981
+ static void stun_resolve_cb(const pj_stun_resolve_result *result);
1982
+ static void on_timer(pj_timer_heap_t *timer_heap,
1983
+ struct pj_timer_entry *entry);
1984
+ static void on_nat_detect(const pj_stun_nat_detect_result *res);
1985
+ static void on_transport_state(pjsip_transport *tp,
1986
+ pjsip_transport_state state,
1987
+ const pjsip_transport_state_info *info);
1988
+
1989
+ private:
1990
+ /*
1991
+ * Account & Call lookups
1992
+ */
1993
+ static Account *lookupAcc(int acc_id, const char *op);
1994
+ static Call *lookupCall(int call_id, const char *op);
1995
+
1996
+ /* static callbacks */
1997
+ static void on_incoming_call(pjsua_acc_id acc_id,
1998
+ pjsua_call_id call_id,
1999
+ pjsip_rx_data *rdata);
2000
+ static void on_reg_started(pjsua_acc_id acc_id,
2001
+ pj_bool_t renew);
2002
+ static void on_reg_state2(pjsua_acc_id acc_id,
2003
+ pjsua_reg_info *info);
2004
+ static void on_incoming_subscribe(pjsua_acc_id acc_id,
2005
+ pjsua_srv_pres *srv_pres,
2006
+ pjsua_buddy_id buddy_id,
2007
+ const pj_str_t *from,
2008
+ pjsip_rx_data *rdata,
2009
+ pjsip_status_code *code,
2010
+ pj_str_t *reason,
2011
+ pjsua_msg_data *msg_data);
2012
+ static void on_pager2(pjsua_call_id call_id,
2013
+ const pj_str_t *from,
2014
+ const pj_str_t *to,
2015
+ const pj_str_t *contact,
2016
+ const pj_str_t *mime_type,
2017
+ const pj_str_t *body,
2018
+ pjsip_rx_data *rdata,
2019
+ pjsua_acc_id acc_id);
2020
+ static void on_pager_status2(pjsua_call_id call_id,
2021
+ const pj_str_t *to,
2022
+ const pj_str_t *body,
2023
+ void *user_data,
2024
+ pjsip_status_code status,
2025
+ const pj_str_t *reason,
2026
+ pjsip_tx_data *tdata,
2027
+ pjsip_rx_data *rdata,
2028
+ pjsua_acc_id acc_id);
2029
+ static void on_typing2(pjsua_call_id call_id,
2030
+ const pj_str_t *from,
2031
+ const pj_str_t *to,
2032
+ const pj_str_t *contact,
2033
+ pj_bool_t is_typing,
2034
+ pjsip_rx_data *rdata,
2035
+ pjsua_acc_id acc_id);
2036
+ static void on_mwi_info(pjsua_acc_id acc_id,
2037
+ pjsua_mwi_info *mwi_info);
2038
+ static void on_acc_find_for_incoming(const pjsip_rx_data *rdata,
2039
+ pjsua_acc_id* acc_id);
2040
+ static void on_buddy_state(pjsua_buddy_id buddy_id);
2041
+ static void on_buddy_evsub_state(pjsua_buddy_id buddy_id,
2042
+ pjsip_evsub *sub,
2043
+ pjsip_event *event);
2044
+ // Call callbacks
2045
+ static void on_call_state(pjsua_call_id call_id, pjsip_event *e);
2046
+ static void on_call_tsx_state(pjsua_call_id call_id,
2047
+ pjsip_transaction *tsx,
2048
+ pjsip_event *e);
2049
+ static void on_call_media_state(pjsua_call_id call_id);
2050
+ static void on_call_sdp_created(pjsua_call_id call_id,
2051
+ pjmedia_sdp_session *sdp,
2052
+ pj_pool_t *pool,
2053
+ const pjmedia_sdp_session *rem_sdp);
2054
+ static void on_stream_precreate(pjsua_call_id call_id,
2055
+ pjsua_on_stream_precreate_param *param);
2056
+ static void on_stream_created2(pjsua_call_id call_id,
2057
+ pjsua_on_stream_created_param *param);
2058
+ static void on_stream_destroyed(pjsua_call_id call_id,
2059
+ pjmedia_stream *strm,
2060
+ unsigned stream_idx);
2061
+ static void on_dtmf_digit(pjsua_call_id call_id, int digit);
2062
+ static void on_dtmf_digit2(pjsua_call_id call_id,
2063
+ const pjsua_dtmf_info *info);
2064
+ static void on_dtmf_event(pjsua_call_id call_id,
2065
+ const pjsua_dtmf_event *event);
2066
+ static void on_call_transfer_request(pjsua_call_id call_id,
2067
+ const pj_str_t *dst,
2068
+ pjsip_status_code *code);
2069
+ static void on_call_transfer_request2(pjsua_call_id call_id,
2070
+ const pj_str_t *dst,
2071
+ pjsip_status_code *code,
2072
+ pjsua_call_setting *opt);
2073
+ static void on_call_transfer_status(pjsua_call_id call_id,
2074
+ int st_code,
2075
+ const pj_str_t *st_text,
2076
+ pj_bool_t final,
2077
+ pj_bool_t *p_cont);
2078
+ static void on_call_replace_request(pjsua_call_id call_id,
2079
+ pjsip_rx_data *rdata,
2080
+ int *st_code,
2081
+ pj_str_t *st_text);
2082
+ static void on_call_replace_request2(pjsua_call_id call_id,
2083
+ pjsip_rx_data *rdata,
2084
+ int *st_code,
2085
+ pj_str_t *st_text,
2086
+ pjsua_call_setting *opt);
2087
+ static void on_call_replaced(pjsua_call_id old_call_id,
2088
+ pjsua_call_id new_call_id);
2089
+ static void on_call_rx_offer(pjsua_call_id call_id,
2090
+ const pjmedia_sdp_session *offer,
2091
+ void *reserved,
2092
+ pjsip_status_code *code,
2093
+ pjsua_call_setting *opt);
2094
+ static void on_call_rx_reinvite(pjsua_call_id call_id,
2095
+ const pjmedia_sdp_session *offer,
2096
+ pjsip_rx_data *rdata,
2097
+ void *reserved,
2098
+ pj_bool_t *async,
2099
+ pjsip_status_code *code,
2100
+ pjsua_call_setting *opt);
2101
+ static void on_call_tx_offer(pjsua_call_id call_id,
2102
+ void *reserved,
2103
+ pjsua_call_setting *opt);
2104
+ static pjsip_redirect_op on_call_redirected(pjsua_call_id call_id,
2105
+ const pjsip_uri *target,
2106
+ const pjsip_event *e);
2107
+ static pj_status_t
2108
+ on_call_media_transport_state(pjsua_call_id call_id,
2109
+ const pjsua_med_tp_state_info *info);
2110
+ static void on_media_event(pjmedia_event *event);
2111
+ static void on_call_media_event(pjsua_call_id call_id,
2112
+ unsigned med_idx,
2113
+ pjmedia_event *event);
2114
+ static pjmedia_transport*
2115
+ on_create_media_transport(pjsua_call_id call_id,
2116
+ unsigned media_idx,
2117
+ pjmedia_transport *base_tp,
2118
+ unsigned flags);
2119
+ static void
2120
+ on_create_media_transport_srtp(pjsua_call_id call_id,
2121
+ unsigned media_idx,
2122
+ pjmedia_srtp_setting *srtp_opt);
2123
+
2124
+ static void
2125
+ on_ip_change_progress(pjsua_ip_change_op op,
2126
+ pj_status_t status,
2127
+ const pjsua_ip_change_op_info *info);
2128
+
2129
+ static pj_status_t on_auth_create_aka_response_callback(
2130
+ pj_pool_t *pool,
2131
+ const pjsip_digest_challenge*chal,
2132
+ const pjsip_cred_info *cred,
2133
+ const pj_str_t *method,
2134
+ pjsip_digest_credential *auth);
2135
+
2136
+ static void on_rejected_incoming_call(
2137
+ const pjsua_on_rejected_incoming_call_param *param);
2138
+
2139
+ friend class Account;
2140
+
2141
+
2142
+ private:
2143
+ void clearCodecInfoList(CodecInfoVector &codec_list);
2144
+ void updateCodecInfoList(pjsua_codec_info pj_codec[], unsigned count,
2145
+ CodecInfoVector &codec_list);
2146
+
2147
+ };
2148
+
2149
+
2150
+
2151
+ /**
2152
+ * @} PJSUA2_UA
2153
+ */
2154
+
2155
+ }
2156
+ /* End pj namespace */
2157
+
2158
+
2159
+ #endif /* __PJSUA2_UA_HPP__ */
2160
+