@voipsdk/react-native-voipcloud 1.0.0 → 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 (656) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +59 -12
  3. package/android/build.gradle +14 -8
  4. package/android/src/main/java/com/voipcloud/sdk/rn/VoipCloudModule.java +162 -7
  5. package/android/src/main/java/com/voipcloud/sdk/rn/internal/ManagedAccount.java +49 -5
  6. package/android/src/main/java/com/voipcloud/sdk/rn/internal/ManagedCall.java +58 -2
  7. package/android/src/main/java/com/voipcloud/sdk/rn/internal/ManagedCallRegistry.java +4 -0
  8. package/ios/VoipCloud.mm +214 -28
  9. package/ios/VoipCloud.xcframework/Info.plist +48 -0
  10. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/activesock.h +598 -0
  11. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/addr_resolv.h +189 -0
  12. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/array.h +95 -0
  13. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/assert.h +84 -0
  14. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/assert.h +36 -0
  15. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_armcc.h +57 -0
  16. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_clang.h +64 -0
  17. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_codew.h +55 -0
  18. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcc.h +79 -0
  19. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcce.h +54 -0
  20. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_msvc.h +87 -0
  21. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_mwcc.h +55 -0
  22. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/ctype.h +44 -0
  23. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/errno.h +44 -0
  24. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/high_precision.h +87 -0
  25. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/limits.h +66 -0
  26. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_alpha.h +35 -0
  27. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_armv4.h +38 -0
  28. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h +60 -0
  29. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h.in +59 -0
  30. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_i386.h +34 -0
  31. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_m68k.h +34 -0
  32. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_powerpc.h +35 -0
  33. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_sparc.h +34 -0
  34. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_x86_64.h +35 -0
  35. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/malloc.h +33 -0
  36. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h +245 -0
  37. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h.in +244 -0
  38. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_darwinos.h +141 -0
  39. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_linux.h +130 -0
  40. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_palmos.h +118 -0
  41. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_rtems.h +138 -0
  42. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_sunos.h +131 -0
  43. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_symbian.h +166 -0
  44. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32.h +148 -0
  45. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32_wince.h +145 -0
  46. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winphone8.h +149 -0
  47. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winuwp.h +149 -0
  48. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/rand.h +55 -0
  49. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/setjmp.h +49 -0
  50. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/size_t.h +31 -0
  51. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/socket.h +223 -0
  52. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdarg.h +31 -0
  53. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdfileio.h +31 -0
  54. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/string.h +178 -0
  55. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/time.h +41 -0
  56. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config.h +1537 -0
  57. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site.h +22 -0
  58. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_sample.h +485 -0
  59. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_test.h +11 -0
  60. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ctype.h +174 -0
  61. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/doxygen.h +995 -0
  62. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/errno.h +593 -0
  63. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/except.h +420 -0
  64. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/fifobuf.h +43 -0
  65. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_access.h +108 -0
  66. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_io.h +183 -0
  67. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/guid.h +119 -0
  68. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/hash.h +253 -0
  69. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ioqueue.h +955 -0
  70. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ip_helper.h +152 -0
  71. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/limits.h +57 -0
  72. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list.h +268 -0
  73. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list_i.h +120 -0
  74. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/lock.h +453 -0
  75. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/log.h +487 -0
  76. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/math.h +203 -0
  77. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/os.h +1536 -0
  78. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool.h +918 -0
  79. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_alt.h +212 -0
  80. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_buf.h +104 -0
  81. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_i.h +131 -0
  82. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rand.h +65 -0
  83. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rbtree.h +215 -0
  84. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock.h +1566 -0
  85. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_qos.h +429 -0
  86. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_select.h +151 -0
  87. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ssl_sock.h +1508 -0
  88. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string.h +963 -0
  89. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string_i.h +406 -0
  90. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/timer.h +386 -0
  91. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/types.h +594 -0
  92. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/unicode.h +140 -0
  93. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/file.hpp +187 -0
  94. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/hash.hpp +155 -0
  95. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/list.hpp +351 -0
  96. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/lock.hpp +148 -0
  97. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/os.hpp +869 -0
  98. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/pool.hpp +278 -0
  99. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/proactor.hpp +514 -0
  100. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/scanner.hpp +245 -0
  101. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/sock.hpp +443 -0
  102. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/string.hpp +467 -0
  103. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/timer.hpp +197 -0
  104. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/tree.hpp +128 -0
  105. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/types.hpp +174 -0
  106. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib++.hpp +34 -0
  107. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/base64.h +91 -0
  108. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli.h +530 -0
  109. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_console.h +116 -0
  110. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_imp.h +207 -0
  111. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_telnet.h +167 -0
  112. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/config.h +373 -0
  113. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/crc32.h +95 -0
  114. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns.h +460 -0
  115. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns_server.h +116 -0
  116. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/errno.h +455 -0
  117. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/getopt.h +144 -0
  118. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_md5.h +108 -0
  119. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_sha1.h +106 -0
  120. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/http_client.h +493 -0
  121. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/json.h +227 -0
  122. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/md5.h +73 -0
  123. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/pcap.h +195 -0
  124. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/resolver.h +515 -0
  125. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner.h +553 -0
  126. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
  127. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_uint.h +83 -0
  128. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/sha1.h +79 -0
  129. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/srv_resolver.h +221 -0
  130. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/string.h +101 -0
  131. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/stun_simple.h +288 -0
  132. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/types.h +94 -0
  133. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/xml.h +248 -0
  134. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util.h +75 -0
  135. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib.h +62 -0
  136. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/alaw_ulaw.h +212 -0
  137. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/audiodev.h +761 -0
  138. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi.h +201 -0
  139. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi_stream.h +195 -0
  140. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/bidirectional.h +66 -0
  141. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/circbuf.h +436 -0
  142. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/clock.h +338 -0
  143. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/codec.h +1192 -0
  144. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/conference.h +599 -0
  145. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config.h +1713 -0
  146. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h +43 -0
  147. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h.in +42 -0
  148. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/converter.h +386 -0
  149. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/delaybuf.h +175 -0
  150. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/doxygen.h +243 -0
  151. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo.h +420 -0
  152. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo_port.h +73 -0
  153. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/endpoint.h +389 -0
  154. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/errno.h +693 -0
  155. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/event.h +493 -0
  156. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/format.h +821 -0
  157. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/frame.h +331 -0
  158. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/g711.h +88 -0
  159. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/jbuf.h +484 -0
  160. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/master_port.h +198 -0
  161. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/mem_port.h +241 -0
  162. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/null_port.h +69 -0
  163. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/plc.h +114 -0
  164. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/port.h +565 -0
  165. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/resample.h +199 -0
  166. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp.h +511 -0
  167. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_fb.h +487 -0
  168. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_xr.h +477 -0
  169. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtp.h +457 -0
  170. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp.h +830 -0
  171. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp_neg.h +822 -0
  172. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/session.h +435 -0
  173. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/signatures.h +217 -0
  174. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/silencedet.h +199 -0
  175. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound.h +353 -0
  176. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound_port.h +397 -0
  177. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/splitcomb.h +142 -0
  178. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stereo.h +203 -0
  179. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream.h +541 -0
  180. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream_common.h +123 -0
  181. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/symbian_sound_aps.h +47 -0
  182. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/tonegen.h +302 -0
  183. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport.h +1069 -0
  184. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_adapter_sample.h +75 -0
  185. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_ice.h +458 -0
  186. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_loop.h +158 -0
  187. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_srtp.h +579 -0
  188. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_udp.h +161 -0
  189. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/types.h +345 -0
  190. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec.h +896 -0
  191. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec_util.h +194 -0
  192. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_conf.h +310 -0
  193. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_port.h +269 -0
  194. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_stream.h +514 -0
  195. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_tee.h +141 -0
  196. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/videodev.h +859 -0
  197. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_playlist.h +131 -0
  198. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_port.h +342 -0
  199. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wave.h +183 -0
  200. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wsola.h +218 -0
  201. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev.h +110 -0
  202. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
  203. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiotest.h +115 -0
  204. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/config.h +525 -0
  205. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/errno.h +227 -0
  206. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_helper.h +1236 -0
  207. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
  208. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
  209. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
  210. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/audio_codecs.h +97 -0
  211. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/bcg729.h +120 -0
  212. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config.h +720 -0
  213. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h +104 -0
  214. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h.in +103 -0
  215. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
  216. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g722.h +103 -0
  217. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221.h +164 -0
  218. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
  219. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/gsm.h +86 -0
  220. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h263_packetizer.h +145 -0
  221. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h264_packetizer.h +163 -0
  222. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ilbc.h +118 -0
  223. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ipp_codecs.h +321 -0
  224. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/l16.h +83 -0
  225. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opencore_amr.h +145 -0
  226. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/openh264.h +68 -0
  227. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opus.h +160 -0
  228. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/passthrough.h +276 -0
  229. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/silk.h +126 -0
  230. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/speex.h +149 -0
  231. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/types.h +145 -0
  232. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vid_toolbox.h +70 -0
  233. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx.h +68 -0
  234. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
  235. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec.h +47 -0
  236. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/avi_dev.h +139 -0
  237. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/config.h +326 -0
  238. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/errno.h +158 -0
  239. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/opengl_dev.h +52 -0
  240. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev.h +119 -0
  241. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev_imp.h +229 -0
  242. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia.h +81 -0
  243. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_audiodev.h +32 -0
  244. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_videodev.h +30 -0
  245. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/config.h +596 -0
  246. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/errno.h +225 -0
  247. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_session.h +1122 -0
  248. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_strans.h +1112 -0
  249. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/nat_detect.h +233 -0
  250. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_auth.h +456 -0
  251. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_config.h +135 -0
  252. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_msg.h +1856 -0
  253. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_session.h +763 -0
  254. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_sock.h +496 -0
  255. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_transaction.h +291 -0
  256. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_session.h +968 -0
  257. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_sock.h +673 -0
  258. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/types.h +75 -0
  259. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/upnp.h +147 -0
  260. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath.h +46 -0
  261. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/print_util.h +166 -0
  262. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth.h +637 -0
  263. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_aka.h +212 -0
  264. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_msg.h +269 -0
  265. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_parser.h +74 -0
  266. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h +39 -0
  267. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h.in +38 -0
  268. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_config.h +1545 -0
  269. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_dialog.h +935 -0
  270. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_endpoint.h +715 -0
  271. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_errno.h +544 -0
  272. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_event.h +230 -0
  273. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_module.h +221 -0
  274. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_msg.h +2134 -0
  275. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_multipart.h +276 -0
  276. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_parser.h +465 -0
  277. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_private.h +31 -0
  278. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_resolve.h +347 -0
  279. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_tel_uri.h +83 -0
  280. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transaction.h +542 -0
  281. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport.h +1672 -0
  282. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_loop.h +146 -0
  283. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tcp.h +300 -0
  284. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tls.h +642 -0
  285. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_udp.h +389 -0
  286. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_types.h +265 -0
  287. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_ua_layer.h +159 -0
  288. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_uri.h +470 -0
  289. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_util.h +888 -0
  290. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/errno.h +117 -0
  291. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub.h +561 -0
  292. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub_msg.h +119 -0
  293. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/iscomposing.h +137 -0
  294. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/mwi.h +211 -0
  295. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/pidf.h +177 -0
  296. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/presence.h +416 -0
  297. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/publish.h +350 -0
  298. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/rpid.h +150 -0
  299. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/types.h +30 -0
  300. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/xpidf.h +137 -0
  301. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_100rel.h +244 -0
  302. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_inv.h +1224 -0
  303. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_regc.h +497 -0
  304. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_replaces.h +303 -0
  305. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_timer.h +274 -0
  306. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_xfer.h +207 -0
  307. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip.h +61 -0
  308. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_auth.h +37 -0
  309. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_simple.h +45 -0
  310. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_ua.h +31 -0
  311. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua.h +8899 -0
  312. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua_internal.h +989 -0
  313. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua.h +1 -0
  314. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/account.hpp +2123 -0
  315. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/call.hpp +2253 -0
  316. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/config.hpp +72 -0
  317. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/doxygen.hpp +48 -0
  318. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/endpoint.hpp +2160 -0
  319. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/json.hpp +115 -0
  320. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/media.hpp +2748 -0
  321. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/persistent.hpp +715 -0
  322. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/presence.hpp +368 -0
  323. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/siptypes.hpp +1013 -0
  324. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/types.hpp +283 -0
  325. package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2.hpp +28 -0
  326. package/ios/VoipCloud.xcframework/ios-arm64/libVoipCloud.a +0 -0
  327. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/activesock.h +598 -0
  328. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/addr_resolv.h +189 -0
  329. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/array.h +95 -0
  330. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/assert.h +84 -0
  331. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/assert.h +36 -0
  332. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_armcc.h +57 -0
  333. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_clang.h +64 -0
  334. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_codew.h +55 -0
  335. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcc.h +79 -0
  336. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcce.h +54 -0
  337. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_msvc.h +87 -0
  338. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_mwcc.h +55 -0
  339. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/ctype.h +44 -0
  340. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/errno.h +44 -0
  341. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/high_precision.h +87 -0
  342. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/limits.h +66 -0
  343. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_alpha.h +35 -0
  344. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_armv4.h +38 -0
  345. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h +60 -0
  346. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h.in +59 -0
  347. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_i386.h +34 -0
  348. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_m68k.h +34 -0
  349. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_powerpc.h +35 -0
  350. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_sparc.h +34 -0
  351. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_x86_64.h +35 -0
  352. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/malloc.h +33 -0
  353. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h +245 -0
  354. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h.in +244 -0
  355. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_darwinos.h +141 -0
  356. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_linux.h +130 -0
  357. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_palmos.h +118 -0
  358. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_rtems.h +138 -0
  359. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_sunos.h +131 -0
  360. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_symbian.h +166 -0
  361. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32.h +148 -0
  362. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32_wince.h +145 -0
  363. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winphone8.h +149 -0
  364. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winuwp.h +149 -0
  365. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/rand.h +55 -0
  366. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/setjmp.h +49 -0
  367. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/size_t.h +31 -0
  368. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/socket.h +223 -0
  369. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdarg.h +31 -0
  370. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdfileio.h +31 -0
  371. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/string.h +178 -0
  372. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/time.h +41 -0
  373. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config.h +1537 -0
  374. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site.h +22 -0
  375. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_sample.h +485 -0
  376. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_test.h +11 -0
  377. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ctype.h +174 -0
  378. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/doxygen.h +995 -0
  379. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/errno.h +593 -0
  380. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/except.h +420 -0
  381. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/fifobuf.h +43 -0
  382. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_access.h +108 -0
  383. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_io.h +183 -0
  384. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/guid.h +119 -0
  385. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/hash.h +253 -0
  386. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ioqueue.h +955 -0
  387. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ip_helper.h +152 -0
  388. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/limits.h +57 -0
  389. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list.h +268 -0
  390. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list_i.h +120 -0
  391. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/lock.h +453 -0
  392. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/log.h +487 -0
  393. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/math.h +203 -0
  394. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/os.h +1536 -0
  395. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool.h +918 -0
  396. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_alt.h +212 -0
  397. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_buf.h +104 -0
  398. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_i.h +131 -0
  399. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rand.h +65 -0
  400. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rbtree.h +215 -0
  401. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock.h +1566 -0
  402. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_qos.h +429 -0
  403. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_select.h +151 -0
  404. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ssl_sock.h +1508 -0
  405. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string.h +963 -0
  406. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string_i.h +406 -0
  407. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/timer.h +386 -0
  408. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/types.h +594 -0
  409. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/unicode.h +140 -0
  410. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/file.hpp +187 -0
  411. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/hash.hpp +155 -0
  412. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/list.hpp +351 -0
  413. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/lock.hpp +148 -0
  414. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/os.hpp +869 -0
  415. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/pool.hpp +278 -0
  416. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/proactor.hpp +514 -0
  417. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/scanner.hpp +245 -0
  418. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/sock.hpp +443 -0
  419. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/string.hpp +467 -0
  420. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/timer.hpp +197 -0
  421. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/tree.hpp +128 -0
  422. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/types.hpp +174 -0
  423. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib++.hpp +34 -0
  424. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/base64.h +91 -0
  425. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli.h +530 -0
  426. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_console.h +116 -0
  427. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_imp.h +207 -0
  428. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_telnet.h +167 -0
  429. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/config.h +373 -0
  430. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/crc32.h +95 -0
  431. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns.h +460 -0
  432. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns_server.h +116 -0
  433. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/errno.h +455 -0
  434. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/getopt.h +144 -0
  435. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_md5.h +108 -0
  436. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_sha1.h +106 -0
  437. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/http_client.h +493 -0
  438. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/json.h +227 -0
  439. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/md5.h +73 -0
  440. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/pcap.h +195 -0
  441. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/resolver.h +515 -0
  442. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner.h +553 -0
  443. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
  444. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_uint.h +83 -0
  445. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/sha1.h +79 -0
  446. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/srv_resolver.h +221 -0
  447. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/string.h +101 -0
  448. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/stun_simple.h +288 -0
  449. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/types.h +94 -0
  450. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/xml.h +248 -0
  451. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util.h +75 -0
  452. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib.h +62 -0
  453. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/alaw_ulaw.h +212 -0
  454. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/audiodev.h +761 -0
  455. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi.h +201 -0
  456. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi_stream.h +195 -0
  457. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/bidirectional.h +66 -0
  458. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/circbuf.h +436 -0
  459. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/clock.h +338 -0
  460. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/codec.h +1192 -0
  461. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/conference.h +599 -0
  462. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config.h +1713 -0
  463. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h +43 -0
  464. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h.in +42 -0
  465. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/converter.h +386 -0
  466. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/delaybuf.h +175 -0
  467. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/doxygen.h +243 -0
  468. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo.h +420 -0
  469. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo_port.h +73 -0
  470. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/endpoint.h +389 -0
  471. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/errno.h +693 -0
  472. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/event.h +493 -0
  473. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/format.h +821 -0
  474. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/frame.h +331 -0
  475. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/g711.h +88 -0
  476. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/jbuf.h +484 -0
  477. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/master_port.h +198 -0
  478. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/mem_port.h +241 -0
  479. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/null_port.h +69 -0
  480. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/plc.h +114 -0
  481. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/port.h +565 -0
  482. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/resample.h +199 -0
  483. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp.h +511 -0
  484. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_fb.h +487 -0
  485. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_xr.h +477 -0
  486. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtp.h +457 -0
  487. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp.h +830 -0
  488. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp_neg.h +822 -0
  489. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/session.h +435 -0
  490. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/signatures.h +217 -0
  491. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/silencedet.h +199 -0
  492. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound.h +353 -0
  493. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound_port.h +397 -0
  494. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/splitcomb.h +142 -0
  495. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stereo.h +203 -0
  496. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream.h +541 -0
  497. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream_common.h +123 -0
  498. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/symbian_sound_aps.h +47 -0
  499. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/tonegen.h +302 -0
  500. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport.h +1069 -0
  501. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_adapter_sample.h +75 -0
  502. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_ice.h +458 -0
  503. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_loop.h +158 -0
  504. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_srtp.h +579 -0
  505. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_udp.h +161 -0
  506. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/types.h +345 -0
  507. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec.h +896 -0
  508. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec_util.h +194 -0
  509. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_conf.h +310 -0
  510. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_port.h +269 -0
  511. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_stream.h +514 -0
  512. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_tee.h +141 -0
  513. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/videodev.h +859 -0
  514. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_playlist.h +131 -0
  515. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_port.h +342 -0
  516. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wave.h +183 -0
  517. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wsola.h +218 -0
  518. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev.h +110 -0
  519. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
  520. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiotest.h +115 -0
  521. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/config.h +525 -0
  522. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/errno.h +227 -0
  523. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_helper.h +1236 -0
  524. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
  525. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
  526. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
  527. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/audio_codecs.h +97 -0
  528. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/bcg729.h +120 -0
  529. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config.h +720 -0
  530. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h +104 -0
  531. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h.in +103 -0
  532. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
  533. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g722.h +103 -0
  534. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221.h +164 -0
  535. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
  536. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/gsm.h +86 -0
  537. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h263_packetizer.h +145 -0
  538. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h264_packetizer.h +163 -0
  539. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ilbc.h +118 -0
  540. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ipp_codecs.h +321 -0
  541. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/l16.h +83 -0
  542. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opencore_amr.h +145 -0
  543. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/openh264.h +68 -0
  544. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opus.h +160 -0
  545. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/passthrough.h +276 -0
  546. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/silk.h +126 -0
  547. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/speex.h +149 -0
  548. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/types.h +145 -0
  549. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vid_toolbox.h +70 -0
  550. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx.h +68 -0
  551. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
  552. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec.h +47 -0
  553. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/avi_dev.h +139 -0
  554. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/config.h +326 -0
  555. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/errno.h +158 -0
  556. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/opengl_dev.h +52 -0
  557. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev.h +119 -0
  558. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev_imp.h +229 -0
  559. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia.h +81 -0
  560. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_audiodev.h +32 -0
  561. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_videodev.h +30 -0
  562. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/config.h +596 -0
  563. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/errno.h +225 -0
  564. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_session.h +1122 -0
  565. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_strans.h +1112 -0
  566. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/nat_detect.h +233 -0
  567. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_auth.h +456 -0
  568. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_config.h +135 -0
  569. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_msg.h +1856 -0
  570. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_session.h +763 -0
  571. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_sock.h +496 -0
  572. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_transaction.h +291 -0
  573. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_session.h +968 -0
  574. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_sock.h +673 -0
  575. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/types.h +75 -0
  576. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/upnp.h +147 -0
  577. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath.h +46 -0
  578. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/print_util.h +166 -0
  579. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth.h +637 -0
  580. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_aka.h +212 -0
  581. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_msg.h +269 -0
  582. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_parser.h +74 -0
  583. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h +39 -0
  584. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h.in +38 -0
  585. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_config.h +1545 -0
  586. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_dialog.h +935 -0
  587. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_endpoint.h +715 -0
  588. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_errno.h +544 -0
  589. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_event.h +230 -0
  590. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_module.h +221 -0
  591. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_msg.h +2134 -0
  592. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_multipart.h +276 -0
  593. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_parser.h +465 -0
  594. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_private.h +31 -0
  595. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_resolve.h +347 -0
  596. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_tel_uri.h +83 -0
  597. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transaction.h +542 -0
  598. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport.h +1672 -0
  599. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_loop.h +146 -0
  600. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tcp.h +300 -0
  601. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tls.h +642 -0
  602. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_udp.h +389 -0
  603. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_types.h +265 -0
  604. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_ua_layer.h +159 -0
  605. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_uri.h +470 -0
  606. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_util.h +888 -0
  607. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/errno.h +117 -0
  608. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub.h +561 -0
  609. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub_msg.h +119 -0
  610. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/iscomposing.h +137 -0
  611. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/mwi.h +211 -0
  612. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/pidf.h +177 -0
  613. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/presence.h +416 -0
  614. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/publish.h +350 -0
  615. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/rpid.h +150 -0
  616. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/types.h +30 -0
  617. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/xpidf.h +137 -0
  618. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_100rel.h +244 -0
  619. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_inv.h +1224 -0
  620. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_regc.h +497 -0
  621. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_replaces.h +303 -0
  622. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_timer.h +274 -0
  623. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_xfer.h +207 -0
  624. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip.h +61 -0
  625. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_auth.h +37 -0
  626. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_simple.h +45 -0
  627. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_ua.h +31 -0
  628. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua.h +8899 -0
  629. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua_internal.h +989 -0
  630. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua.h +1 -0
  631. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/account.hpp +2123 -0
  632. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/call.hpp +2253 -0
  633. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/config.hpp +72 -0
  634. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/doxygen.hpp +48 -0
  635. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/endpoint.hpp +2160 -0
  636. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/json.hpp +115 -0
  637. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/media.hpp +2748 -0
  638. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/persistent.hpp +715 -0
  639. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/presence.hpp +368 -0
  640. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/siptypes.hpp +1013 -0
  641. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/types.hpp +283 -0
  642. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2.hpp +28 -0
  643. package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/libVoipCloud.a +0 -0
  644. package/ios/VoipCloudEngine.h +62 -0
  645. package/ios/VoipCloudEngine.mm +571 -0
  646. package/lib/commonjs/VoipCloud.js +5 -2
  647. package/lib/commonjs/VoipCloud.js.map +1 -1
  648. package/lib/module/VoipCloud.js +5 -2
  649. package/lib/module/VoipCloud.js.map +1 -1
  650. package/lib/typescript/VoipCloud.d.ts +2 -1
  651. package/lib/typescript/types.d.ts +4 -0
  652. package/package.json +6 -4
  653. package/react-native-voipcloud.podspec +27 -1
  654. package/react-native.config.js +22 -0
  655. package/src/VoipCloud.ts +6 -2
  656. package/src/types.ts +4 -0
@@ -0,0 +1,2134 @@
1
+ /*
2
+ * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3
+ * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
+ */
19
+ #ifndef __PJSIP_SIP_MSG_H__
20
+ #define __PJSIP_SIP_MSG_H__
21
+
22
+ /**
23
+ * @file pjsip/sip_msg.h
24
+ * @brief SIP Message Structure.
25
+ */
26
+
27
+ #include <pjsip/sip_types.h>
28
+ #include <pjsip/sip_uri.h>
29
+ #include <pj/list.h>
30
+
31
+ PJ_BEGIN_DECL
32
+
33
+ /**
34
+ * @defgroup PJSIP_MSG Messaging Elements
35
+ * @ingroup PJSIP_CORE
36
+ * @brief Various SIP message elements such as methods, headers, URIs, etc.
37
+ * @{
38
+ */
39
+
40
+ /* **************************************************************************/
41
+ /**
42
+ * @defgroup PJSIP_MSG_METHOD Methods
43
+ * @brief Method names and manipulation.
44
+ * @ingroup PJSIP_MSG
45
+ * @{
46
+ */
47
+
48
+ /**
49
+ * This enumeration declares SIP methods as described by RFC3261. Additional
50
+ * methods do exist, and they are described by corresponding RFCs for the SIP
51
+ * extentensions. Since they won't alter the characteristic of the processing
52
+ * of the message, they don't need to be explicitly mentioned here.
53
+ */
54
+ typedef enum pjsip_method_e
55
+ {
56
+ PJSIP_INVITE_METHOD, /**< INVITE method, for establishing dialogs. */
57
+ PJSIP_CANCEL_METHOD, /**< CANCEL method, for cancelling request. */
58
+ PJSIP_ACK_METHOD, /**< ACK method. */
59
+ PJSIP_BYE_METHOD, /**< BYE method, for terminating dialog. */
60
+ PJSIP_REGISTER_METHOD, /**< REGISTER method. */
61
+ PJSIP_OPTIONS_METHOD, /**< OPTIONS method. */
62
+
63
+ PJSIP_OTHER_METHOD /**< Other method. */
64
+
65
+ } pjsip_method_e;
66
+
67
+
68
+
69
+ /**
70
+ * This structure represents a SIP method.
71
+ * Application must always use either #pjsip_method_init or #pjsip_method_set
72
+ * to make sure that method name is initialized correctly. This way, the name
73
+ * member will always contain a valid method string regardless whether the ID
74
+ * is recognized or not.
75
+ */
76
+ struct pjsip_method
77
+ {
78
+ pjsip_method_e id; /**< Method ID, from \a pjsip_method_e. */
79
+ pj_str_t name; /**< Method name, which will always contain the
80
+ method string. */
81
+ };
82
+
83
+
84
+ /*
85
+ * For convenience, standard method structures are defined in the library.
86
+ */
87
+ /** INVITE method constant. @see pjsip_get_invite_method() */
88
+ PJ_DECL_DATA(const pjsip_method) pjsip_invite_method;
89
+
90
+ /** CANCEL method constant. @see pjsip_get_cancel_method() */
91
+ PJ_DECL_DATA(const pjsip_method) pjsip_cancel_method;
92
+
93
+ /** ACK method constant. @see pjsip_get_ack_method() */
94
+ PJ_DECL_DATA(const pjsip_method) pjsip_ack_method;
95
+
96
+ /** BYE method constant. @see pjsip_get_bye_method() */
97
+ PJ_DECL_DATA(const pjsip_method) pjsip_bye_method;
98
+
99
+ /** REGISTER method constant. @see pjsip_get_register_method() */
100
+ PJ_DECL_DATA(const pjsip_method) pjsip_register_method;
101
+
102
+ /** OPTIONS method constant. @see pjsip_get_options_method() */
103
+ PJ_DECL_DATA(const pjsip_method) pjsip_options_method;
104
+
105
+ /*
106
+ * Accessor functions for standard SIP methods.
107
+ */
108
+ /** Get INVITE method constant. */
109
+ PJ_DECL(const pjsip_method*) pjsip_get_invite_method(void);
110
+ /** Get CANCEL method constant. */
111
+ PJ_DECL(const pjsip_method*) pjsip_get_cancel_method(void);
112
+ /** Get ACK method constant. */
113
+ PJ_DECL(const pjsip_method*) pjsip_get_ack_method(void);
114
+ /** Get BYE method constant. */
115
+ PJ_DECL(const pjsip_method*) pjsip_get_bye_method(void);
116
+ /** Get REGISTER method constant.*/
117
+ PJ_DECL(const pjsip_method*) pjsip_get_register_method(void);
118
+ /** Get OPTIONS method constant. */
119
+ PJ_DECL(const pjsip_method*) pjsip_get_options_method(void);
120
+
121
+
122
+ /*
123
+ * Accessor functions
124
+ */
125
+
126
+ /**
127
+ * Initialize the method structure from a string.
128
+ * This function will check whether the method is a known method then set
129
+ * both the id and name accordingly.
130
+ *
131
+ * @param m The method to initialize.
132
+ * @param pool Pool where memory allocation will be allocated from, if required.
133
+ * @param str The method string.
134
+ */
135
+ PJ_DECL(void) pjsip_method_init( pjsip_method *m,
136
+ pj_pool_t *pool,
137
+ const pj_str_t *str);
138
+
139
+ /**
140
+ * Initialize the method structure from a string, without cloning the string.
141
+ * See #pjsip_method_init.
142
+ *
143
+ * @param m The method structure to be initialized.
144
+ * @param str The method string.
145
+ */
146
+ PJ_DECL(void) pjsip_method_init_np( pjsip_method *m,
147
+ pj_str_t *str);
148
+
149
+ /**
150
+ * Set the method with the predefined method ID.
151
+ * This function will also set the name member of the structure to the correct
152
+ * string according to the method.
153
+ *
154
+ * @param m The method structure.
155
+ * @param id The method ID.
156
+ */
157
+ PJ_DECL(void) pjsip_method_set( pjsip_method *m, pjsip_method_e id );
158
+
159
+
160
+ /**
161
+ * Copy one method structure to another. If the method is of the known methods,
162
+ * then memory allocation is not required.
163
+ *
164
+ * @param pool Pool to allocate memory from, if required.
165
+ * @param method The destination method to copy to.
166
+ * @param rhs The source method to copy from.
167
+ */
168
+ PJ_DECL(void) pjsip_method_copy( pj_pool_t *pool,
169
+ pjsip_method *method,
170
+ const pjsip_method *rhs );
171
+
172
+ /**
173
+ * Compare one method with another, and conveniently determine whether the
174
+ * first method is equal, less than, or greater than the second method.
175
+ *
176
+ * @param m1 The first method.
177
+ * @param m2 The second method.
178
+ *
179
+ * @return Zero if equal, otherwise will return -1 if less or +1 if greater.
180
+ */
181
+ PJ_DECL(int) pjsip_method_cmp( const pjsip_method *m1, const pjsip_method *m2);
182
+
183
+ /**
184
+ * @}
185
+ */
186
+
187
+ /* **************************************************************************/
188
+ /**
189
+ * @defgroup PJSIP_MSG_HDR Header Fields
190
+ * @brief Declarations for various SIP header fields.
191
+ * @ingroup PJSIP_MSG
192
+ * @{
193
+ */
194
+
195
+ /**
196
+ * Header types, as defined by RFC3261.
197
+ */
198
+ typedef enum pjsip_hdr_e
199
+ {
200
+ /*
201
+ * These are the headers documented in RFC3261. Headers not documented
202
+ * there must have type PJSIP_H_OTHER, and the header type itself is
203
+ * recorded in the header name string.
204
+ *
205
+ * DO NOT CHANGE THE VALUE/ORDER OF THE HEADER IDs!!!.
206
+ */
207
+ PJSIP_H_ACCEPT,
208
+ PJSIP_H_ACCEPT_ENCODING_UNIMP, /* N/A, use pjsip_generic_string_hdr */
209
+ PJSIP_H_ACCEPT_LANGUAGE_UNIMP, /* N/A, use pjsip_generic_string_hdr */
210
+ PJSIP_H_ALERT_INFO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
211
+ PJSIP_H_ALLOW,
212
+ PJSIP_H_AUTHENTICATION_INFO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
213
+ PJSIP_H_AUTHORIZATION,
214
+ PJSIP_H_CALL_ID,
215
+ PJSIP_H_CALL_INFO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
216
+ PJSIP_H_CONTACT,
217
+ PJSIP_H_CONTENT_DISPOSITION_UNIMP, /* N/A, use pjsip_generic_string_hdr */
218
+ PJSIP_H_CONTENT_ENCODING_UNIMP, /* N/A, use pjsip_generic_string_hdr */
219
+ PJSIP_H_CONTENT_LANGUAGE_UNIMP, /* N/A, use pjsip_generic_string_hdr */
220
+ PJSIP_H_CONTENT_LENGTH,
221
+ PJSIP_H_CONTENT_TYPE,
222
+ PJSIP_H_CSEQ,
223
+ PJSIP_H_DATE_UNIMP, /* N/A, use pjsip_generic_string_hdr */
224
+ PJSIP_H_ERROR_INFO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
225
+ PJSIP_H_EXPIRES,
226
+ PJSIP_H_FROM,
227
+ PJSIP_H_IN_REPLY_TO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
228
+ PJSIP_H_MAX_FORWARDS,
229
+ PJSIP_H_MIME_VERSION_UNIMP, /* N/A, use pjsip_generic_string_hdr */
230
+ PJSIP_H_MIN_EXPIRES,
231
+ PJSIP_H_ORGANIZATION_UNIMP, /* N/A, use pjsip_generic_string_hdr */
232
+ PJSIP_H_PRIORITY_UNIMP, /* N/A, use pjsip_generic_string_hdr */
233
+ PJSIP_H_PROXY_AUTHENTICATE,
234
+ PJSIP_H_PROXY_AUTHORIZATION,
235
+ PJSIP_H_PROXY_REQUIRE_UNIMP, /* N/A, use pjsip_generic_string_hdr */
236
+ PJSIP_H_RECORD_ROUTE,
237
+ PJSIP_H_REPLY_TO_UNIMP, /* N/A, use pjsip_generic_string_hdr */
238
+ PJSIP_H_REQUIRE,
239
+ PJSIP_H_RETRY_AFTER,
240
+ PJSIP_H_ROUTE,
241
+ PJSIP_H_SERVER_UNIMP, /* N/A, use pjsip_generic_string_hdr */
242
+ PJSIP_H_SUBJECT_UNIMP, /* N/A, use pjsip_generic_string_hdr */
243
+ PJSIP_H_SUPPORTED,
244
+ PJSIP_H_TIMESTAMP_UNIMP, /* N/A, use pjsip_generic_string_hdr */
245
+ PJSIP_H_TO,
246
+ PJSIP_H_UNSUPPORTED,
247
+ PJSIP_H_USER_AGENT_UNIMP, /* N/A, use pjsip_generic_string_hdr */
248
+ PJSIP_H_VIA,
249
+ PJSIP_H_WARNING_UNIMP, /* N/A, use pjsip_generic_string_hdr */
250
+ PJSIP_H_WWW_AUTHENTICATE,
251
+
252
+ PJSIP_H_OTHER
253
+
254
+ } pjsip_hdr_e;
255
+
256
+ /**
257
+ * This structure provides the pointer to basic functions that are needed
258
+ * for generic header operations. All header fields will have pointer to
259
+ * this structure, so that they can be manipulated uniformly.
260
+ */
261
+ typedef struct pjsip_hdr_vptr
262
+ {
263
+ /**
264
+ * Function to clone the header.
265
+ *
266
+ * @param pool Memory pool to allocate the new header.
267
+ * @param hdr Header to clone.
268
+ *
269
+ * @return A new instance of the header.
270
+ */
271
+ void *(*clone)(pj_pool_t *pool, const void *hdr);
272
+
273
+ /**
274
+ * Pointer to function to shallow clone the header.
275
+ * Shallow cloning will just make a memory copy of the original header,
276
+ * thus all pointers in original header will be kept intact. Because the
277
+ * function does not need to perform deep copy, the operation should be
278
+ * faster, but the application must make sure that the original header
279
+ * is still valid throughout the lifetime of new header.
280
+ *
281
+ * @param pool Memory pool to allocate the new header.
282
+ * @param hdr The header to clone.
283
+ */
284
+ void *(*shallow_clone)(pj_pool_t *pool, const void *hdr);
285
+
286
+ /** Pointer to function to print the header to the specified buffer.
287
+ * Returns the length of string written, or -1 if the remaining buffer
288
+ * is not enough to hold the header.
289
+ *
290
+ * @param hdr The header to print.
291
+ * @param buf The buffer.
292
+ * @param len The size of the buffer.
293
+ *
294
+ * @return The size copied to buffer, or -1 if there's not enough space.
295
+ */
296
+ int (*print_on)(void *hdr, char *buf, pj_size_t len);
297
+
298
+ } pjsip_hdr_vptr;
299
+
300
+
301
+ /**
302
+ * Generic fields for all SIP headers are declared using this macro, to make
303
+ * sure that all headers will have exactly the same layout in their start of
304
+ * the storage. This behaves like C++ inheritance actually.
305
+ */
306
+ #define PJSIP_DECL_HDR_MEMBER(hdr) \
307
+ /** List members. */ \
308
+ PJ_DECL_LIST_MEMBER(hdr); \
309
+ /** Header type */ \
310
+ pjsip_hdr_e type; \
311
+ /** Header name. */ \
312
+ pj_str_t name; \
313
+ /** Header short name version. */ \
314
+ pj_str_t sname; \
315
+ /** Virtual function table. */ \
316
+ pjsip_hdr_vptr *vptr
317
+
318
+
319
+ /**
320
+ * Generic SIP header structure, for generic manipulation for headers in the
321
+ * message. All header fields can be typecasted to this type.
322
+ */
323
+ struct pjsip_hdr
324
+ {
325
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_hdr);
326
+ };
327
+
328
+
329
+ /**
330
+ * This generic function will clone any header, by calling "clone" function
331
+ * in header's virtual function table.
332
+ *
333
+ * @param pool The pool to allocate memory from.
334
+ * @param hdr The header to clone.
335
+ *
336
+ * @return A new instance copied from the original header.
337
+ */
338
+ PJ_DECL(void*) pjsip_hdr_clone( pj_pool_t *pool, const void *hdr );
339
+
340
+
341
+ /**
342
+ * This generic function will clone any header, by calling "shallow_clone"
343
+ * function in header's virtual function table.
344
+ *
345
+ * @param pool The pool to allocate memory from.
346
+ * @param hdr The header to clone.
347
+ *
348
+ * @return A new instance copied from the original header.
349
+ */
350
+ PJ_DECL(void*) pjsip_hdr_shallow_clone( pj_pool_t *pool, const void *hdr );
351
+
352
+ /**
353
+ * This generic function will print any header, by calling "print"
354
+ * function in header's virtual function table.
355
+ *
356
+ * @param hdr The header to print.
357
+ * @param buf The buffer.
358
+ * @param len The size of the buffer.
359
+ *
360
+ * @return The size copied to buffer, or -1 if there's not enough space.
361
+ */
362
+ PJ_DECL(int) pjsip_hdr_print_on( void *hdr, char *buf, pj_size_t len);
363
+
364
+ /**
365
+ * Find a header in a header list by the header type.
366
+ *
367
+ * @param hdr_list The "head" of the header list.
368
+ * @param type The header type to find.
369
+ * @param start The first header field where the search should begin.
370
+ * If NULL is specified, then the search will begin from the
371
+ * first header, otherwise the search will begin at the
372
+ * specified header.
373
+ *
374
+ * @return The header field, or NULL if no header with the specified
375
+ * type is found.
376
+ */
377
+ PJ_DECL(void*) pjsip_hdr_find( const void *hdr_list,
378
+ pjsip_hdr_e type,
379
+ const void *start);
380
+
381
+ /**
382
+ * Find a header in a header list by its name.
383
+ *
384
+ * @param hdr_list The "head" of the header list.
385
+ * @param name The header name to find.
386
+ * @param start The first header field where the search should begin.
387
+ * If NULL is specified, then the search will begin from the
388
+ * first header, otherwise the search will begin at the
389
+ * specified header.
390
+ *
391
+ * @return The header field, or NULL if no header with the specified
392
+ * type is found.
393
+ */
394
+ PJ_DECL(void*) pjsip_hdr_find_by_name( const void *hdr_list,
395
+ const pj_str_t *name,
396
+ const void *start);
397
+
398
+ /**
399
+ * Find a header in a header list by its name and short name version.
400
+ *
401
+ * @param hdr_list The "head" of the header list.
402
+ * @param name The header name to find.
403
+ * @param sname The short name version of the header name.
404
+ * @param start The first header field where the search should begin.
405
+ * If NULL is specified, then the search will begin from the
406
+ * first header, otherwise the search will begin at the
407
+ * specified header.
408
+ *
409
+ * @return The header field, or NULL if no header with the specified
410
+ * type is found.
411
+ */
412
+ PJ_DECL(void*) pjsip_hdr_find_by_names( const void *hdr_list,
413
+ const pj_str_t *name,
414
+ const pj_str_t *sname,
415
+ const void *start);
416
+
417
+ /**
418
+ * @}
419
+ */
420
+
421
+ /* **************************************************************************/
422
+ /**
423
+ * @defgroup PJSIP_MSG_LINE Request and Status Line.
424
+ * @brief Request and status line structures and manipulation.
425
+ * @ingroup PJSIP_MSG
426
+ * @{
427
+ */
428
+
429
+ /**
430
+ * This structure describes SIP request line.
431
+ */
432
+ typedef struct pjsip_request_line
433
+ {
434
+ pjsip_method method; /**< Method for this request line. */
435
+ pjsip_uri *uri; /**< URI for this request line. */
436
+ } pjsip_request_line;
437
+
438
+
439
+ /**
440
+ * This structure describes SIP status line.
441
+ */
442
+ typedef struct pjsip_status_line
443
+ {
444
+ int code; /**< Status code. */
445
+ pj_str_t reason; /**< Reason string. */
446
+ } pjsip_status_line;
447
+
448
+
449
+ /**
450
+ * This enumeration lists standard SIP status codes according to RFC 3261.
451
+ * In addition, it also declares new status class 7xx for errors generated
452
+ * by the stack. This status class however should not get transmitted on the
453
+ * wire.
454
+ */
455
+ typedef enum pjsip_status_code
456
+ {
457
+ PJSIP_SC_NULL = 0,
458
+
459
+ PJSIP_SC_TRYING = 100,
460
+ PJSIP_SC_RINGING = 180,
461
+ PJSIP_SC_CALL_BEING_FORWARDED = 181,
462
+ PJSIP_SC_QUEUED = 182,
463
+ PJSIP_SC_PROGRESS = 183,
464
+ PJSIP_SC_EARLY_DIALOG_TERMINATED = 199,
465
+
466
+ PJSIP_SC_OK = 200,
467
+ PJSIP_SC_ACCEPTED = 202,
468
+ PJSIP_SC_NO_NOTIFICATION = 204,
469
+
470
+ PJSIP_SC_MULTIPLE_CHOICES = 300,
471
+ PJSIP_SC_MOVED_PERMANENTLY = 301,
472
+ PJSIP_SC_MOVED_TEMPORARILY = 302,
473
+ PJSIP_SC_USE_PROXY = 305,
474
+ PJSIP_SC_ALTERNATIVE_SERVICE = 380,
475
+
476
+ PJSIP_SC_BAD_REQUEST = 400,
477
+ PJSIP_SC_UNAUTHORIZED = 401,
478
+ PJSIP_SC_PAYMENT_REQUIRED = 402,
479
+ PJSIP_SC_FORBIDDEN = 403,
480
+ PJSIP_SC_NOT_FOUND = 404,
481
+ PJSIP_SC_METHOD_NOT_ALLOWED = 405,
482
+ PJSIP_SC_NOT_ACCEPTABLE = 406,
483
+ PJSIP_SC_PROXY_AUTHENTICATION_REQUIRED = 407,
484
+ PJSIP_SC_REQUEST_TIMEOUT = 408,
485
+ PJSIP_SC_CONFLICT = 409,
486
+ PJSIP_SC_GONE = 410,
487
+ PJSIP_SC_LENGTH_REQUIRED = 411,
488
+ PJSIP_SC_CONDITIONAL_REQUEST_FAILED = 412,
489
+ PJSIP_SC_REQUEST_ENTITY_TOO_LARGE = 413,
490
+ PJSIP_SC_REQUEST_URI_TOO_LONG = 414,
491
+ PJSIP_SC_UNSUPPORTED_MEDIA_TYPE = 415,
492
+ PJSIP_SC_UNSUPPORTED_URI_SCHEME = 416,
493
+ PJSIP_SC_UNKNOWN_RESOURCE_PRIORITY = 417,
494
+ PJSIP_SC_BAD_EXTENSION = 420,
495
+ PJSIP_SC_EXTENSION_REQUIRED = 421,
496
+ PJSIP_SC_SESSION_TIMER_TOO_SMALL = 422,
497
+ PJSIP_SC_INTERVAL_TOO_BRIEF = 423,
498
+ PJSIP_SC_BAD_LOCATION_INFORMATION = 424,
499
+ PJSIP_SC_USE_IDENTITY_HEADER = 428,
500
+ PJSIP_SC_PROVIDE_REFERRER_HEADER = 429,
501
+ PJSIP_SC_FLOW_FAILED = 430,
502
+ PJSIP_SC_ANONIMITY_DISALLOWED = 433,
503
+ PJSIP_SC_BAD_IDENTITY_INFO = 436,
504
+ PJSIP_SC_UNSUPPORTED_CERTIFICATE = 437,
505
+ PJSIP_SC_INVALID_IDENTITY_HEADER = 438,
506
+ PJSIP_SC_FIRST_HOP_LACKS_OUTBOUND_SUPPORT = 439,
507
+ PJSIP_SC_MAX_BREADTH_EXCEEDED = 440,
508
+ PJSIP_SC_BAD_INFO_PACKAGE = 469,
509
+ PJSIP_SC_CONSENT_NEEDED = 470,
510
+ PJSIP_SC_TEMPORARILY_UNAVAILABLE = 480,
511
+ PJSIP_SC_CALL_TSX_DOES_NOT_EXIST = 481,
512
+ PJSIP_SC_LOOP_DETECTED = 482,
513
+ PJSIP_SC_TOO_MANY_HOPS = 483,
514
+ PJSIP_SC_ADDRESS_INCOMPLETE = 484,
515
+ PJSIP_AC_AMBIGUOUS = 485,
516
+ PJSIP_SC_BUSY_HERE = 486,
517
+ PJSIP_SC_REQUEST_TERMINATED = 487,
518
+ PJSIP_SC_NOT_ACCEPTABLE_HERE = 488,
519
+ PJSIP_SC_BAD_EVENT = 489,
520
+ PJSIP_SC_REQUEST_UPDATED = 490,
521
+ PJSIP_SC_REQUEST_PENDING = 491,
522
+ PJSIP_SC_UNDECIPHERABLE = 493,
523
+ PJSIP_SC_SECURITY_AGREEMENT_NEEDED = 494,
524
+
525
+ PJSIP_SC_INTERNAL_SERVER_ERROR = 500,
526
+ PJSIP_SC_NOT_IMPLEMENTED = 501,
527
+ PJSIP_SC_BAD_GATEWAY = 502,
528
+ PJSIP_SC_SERVICE_UNAVAILABLE = 503,
529
+ PJSIP_SC_SERVER_TIMEOUT = 504,
530
+ PJSIP_SC_VERSION_NOT_SUPPORTED = 505,
531
+ PJSIP_SC_MESSAGE_TOO_LARGE = 513,
532
+ PJSIP_SC_PUSH_NOTIFICATION_SERVICE_NOT_SUPPORTED = 555,
533
+ PJSIP_SC_PRECONDITION_FAILURE = 580,
534
+
535
+ PJSIP_SC_BUSY_EVERYWHERE = 600,
536
+ PJSIP_SC_DECLINE = 603,
537
+ PJSIP_SC_DOES_NOT_EXIST_ANYWHERE = 604,
538
+ PJSIP_SC_NOT_ACCEPTABLE_ANYWHERE = 606,
539
+ PJSIP_SC_UNWANTED = 607,
540
+ PJSIP_SC_REJECTED = 608,
541
+
542
+ PJSIP_SC_TSX_TIMEOUT = PJSIP_SC_REQUEST_TIMEOUT,
543
+ /*PJSIP_SC_TSX_RESOLVE_ERROR = 702,*/
544
+ PJSIP_SC_TSX_TRANSPORT_ERROR = PJSIP_SC_SERVICE_UNAVAILABLE,
545
+
546
+ /* This is not an actual status code, but rather a constant
547
+ * to force GCC to use 32bit to represent this enum, since
548
+ * we have a code in PJSUA-LIB that assigns an integer
549
+ * to this enum (see pjsua_acc_get_info() function).
550
+ */
551
+ PJSIP_SC__force_32bit = 0x7FFFFFFF
552
+
553
+ } pjsip_status_code;
554
+
555
+ /**
556
+ * Get the default status text for the status code.
557
+ *
558
+ * @param status_code SIP Status Code
559
+ *
560
+ * @return textual message for the status code.
561
+ */
562
+ PJ_DECL(const pj_str_t*) pjsip_get_status_text(int status_code);
563
+
564
+ /**
565
+ * This macro returns non-zero (TRUE) if the specified status_code is
566
+ * in the same class as the code_class.
567
+ *
568
+ * @param status_code The status code.
569
+ * @param code_class The status code in the class (for example 100, 200).
570
+ */
571
+ #define PJSIP_IS_STATUS_IN_CLASS(status_code, code_class) \
572
+ (status_code/100 == code_class/100)
573
+
574
+ /**
575
+ * @}
576
+ */
577
+
578
+ /* **************************************************************************/
579
+ /**
580
+ * @addtogroup PJSIP_MSG_MEDIA Media/MIME Type
581
+ * @brief Media/MIME type declaration and manipulations.
582
+ * @ingroup PJSIP_MSG
583
+ * @{
584
+ */
585
+
586
+ /**
587
+ * This structure describes SIP media type, as used for example in
588
+ * Accept and Content-Type header..
589
+ */
590
+ typedef struct pjsip_media_type
591
+ {
592
+ pj_str_t type; /**< Media type. */
593
+ pj_str_t subtype; /**< Media subtype. */
594
+ pjsip_param param; /**< Media type parameters */
595
+ } pjsip_media_type;
596
+
597
+
598
+ /**
599
+ * Initialize the media type with the specified type and subtype string.
600
+ *
601
+ * @param mt The media type.
602
+ * @param type Optionally specify the media type.
603
+ * @param subtype Optionally specify the media subtype.
604
+ */
605
+ PJ_DECL(void) pjsip_media_type_init(pjsip_media_type *mt,
606
+ pj_str_t *type,
607
+ pj_str_t *subtype);
608
+
609
+ /**
610
+ * Initialize the media type with the specified type and subtype string.
611
+ *
612
+ * @param mt The media type.
613
+ * @param type Optionally specify the media type.
614
+ * @param subtype Optionally specify the media subtype.
615
+ */
616
+ PJ_DECL(void) pjsip_media_type_init2(pjsip_media_type *mt,
617
+ char *type,
618
+ char *subtype);
619
+
620
+ /**
621
+ * Compare two media types.
622
+ *
623
+ * @param mt1 The first media type.
624
+ * @param mt2 The second media type.
625
+ * @param cmp_param Specify how to compare the media type parameters:
626
+ * - 0: do not compare parameters
627
+ * - 1: compare parameters but ignore parameters that
628
+ * only appear in one of the media type.
629
+ * - 2: compare the parameters.
630
+ *
631
+ * @return Zero if both media types are equal, -1 if mt1 < mt2,
632
+ * 1 if mt1 > mt2.
633
+ */
634
+ PJ_DECL(int) pjsip_media_type_cmp(const pjsip_media_type *mt1,
635
+ const pjsip_media_type *mt2,
636
+ int cmp_param);
637
+
638
+ /**
639
+ * Copy SIP media type to another.
640
+ *
641
+ * @param pool Pool to duplicate strings.
642
+ * @param dst Destination structure.
643
+ * @param src Source structure.
644
+ */
645
+ PJ_DECL(void) pjsip_media_type_cp(pj_pool_t *pool,
646
+ pjsip_media_type *dst,
647
+ const pjsip_media_type *src);
648
+
649
+ /**
650
+ * Print media type to the specified buffer.
651
+ *
652
+ * @param buf Destination buffer.
653
+ * @param len Length of the buffer.
654
+ * @param mt The media type to be printed.
655
+ *
656
+ * @return The number of characters printed to the buffer, or -1
657
+ * if there's not enough space in the buffer.
658
+ */
659
+ PJ_DECL(int) pjsip_media_type_print(char *buf, unsigned len,
660
+ const pjsip_media_type *mt);
661
+
662
+ /**
663
+ * @}
664
+ */
665
+
666
+ /* **************************************************************************/
667
+ /**
668
+ * @addtogroup PJSIP_MSG_BODY Message Body
669
+ * @brief SIP message body structures and manipulation.
670
+ * @ingroup PJSIP_MSG
671
+ * @{
672
+ */
673
+
674
+ /**
675
+ * Generic abstraction to message body.
676
+ * When an incoming message is parsed (pjsip_parse_msg()), the parser fills in
677
+ * all members with the appropriate value. The 'data' and 'len' member will
678
+ * describe portion of incoming packet which denotes the message body.
679
+ * When application needs to attach message body to outgoing SIP message, it
680
+ * must fill in all members of this structure.
681
+ */
682
+ struct pjsip_msg_body
683
+ {
684
+ /** MIME content type.
685
+ * For incoming messages, the parser will fill in this member with the
686
+ * content type found in Content-Type header.
687
+ *
688
+ * For outgoing messages, application may fill in this member with
689
+ * appropriate value, because the stack will generate Content-Type header
690
+ * based on the value specified here.
691
+ *
692
+ * If the content_type is empty, no Content-Type AND Content-Length header
693
+ * will be added to the message. The stack assumes that application adds
694
+ * these headers themselves.
695
+ */
696
+ pjsip_media_type content_type;
697
+
698
+ /** Pointer to buffer which holds the message body data.
699
+ * For incoming messages, the parser will fill in this member with the
700
+ * pointer to the body string.
701
+ *
702
+ * When sending outgoing message, this member doesn't need to point to the
703
+ * actual message body string. It can be assigned with arbitrary pointer,
704
+ * because the value will only need to be understood by the print_body()
705
+ * function. The stack itself will not try to interpret this value, but
706
+ * instead will always call the print_body() whenever it needs to get the
707
+ * actual body string.
708
+ */
709
+ void *data;
710
+
711
+ /** The length of the data.
712
+ * For incoming messages, the parser will fill in this member with the
713
+ * actual length of message body.
714
+ *
715
+ * When sending outgoing message, again just like the "data" member, the
716
+ * "len" member doesn't need to point to the actual length of the body
717
+ * string.
718
+ */
719
+ unsigned len;
720
+
721
+ /** Pointer to function to print this message body.
722
+ * Application must set a proper function here when sending outgoing
723
+ * message.
724
+ *
725
+ * @param msg_body This structure itself.
726
+ * @param buf The buffer.
727
+ * @param size The buffer size.
728
+ *
729
+ * @return The length of the string printed, or -1 if there is
730
+ * not enough space in the buffer to print the whole
731
+ * message body.
732
+ */
733
+ int (*print_body)(struct pjsip_msg_body *msg_body,
734
+ char *buf, pj_size_t size);
735
+
736
+ /** Clone the data part only of this message body. Note that this only
737
+ * duplicates the data part of the body instead of the whole message
738
+ * body. If application wants to duplicate the entire message body
739
+ * structure, it must call #pjsip_msg_body_clone().
740
+ *
741
+ * @param pool Pool used to clone the data.
742
+ * @param data The data inside message body, to be cloned.
743
+ * @param len The length of the data.
744
+ *
745
+ * @return New data duplicated from the original data.
746
+ */
747
+ void* (*clone_data)(pj_pool_t *pool, const void *data, unsigned len);
748
+
749
+ };
750
+
751
+ /**
752
+ * General purpose function to textual data in a SIP body. Attach this function
753
+ * in a SIP message body only if the data in pjsip_msg_body is a textual
754
+ * message ready to be embedded in a SIP message. If the data in the message
755
+ * body is not a textual body, then application must supply a custom function
756
+ * to print that body.
757
+ *
758
+ * @param msg_body The message body.
759
+ * @param buf Buffer to copy the message body to.
760
+ * @param size The size of the buffer.
761
+ *
762
+ * @return The length copied to the buffer, or -1.
763
+ */
764
+ PJ_DECL(int) pjsip_print_text_body( pjsip_msg_body *msg_body,
765
+ char *buf, pj_size_t size);
766
+
767
+ /**
768
+ * General purpose function to clone textual data in a SIP body. Attach this
769
+ * function as "clone_data" member of the SIP body only if the data type
770
+ * is a text (i.e. C string, not pj_str_t), and the length indicates the
771
+ * length of the text.
772
+ *
773
+ * @param pool Pool used to clone the data.
774
+ * @param data Textual data.
775
+ * @param len The length of the string.
776
+ *
777
+ * @return New text duplicated from the original text.
778
+ */
779
+ PJ_DECL(void*) pjsip_clone_text_data( pj_pool_t *pool, const void *data,
780
+ unsigned len);
781
+
782
+
783
+ /**
784
+ * Clone the message body in src_body to the dst_body. This will duplicate
785
+ * the contents of the message body using the \a clone_data member of the
786
+ * source message body.
787
+ *
788
+ * @param pool Pool to use to duplicate the message body.
789
+ * @param dst_body Destination message body.
790
+ * @param src_body Source message body to duplicate.
791
+ *
792
+ * @return PJ_SUCCESS on success.
793
+ */
794
+ PJ_DECL(pj_status_t) pjsip_msg_body_copy( pj_pool_t *pool,
795
+ pjsip_msg_body *dst_body,
796
+ const pjsip_msg_body *src_body );
797
+
798
+
799
+ /**
800
+ * Create cloned message body. This will duplicate the contents of the message
801
+ * body using the \a clone_data member of the source message body.
802
+ *
803
+ * @param pool Pool to use to duplicate the message body.
804
+ * @param body Source message body to duplicate.
805
+ *
806
+ * @return The cloned message body on successfull.
807
+ */
808
+ PJ_DECL(pjsip_msg_body*) pjsip_msg_body_clone( pj_pool_t *pool,
809
+ const pjsip_msg_body *body );
810
+
811
+
812
+ /**
813
+ * Create a text message body. Use this function to create message body when
814
+ * the content is a simple text. For non-text message body (e.g.
815
+ * pjmedia_sdp_session or pj_xml_node), application must construct the message
816
+ * manually.
817
+ *
818
+ * @param pool Pool to allocate message body and its contents.
819
+ * @param type MIME type (e.g. "text").
820
+ * @param subtype MIME subtype (e.g. "plain").
821
+ * @param text The text content to be put in the message body.
822
+ *
823
+ * @return A new message body with the specified Content-Type and
824
+ * text.
825
+ */
826
+ PJ_DECL(pjsip_msg_body*) pjsip_msg_body_create( pj_pool_t *pool,
827
+ const pj_str_t *type,
828
+ const pj_str_t *subtype,
829
+ const pj_str_t *text );
830
+
831
+ /**
832
+ * @}
833
+ */
834
+
835
+ /* **************************************************************************/
836
+ /**
837
+ * @defgroup PJSIP_MSG_MSG Message Structure
838
+ * @brief SIP message (request and response) structure and operations.
839
+ * @ingroup PJSIP_MSG
840
+ * @{
841
+ */
842
+
843
+ /**
844
+ * Message type (request or response).
845
+ */
846
+ typedef enum pjsip_msg_type_e
847
+ {
848
+ PJSIP_REQUEST_MSG, /**< Indicates request message. */
849
+ PJSIP_RESPONSE_MSG /**< Indicates response message. */
850
+ } pjsip_msg_type_e;
851
+
852
+
853
+ /**
854
+ * This structure describes a SIP message.
855
+ */
856
+ struct pjsip_msg
857
+ {
858
+ /** Message type (ie request or response). */
859
+ pjsip_msg_type_e type;
860
+
861
+ /** The first line of the message can be either request line for request
862
+ * messages, or status line for response messages. It is represented here
863
+ * as a union.
864
+ */
865
+ union
866
+ {
867
+ /** Request Line. */
868
+ struct pjsip_request_line req;
869
+
870
+ /** Status Line. */
871
+ struct pjsip_status_line status;
872
+ } line;
873
+
874
+ /** List of message headers. */
875
+ pjsip_hdr hdr;
876
+
877
+ /** Pointer to message body, or NULL if no message body is attached to
878
+ * this mesage.
879
+ */
880
+ pjsip_msg_body *body;
881
+ };
882
+
883
+
884
+ /**
885
+ * Create new request or response message.
886
+ *
887
+ * @param pool The pool.
888
+ * @param type Message type.
889
+ * @return New message, or THROW exception if failed.
890
+ */
891
+ PJ_DECL(pjsip_msg*) pjsip_msg_create( pj_pool_t *pool, pjsip_msg_type_e type);
892
+
893
+
894
+ /**
895
+ * Perform a deep clone of a SIP message.
896
+ *
897
+ * @param pool The pool for creating the new message.
898
+ * @param msg The message to be duplicated.
899
+ *
900
+ * @return New message, which is duplicated from the original
901
+ * message.
902
+ */
903
+ PJ_DECL(pjsip_msg*) pjsip_msg_clone( pj_pool_t *pool, const pjsip_msg *msg);
904
+
905
+
906
+ /**
907
+ * Find a header in the message by the header type.
908
+ *
909
+ * @param msg The message.
910
+ * @param type The header type to find.
911
+ * @param start The first header field where the search should begin.
912
+ * If NULL is specified, then the search will begin from the
913
+ * first header, otherwise the search will begin at the
914
+ * specified header.
915
+ *
916
+ * @return The header field, or NULL if no header with the specified
917
+ * type is found.
918
+ */
919
+ PJ_DECL(void*) pjsip_msg_find_hdr( const pjsip_msg *msg,
920
+ pjsip_hdr_e type, const void *start);
921
+
922
+ /**
923
+ * Find a header in the message by its name.
924
+ *
925
+ * @param msg The message.
926
+ * @param name The header name to find.
927
+ * @param start The first header field where the search should begin.
928
+ * If NULL is specified, then the search will begin from the
929
+ * first header, otherwise the search will begin at the
930
+ * specified header.
931
+ *
932
+ * @return The header field, or NULL if no header with the specified
933
+ * type is found.
934
+ */
935
+ PJ_DECL(void*) pjsip_msg_find_hdr_by_name( const pjsip_msg *msg,
936
+ const pj_str_t *name,
937
+ const void *start);
938
+
939
+ /**
940
+ * Find a header in the message by its name and short name version.
941
+ *
942
+ * @param msg The message.
943
+ * @param name The header name to find.
944
+ * @param sname The short name version of the header name.
945
+ * @param start The first header field where the search should begin.
946
+ * If NULL is specified, then the search will begin from the
947
+ * first header, otherwise the search will begin at the
948
+ * specified header.
949
+ *
950
+ * @return The header field, or NULL if no header with the specified
951
+ * type is found.
952
+ */
953
+ PJ_DECL(void*) pjsip_msg_find_hdr_by_names(const pjsip_msg *msg,
954
+ const pj_str_t *name,
955
+ const pj_str_t *sname,
956
+ const void *start);
957
+
958
+ /**
959
+ * Find and remove a header in the message.
960
+ *
961
+ * @param msg The message.
962
+ * @param hdr The header type to find.
963
+ * @param start The first header field where the search should begin,
964
+ * or NULL to search from the first header in the message.
965
+ *
966
+ * @return The header field, or NULL if not found.
967
+ */
968
+ PJ_DECL(void*) pjsip_msg_find_remove_hdr( pjsip_msg *msg,
969
+ pjsip_hdr_e hdr, void *start);
970
+
971
+ /**
972
+ * Add a header to the message, putting it last in the header list.
973
+ *
974
+ * @param msg The message.
975
+ * @param hdr The header to add.
976
+ *
977
+ * @bug Once the header is put in a list (or message), it can not be put in
978
+ * other list (or message). Otherwise Real Bad Thing will happen.
979
+ */
980
+ PJ_INLINE(void) pjsip_msg_add_hdr( pjsip_msg *msg, pjsip_hdr *hdr )
981
+ {
982
+ pj_list_insert_before(&msg->hdr, hdr);
983
+ }
984
+
985
+ /**
986
+ * Add header field to the message, putting it in the front of the header list.
987
+ *
988
+ * @param msg The message.
989
+ * @param hdr The header to add.
990
+ *
991
+ * @bug Once the header is put in a list (or message), it can not be put in
992
+ * other list (or message). Otherwise Real Bad Thing will happen.
993
+ */
994
+ PJ_INLINE(void) pjsip_msg_insert_first_hdr( pjsip_msg *msg, pjsip_hdr *hdr )
995
+ {
996
+ pj_list_insert_after(&msg->hdr, hdr);
997
+ }
998
+
999
+ /**
1000
+ * Print the message to the specified buffer.
1001
+ *
1002
+ * @param msg The message to print.
1003
+ * @param buf The buffer
1004
+ * @param size The size of the buffer.
1005
+ *
1006
+ * @return The length of the printed characters (in bytes), or NEGATIVE
1007
+ * value if the message is too large for the specified buffer.
1008
+ */
1009
+ PJ_DECL(pj_ssize_t) pjsip_msg_print(const pjsip_msg *msg,
1010
+ char *buf, pj_size_t size);
1011
+
1012
+
1013
+ /*
1014
+ * Some usefull macros to find common headers.
1015
+ */
1016
+
1017
+
1018
+ /**
1019
+ * Find Call-ID header.
1020
+ *
1021
+ * @param msg The message.
1022
+ * @return Call-ID header instance.
1023
+ */
1024
+ #define PJSIP_MSG_CID_HDR(msg) \
1025
+ ((pjsip_cid_hdr*)pjsip_msg_find_hdr(msg, PJSIP_H_CALL_ID, NULL))
1026
+
1027
+ /**
1028
+ * Find CSeq header.
1029
+ *
1030
+ * @param msg The message.
1031
+ * @return CSeq header instance.
1032
+ */
1033
+ #define PJSIP_MSG_CSEQ_HDR(msg) \
1034
+ ((pjsip_cseq_hdr*)pjsip_msg_find_hdr(msg, PJSIP_H_CSEQ, NULL))
1035
+
1036
+ /**
1037
+ * Find From header.
1038
+ *
1039
+ * @param msg The message.
1040
+ * @return From header instance.
1041
+ */
1042
+ #define PJSIP_MSG_FROM_HDR(msg) \
1043
+ ((pjsip_from_hdr*)pjsip_msg_find_hdr(msg, PJSIP_H_FROM, NULL))
1044
+
1045
+ /**
1046
+ * Find To header.
1047
+ *
1048
+ * @param msg The message.
1049
+ * @return To header instance.
1050
+ */
1051
+ #define PJSIP_MSG_TO_HDR(msg) \
1052
+ ((pjsip_to_hdr*)pjsip_msg_find_hdr(msg, PJSIP_H_TO, NULL))
1053
+
1054
+
1055
+ /**
1056
+ * @}
1057
+ */
1058
+
1059
+ /* **************************************************************************/
1060
+ /**
1061
+ * @addtogroup PJSIP_MSG_HDR
1062
+ * @{
1063
+ */
1064
+
1065
+ /**
1066
+ * Generic SIP header, which contains hname and a string hvalue.
1067
+ * Note that this header is not supposed to be used as 'base' class for headers.
1068
+ */
1069
+ typedef struct pjsip_generic_string_hdr
1070
+ {
1071
+ /** Standard header field. */
1072
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_generic_string_hdr);
1073
+ /** hvalue */
1074
+ pj_str_t hvalue;
1075
+ } pjsip_generic_string_hdr;
1076
+
1077
+
1078
+ /**
1079
+ * Create a new instance of generic header. A generic header can have an
1080
+ * arbitrary header name.
1081
+ *
1082
+ * @param pool The pool.
1083
+ * @param hname The header name to be assigned to the header, or NULL to
1084
+ * assign the header name with some string.
1085
+ * @param hvalue Optional string to be assigned as the value.
1086
+ *
1087
+ * @return The header, or THROW exception.
1088
+ */
1089
+ PJ_DECL(pjsip_generic_string_hdr*)
1090
+ pjsip_generic_string_hdr_create( pj_pool_t *pool,
1091
+ const pj_str_t *hname,
1092
+ const pj_str_t *hvalue);
1093
+
1094
+
1095
+ /**
1096
+ * Initialize a preallocated memory with the header structure. This function
1097
+ * should only be called when application uses its own memory allocation to
1098
+ * allocate memory block for the specified header (e.g. in C++, when the
1099
+ * header is allocated with "new" operator).
1100
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1101
+ * which allocates memory and initialize it in one go.
1102
+ *
1103
+ * @param pool Pool for additional memory allocation if required.
1104
+ * @param mem Pre-allocated memory to be initialized as the header.
1105
+ * @param hname The header name to be assigned to the header, or NULL to
1106
+ * assign the header name with some string later.
1107
+ * @param hvalue Optional string to be assigned as the value.
1108
+ *
1109
+ * @return The header instance, which points to the same memory
1110
+ * location as the mem argument.
1111
+ */
1112
+ PJ_DECL(pjsip_generic_string_hdr*)
1113
+ pjsip_generic_string_hdr_init( pj_pool_t *pool,
1114
+ void *mem,
1115
+ const pj_str_t *hname,
1116
+ const pj_str_t *hvalue);
1117
+
1118
+
1119
+ /**
1120
+ * Construct a generic string header without allocating memory from the pool.
1121
+ * This function is useful to create a temporary header which life-time is
1122
+ * very short (for example, creating the header in the stack to be passed
1123
+ * as argument to a function which will copy the header).
1124
+ *
1125
+ * @param h The header to be initialized.
1126
+ * @param hname The header name to be assigned to the header, or NULL to
1127
+ * assign the header name with some string.
1128
+ * @param hvalue Optional string to be assigned as the value.
1129
+ *
1130
+ */
1131
+ PJ_DECL(void) pjsip_generic_string_hdr_init2(pjsip_generic_string_hdr *h,
1132
+ pj_str_t *hname,
1133
+ pj_str_t *hvalue);
1134
+
1135
+
1136
+ /* **************************************************************************/
1137
+
1138
+ /**
1139
+ * Generic SIP header, which contains hname and an integer ivalue.
1140
+ */
1141
+ typedef struct pjsip_generic_int_hdr
1142
+ {
1143
+ /** Standard header field. */
1144
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_generic_int_hdr);
1145
+ /** ivalue */
1146
+ pj_uint32_t ivalue;
1147
+ } pjsip_generic_int_hdr;
1148
+
1149
+
1150
+ /**
1151
+ * Create a new instance of generic header. A generic header can have an
1152
+ * arbitrary header name.
1153
+ *
1154
+ * @param pool The pool.
1155
+ * @param hname The header name to be assigned to the header, or NULL to
1156
+ * assign the header name with some string.
1157
+ * @param hvalue The value to be assigned to the header.
1158
+ *
1159
+ * @return The header, or THROW exception.
1160
+ */
1161
+ PJ_DECL(pjsip_generic_int_hdr*) pjsip_generic_int_hdr_create( pj_pool_t *pool,
1162
+ const pj_str_t *hname,
1163
+ unsigned hvalue );
1164
+
1165
+
1166
+ /**
1167
+ * Initialize a preallocated memory with the header structure. This function
1168
+ * should only be called when application uses its own memory allocation to
1169
+ * allocate memory block for the specified header (e.g. in C++, when the
1170
+ * header is allocated with "new" operator).
1171
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1172
+ * which allocates memory and initialize it in one go.
1173
+ *
1174
+ * @param pool Pool for additional memory allocation if required.
1175
+ * @param mem Pre-allocated memory to be initialized as the header.
1176
+ * @param hname The header name to be assigned to the header, or NULL to
1177
+ * assign the header name with some string later.
1178
+ * @param value Value to be assigned to the header.
1179
+ *
1180
+ * @return The header instance, which points to the same memory
1181
+ * location as the mem argument.
1182
+ */
1183
+ PJ_DECL(pjsip_generic_int_hdr*) pjsip_generic_int_hdr_init( pj_pool_t *pool,
1184
+ void *mem,
1185
+ const pj_str_t *hname,
1186
+ unsigned value );
1187
+
1188
+ /* **************************************************************************/
1189
+
1190
+ /** Maximum elements in the header array. */
1191
+ #define PJSIP_GENERIC_ARRAY_MAX_COUNT 32
1192
+
1193
+ /**
1194
+ * Generic array of string header.
1195
+ */
1196
+ typedef struct pjsip_generic_array_hdr
1197
+ {
1198
+ /** Standard header fields. */
1199
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_generic_array_hdr);
1200
+
1201
+ /** Number of tags/elements. */
1202
+ unsigned count;
1203
+
1204
+ /** Tags/elements. */
1205
+ pj_str_t values[PJSIP_GENERIC_ARRAY_MAX_COUNT];
1206
+
1207
+ } pjsip_generic_array_hdr;
1208
+
1209
+ /**
1210
+ * Create generic array header.
1211
+ *
1212
+ * @param pool Pool to allocate memory from.
1213
+ * @param hname Header name.
1214
+ *
1215
+ * @return New generic array header.
1216
+ */
1217
+ PJ_DECL(pjsip_generic_array_hdr*) pjsip_generic_array_hdr_create(pj_pool_t *pool,
1218
+ const pj_str_t *hname);
1219
+
1220
+ /**
1221
+ * Initialize a preallocated memory with the header structure. This function
1222
+ * should only be called when application uses its own memory allocation to
1223
+ * allocate memory block for the specified header (e.g. in C++, when the
1224
+ * header is allocated with "new" operator).
1225
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1226
+ * which allocates memory and initialize it in one go.
1227
+ *
1228
+ * @param pool Pool for additional memory allocation if required.
1229
+ * @param mem Pre-allocated memory to be initialized as the header.
1230
+ * @param hname The header name to be assigned to the header, or NULL to
1231
+ * assign the header name with some string later.
1232
+ *
1233
+ * @return The header instance, which points to the same memory
1234
+ * location as the mem argument.
1235
+ */
1236
+ PJ_DECL(pjsip_generic_array_hdr*) pjsip_generic_array_hdr_init(pj_pool_t *pool,
1237
+ void *mem,
1238
+ const pj_str_t *hname);
1239
+
1240
+
1241
+ /* **************************************************************************/
1242
+
1243
+ /** Accept header. */
1244
+ typedef pjsip_generic_array_hdr pjsip_accept_hdr;
1245
+
1246
+ /** Maximum fields in Accept header. */
1247
+ #define PJSIP_MAX_ACCEPT_COUNT PJSIP_GENERIC_ARRAY_MAX_COUNT
1248
+
1249
+ /**
1250
+ * Create new Accept header instance.
1251
+ *
1252
+ * @param pool The pool.
1253
+ *
1254
+ * @return New Accept header instance.
1255
+ */
1256
+ PJ_DECL(pjsip_accept_hdr*) pjsip_accept_hdr_create(pj_pool_t *pool);
1257
+
1258
+ /**
1259
+ * Initialize a preallocated memory with the header structure. This function
1260
+ * should only be called when application uses its own memory allocation to
1261
+ * allocate memory block for the specified header (e.g. in C++, when the
1262
+ * header is allocated with "new" operator).
1263
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1264
+ * which allocates memory and initialize it in one go.
1265
+ *
1266
+ * @param pool Pool for additional memory allocation if required.
1267
+ * @param mem Pre-allocated memory to be initialized as the header.
1268
+ *
1269
+ * @return The header instance, which points to the same memory
1270
+ * location as the mem argument.
1271
+ */
1272
+ PJ_DECL(pjsip_accept_hdr*) pjsip_accept_hdr_init( pj_pool_t *pool,
1273
+ void *mem );
1274
+
1275
+
1276
+ /* **************************************************************************/
1277
+
1278
+ /**
1279
+ * Allow header.
1280
+ */
1281
+ typedef pjsip_generic_array_hdr pjsip_allow_hdr;
1282
+
1283
+ /**
1284
+ * Create new Allow header instance.
1285
+ *
1286
+ * @param pool The pool.
1287
+ *
1288
+ * @return New Allow header instance.
1289
+ */
1290
+ PJ_DECL(pjsip_allow_hdr*) pjsip_allow_hdr_create(pj_pool_t *pool);
1291
+
1292
+
1293
+
1294
+ /**
1295
+ * Initialize a preallocated memory with the header structure. This function
1296
+ * should only be called when application uses its own memory allocation to
1297
+ * allocate memory block for the specified header (e.g. in C++, when the
1298
+ * header is allocated with "new" operator).
1299
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1300
+ * which allocates memory and initialize it in one go.
1301
+ *
1302
+ * @param pool Pool for additional memory allocation if required.
1303
+ * @param mem Pre-allocated memory to be initialized as the header.
1304
+ *
1305
+ * @return The header instance, which points to the same memory
1306
+ * location as the mem argument.
1307
+ */
1308
+ PJ_DECL(pjsip_allow_hdr*) pjsip_allow_hdr_init( pj_pool_t *pool,
1309
+ void *mem );
1310
+
1311
+ /* **************************************************************************/
1312
+
1313
+ /**
1314
+ * Call-ID header.
1315
+ */
1316
+ typedef struct pjsip_cid_hdr
1317
+ {
1318
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_cid_hdr);
1319
+ pj_str_t id; /**< Call-ID string. */
1320
+ } pjsip_cid_hdr;
1321
+
1322
+
1323
+ /**
1324
+ * Create new Call-ID header.
1325
+ *
1326
+ * @param pool The pool.
1327
+ *
1328
+ * @return new Call-ID header.
1329
+ */
1330
+ PJ_DECL(pjsip_cid_hdr*) pjsip_cid_hdr_create( pj_pool_t *pool );
1331
+
1332
+
1333
+ /**
1334
+ * Initialize a preallocated memory with the header structure. This function
1335
+ * should only be called when application uses its own memory allocation to
1336
+ * allocate memory block for the specified header (e.g. in C++, when the
1337
+ * header is allocated with "new" operator).
1338
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1339
+ * which allocates memory and initialize it in one go.
1340
+ *
1341
+ * @param pool Pool for additional memory allocation if required.
1342
+ * @param mem Pre-allocated memory to be initialized as the header.
1343
+ *
1344
+ * @return The header instance, which points to the same memory
1345
+ * location as the mem argument.
1346
+ */
1347
+ PJ_DECL(pjsip_cid_hdr*) pjsip_cid_hdr_init( pj_pool_t *pool,
1348
+ void *mem );
1349
+
1350
+
1351
+
1352
+ /* **************************************************************************/
1353
+ /**
1354
+ * Content-Length header.
1355
+ */
1356
+ typedef struct pjsip_clen_hdr
1357
+ {
1358
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_clen_hdr);
1359
+ int len; /**< Content length. */
1360
+ } pjsip_clen_hdr;
1361
+
1362
+ /**
1363
+ * Create new Content-Length header.
1364
+ *
1365
+ * @param pool the pool.
1366
+ * @return A new Content-Length header instance.
1367
+ */
1368
+ PJ_DECL(pjsip_clen_hdr*) pjsip_clen_hdr_create( pj_pool_t *pool );
1369
+
1370
+ /**
1371
+ * Initialize a preallocated memory with the header structure. This function
1372
+ * should only be called when application uses its own memory allocation to
1373
+ * allocate memory block for the specified header (e.g. in C++, when the
1374
+ * header is allocated with "new" operator).
1375
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1376
+ * which allocates memory and initialize it in one go.
1377
+ *
1378
+ * @param pool Pool for additional memory allocation if required.
1379
+ * @param mem Pre-allocated memory to be initialized as the header.
1380
+ *
1381
+ * @return The header instance, which points to the same memory
1382
+ * location as the mem argument.
1383
+ */
1384
+ PJ_DECL(pjsip_clen_hdr*) pjsip_clen_hdr_init( pj_pool_t *pool,
1385
+ void *mem );
1386
+
1387
+
1388
+ /* **************************************************************************/
1389
+ /**
1390
+ * CSeq header.
1391
+ */
1392
+ typedef struct pjsip_cseq_hdr
1393
+ {
1394
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_cseq_hdr);
1395
+ pj_int32_t cseq; /**< CSeq number. */
1396
+ pjsip_method method; /**< CSeq method. */
1397
+ } pjsip_cseq_hdr;
1398
+
1399
+
1400
+ /** Create new CSeq header.
1401
+ *
1402
+ * @param pool The pool.
1403
+ * @return A new CSeq header instance.
1404
+ */
1405
+ PJ_DECL(pjsip_cseq_hdr*) pjsip_cseq_hdr_create( pj_pool_t *pool );
1406
+
1407
+ /**
1408
+ * Initialize a preallocated memory with the header structure. This function
1409
+ * should only be called when application uses its own memory allocation to
1410
+ * allocate memory block for the specified header (e.g. in C++, when the
1411
+ * header is allocated with "new" operator).
1412
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1413
+ * which allocates memory and initialize it in one go.
1414
+ *
1415
+ * @param pool Pool for additional memory allocation if required.
1416
+ * @param mem Pre-allocated memory to be initialized as the header.
1417
+ *
1418
+ * @return The header instance, which points to the same memory
1419
+ * location as the mem argument.
1420
+ */
1421
+ PJ_DECL(pjsip_cseq_hdr*) pjsip_cseq_hdr_init( pj_pool_t *pool,
1422
+ void *mem );
1423
+
1424
+ /* **************************************************************************/
1425
+
1426
+ /** Expires not specified. */
1427
+ #define PJSIP_EXPIRES_NOT_SPECIFIED ((pj_uint32_t)0xFFFFFFFFUL)
1428
+
1429
+ /**
1430
+ * Contact header.
1431
+ * In this library, contact header only contains single URI. If a message has
1432
+ * multiple URI in the Contact header, the URI will be put in separate Contact
1433
+ * headers.
1434
+ */
1435
+ typedef struct pjsip_contact_hdr
1436
+ {
1437
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_contact_hdr);
1438
+ int star; /**< The contact contains only a '*'
1439
+ character */
1440
+ pjsip_uri *uri; /**< URI in the contact. */
1441
+ int q1000; /**< The "q" value times 1000
1442
+ (to avoid float) */
1443
+ pj_uint32_t expires; /**< Expires parameter, otherwise
1444
+ PJSIP_EXPIRES_NOT_SPECIFIED
1445
+ if not present. */
1446
+ pjsip_param other_param; /**< Other parameters, concatenated in
1447
+ a single string. */
1448
+ } pjsip_contact_hdr;
1449
+
1450
+
1451
+ /**
1452
+ * Create a new Contact header.
1453
+ *
1454
+ * @param pool The pool.
1455
+ * @return A new instance of Contact header.
1456
+ */
1457
+ PJ_DECL(pjsip_contact_hdr*) pjsip_contact_hdr_create( pj_pool_t *pool );
1458
+
1459
+ /**
1460
+ * Initialize a preallocated memory with the header structure. This function
1461
+ * should only be called when application uses its own memory allocation to
1462
+ * allocate memory block for the specified header (e.g. in C++, when the
1463
+ * header is allocated with "new" operator).
1464
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1465
+ * which allocates memory and initialize it in one go.
1466
+ *
1467
+ * @param pool Pool for additional memory allocation if required.
1468
+ * @param mem Pre-allocated memory to be initialized as the header.
1469
+ *
1470
+ * @return The header instance, which points to the same memory
1471
+ * location as the mem argument.
1472
+ */
1473
+ PJ_DECL(pjsip_contact_hdr*) pjsip_contact_hdr_init( pj_pool_t *pool,
1474
+ void *mem );
1475
+
1476
+
1477
+ /* **************************************************************************/
1478
+ /**
1479
+ * Content-Type.
1480
+ */
1481
+ typedef struct pjsip_ctype_hdr
1482
+ {
1483
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_ctype_hdr);
1484
+ pjsip_media_type media; /**< Media type. */
1485
+ } pjsip_ctype_hdr;
1486
+
1487
+
1488
+ /**
1489
+ * Create a nwe Content Type header.
1490
+ *
1491
+ * @param pool The pool.
1492
+ * @return A new Content-Type header.
1493
+ */
1494
+ PJ_DECL(pjsip_ctype_hdr*) pjsip_ctype_hdr_create( pj_pool_t *pool );
1495
+
1496
+ /**
1497
+ * Initialize a preallocated memory with the header structure. This function
1498
+ * should only be called when application uses its own memory allocation to
1499
+ * allocate memory block for the specified header (e.g. in C++, when the
1500
+ * header is allocated with "new" operator).
1501
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1502
+ * which allocates memory and initialize it in one go.
1503
+ *
1504
+ * @param pool Pool for additional memory allocation if required.
1505
+ * @param mem Pre-allocated memory to be initialized as the header.
1506
+ *
1507
+ * @return The header instance, which points to the same memory
1508
+ * location as the mem argument.
1509
+ */
1510
+ PJ_DECL(pjsip_ctype_hdr*) pjsip_ctype_hdr_init( pj_pool_t *pool,
1511
+ void *mem );
1512
+
1513
+ /* **************************************************************************/
1514
+ /** Expires header. */
1515
+ typedef pjsip_generic_int_hdr pjsip_expires_hdr;
1516
+
1517
+ /**
1518
+ * Create a new Expires header.
1519
+ *
1520
+ * @param pool The pool.
1521
+ * @param value The expiration value.
1522
+ *
1523
+ * @return A new Expires header.
1524
+ */
1525
+ PJ_DECL(pjsip_expires_hdr*) pjsip_expires_hdr_create( pj_pool_t *pool,
1526
+ unsigned value);
1527
+
1528
+ /**
1529
+ * Initialize a preallocated memory with the header structure. This function
1530
+ * should only be called when application uses its own memory allocation to
1531
+ * allocate memory block for the specified header (e.g. in C++, when the
1532
+ * header is allocated with "new" operator).
1533
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1534
+ * which allocates memory and initialize it in one go.
1535
+ *
1536
+ * @param pool Pool for additional memory allocation if required.
1537
+ * @param mem Pre-allocated memory to be initialized as the header.
1538
+ * @param value The expiration value.
1539
+ *
1540
+ * @return The header instance, which points to the same memory
1541
+ * location as the mem argument.
1542
+ */
1543
+ PJ_DECL(pjsip_expires_hdr*) pjsip_expires_hdr_init( pj_pool_t *pool,
1544
+ void *mem,
1545
+ unsigned value );
1546
+
1547
+
1548
+
1549
+ /* **************************************************************************/
1550
+ /**
1551
+ * To or From header.
1552
+ */
1553
+ typedef struct pjsip_fromto_hdr
1554
+ {
1555
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_fromto_hdr);
1556
+ pjsip_uri *uri; /**< URI in From/To header. */
1557
+ pj_str_t tag; /**< Header "tag" parameter. */
1558
+ pjsip_param other_param; /**< Other params, concatenated as a single string. */
1559
+ } pjsip_fromto_hdr;
1560
+
1561
+ /** Alias for From header. */
1562
+ typedef pjsip_fromto_hdr pjsip_from_hdr;
1563
+
1564
+ /** Alias for To header. */
1565
+ typedef pjsip_fromto_hdr pjsip_to_hdr;
1566
+
1567
+ /**
1568
+ * Create a From header.
1569
+ *
1570
+ * @param pool The pool.
1571
+ * @return New instance of From header.
1572
+ */
1573
+ PJ_DECL(pjsip_from_hdr*) pjsip_from_hdr_create( pj_pool_t *pool );
1574
+
1575
+ /**
1576
+ * Initialize a preallocated memory with the header structure. This function
1577
+ * should only be called when application uses its own memory allocation to
1578
+ * allocate memory block for the specified header (e.g. in C++, when the
1579
+ * header is allocated with "new" operator).
1580
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1581
+ * which allocates memory and initialize it in one go.
1582
+ *
1583
+ * @param pool Pool for additional memory allocation if required.
1584
+ * @param mem Pre-allocated memory to be initialized as the header.
1585
+ *
1586
+ * @return The header instance, which points to the same memory
1587
+ * location as the mem argument.
1588
+ */
1589
+ PJ_DECL(pjsip_from_hdr*) pjsip_from_hdr_init( pj_pool_t *pool,
1590
+ void *mem );
1591
+
1592
+ /**
1593
+ * Create a To header.
1594
+ *
1595
+ * @param pool The pool.
1596
+ * @return New instance of To header.
1597
+ */
1598
+ PJ_DECL(pjsip_to_hdr*) pjsip_to_hdr_create( pj_pool_t *pool );
1599
+
1600
+ /**
1601
+ * Initialize a preallocated memory with the header structure. This function
1602
+ * should only be called when application uses its own memory allocation to
1603
+ * allocate memory block for the specified header (e.g. in C++, when the
1604
+ * header is allocated with "new" operator).
1605
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1606
+ * which allocates memory and initialize it in one go.
1607
+ *
1608
+ * @param pool Pool for additional memory allocation if required.
1609
+ * @param mem Pre-allocated memory to be initialized as the header.
1610
+ *
1611
+ * @return The header instance, which points to the same memory
1612
+ * location as the mem argument.
1613
+ */
1614
+ PJ_DECL(pjsip_to_hdr*) pjsip_to_hdr_init( pj_pool_t *pool,
1615
+ void *mem );
1616
+
1617
+ /**
1618
+ * Convert the header to a From header.
1619
+ *
1620
+ * @param hdr The generic from/to header.
1621
+ * @return "From" header.
1622
+ */
1623
+ PJ_DECL(pjsip_from_hdr*) pjsip_fromto_hdr_set_from( pjsip_fromto_hdr *hdr );
1624
+
1625
+ /**
1626
+ * Convert the header to a To header.
1627
+ *
1628
+ * @param hdr The generic from/to header.
1629
+ * @return "To" header.
1630
+ */
1631
+ PJ_DECL(pjsip_to_hdr*) pjsip_fromto_hdr_set_to( pjsip_fromto_hdr *hdr );
1632
+
1633
+
1634
+ /* **************************************************************************/
1635
+ /**
1636
+ * Max-Forwards header.
1637
+ */
1638
+ typedef pjsip_generic_int_hdr pjsip_max_fwd_hdr;
1639
+
1640
+ /**
1641
+ * Create new Max-Forwards header instance.
1642
+ *
1643
+ * @param pool The pool.
1644
+ * @param value The Max-Forwards value.
1645
+ *
1646
+ * @return New Max-Forwards header instance.
1647
+ */
1648
+ PJ_DECL(pjsip_max_fwd_hdr*)
1649
+ pjsip_max_fwd_hdr_create(pj_pool_t *pool, unsigned value);
1650
+
1651
+
1652
+ /**
1653
+ * Initialize a preallocated memory with the header structure. This function
1654
+ * should only be called when application uses its own memory allocation to
1655
+ * allocate memory block for the specified header (e.g. in C++, when the
1656
+ * header is allocated with "new" operator).
1657
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1658
+ * which allocates memory and initialize it in one go.
1659
+ *
1660
+ * @param pool Pool for additional memory allocation if required.
1661
+ * @param mem Pre-allocated memory to be initialized as the header.
1662
+ * @param value The Max-Forwards value.
1663
+ *
1664
+ * @return The header instance, which points to the same memory
1665
+ * location as the mem argument.
1666
+ */
1667
+ PJ_DECL(pjsip_max_fwd_hdr*)
1668
+ pjsip_max_fwd_hdr_init( pj_pool_t *pool, void *mem, unsigned value );
1669
+
1670
+
1671
+ /* **************************************************************************/
1672
+ /**
1673
+ * Min-Expires header.
1674
+ */
1675
+ typedef pjsip_generic_int_hdr pjsip_min_expires_hdr;
1676
+
1677
+ /**
1678
+ * Create new Min-Expires header instance.
1679
+ *
1680
+ * @param pool The pool.
1681
+ * @param value The Min-Expires value.
1682
+ *
1683
+ * @return New Min-Expires header instance.
1684
+ */
1685
+ PJ_DECL(pjsip_min_expires_hdr*) pjsip_min_expires_hdr_create(pj_pool_t *pool,
1686
+ unsigned value);
1687
+
1688
+
1689
+ /**
1690
+ * Initialize a preallocated memory with the header structure. This function
1691
+ * should only be called when application uses its own memory allocation to
1692
+ * allocate memory block for the specified header (e.g. in C++, when the
1693
+ * header is allocated with "new" operator).
1694
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1695
+ * which allocates memory and initialize it in one go.
1696
+ *
1697
+ * @param pool Pool for additional memory allocation if required.
1698
+ * @param mem Pre-allocated memory to be initialized as the header.
1699
+ * @param value The Min-Expires value.
1700
+ *
1701
+ * @return The header instance, which points to the same memory
1702
+ * location as the mem argument.
1703
+ */
1704
+ PJ_DECL(pjsip_min_expires_hdr*) pjsip_min_expires_hdr_init( pj_pool_t *pool,
1705
+ void *mem,
1706
+ unsigned value );
1707
+
1708
+
1709
+ /* **************************************************************************/
1710
+ /**
1711
+ * Record-Route and Route headers.
1712
+ */
1713
+ typedef struct pjsip_routing_hdr
1714
+ {
1715
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_routing_hdr); /**< Generic header fields. */
1716
+ pjsip_name_addr name_addr; /**< The URL in the Route/Record-Route header. */
1717
+ pjsip_param other_param; /**< Other parameter. */
1718
+ } pjsip_routing_hdr;
1719
+
1720
+ /** Alias for Record-Route header. */
1721
+ typedef pjsip_routing_hdr pjsip_rr_hdr;
1722
+
1723
+ /** Alias for Route header. */
1724
+ typedef pjsip_routing_hdr pjsip_route_hdr;
1725
+
1726
+
1727
+ /**
1728
+ * Create new Record-Route header from the pool.
1729
+ *
1730
+ * @param pool The pool.
1731
+ * @return A new instance of Record-Route header.
1732
+ */
1733
+ PJ_DECL(pjsip_rr_hdr*) pjsip_rr_hdr_create( pj_pool_t *pool );
1734
+
1735
+ /**
1736
+ * Initialize a preallocated memory with the header structure. This function
1737
+ * should only be called when application uses its own memory allocation to
1738
+ * allocate memory block for the specified header (e.g. in C++, when the
1739
+ * header is allocated with "new" operator).
1740
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1741
+ * which allocates memory and initialize it in one go.
1742
+ *
1743
+ * @param pool Pool for additional memory allocation if required.
1744
+ * @param mem Pre-allocated memory to be initialized as the header.
1745
+ *
1746
+ * @return The header instance, which points to the same memory
1747
+ * location as the mem argument.
1748
+ */
1749
+ PJ_DECL(pjsip_rr_hdr*) pjsip_rr_hdr_init( pj_pool_t *pool,
1750
+ void *mem );
1751
+
1752
+ /**
1753
+ * Create new Route header from the pool.
1754
+ *
1755
+ * @param pool The pool.
1756
+ * @return A new instance of "Route" header.
1757
+ */
1758
+ PJ_DECL(pjsip_route_hdr*) pjsip_route_hdr_create( pj_pool_t *pool );
1759
+
1760
+ /**
1761
+ * Initialize a preallocated memory with the header structure. This function
1762
+ * should only be called when application uses its own memory allocation to
1763
+ * allocate memory block for the specified header (e.g. in C++, when the
1764
+ * header is allocated with "new" operator).
1765
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1766
+ * which allocates memory and initialize it in one go.
1767
+ *
1768
+ * @param pool Pool for additional memory allocation if required.
1769
+ * @param mem Pre-allocated memory to be initialized as the header.
1770
+ *
1771
+ * @return The header instance, which points to the same memory
1772
+ * location as the mem argument.
1773
+ */
1774
+ PJ_DECL(pjsip_route_hdr*) pjsip_route_hdr_init( pj_pool_t *pool,
1775
+ void *mem );
1776
+
1777
+ /**
1778
+ * Convert generic routing header to Record-Route header.
1779
+ *
1780
+ * @param r The generic routing header, or a "Routing" header.
1781
+ * @return Record-Route header.
1782
+ */
1783
+ PJ_DECL(pjsip_rr_hdr*) pjsip_routing_hdr_set_rr( pjsip_routing_hdr *r );
1784
+
1785
+ /**
1786
+ * Convert generic routing header to "Route" header.
1787
+ *
1788
+ * @param r The generic routing header, or a "Record-Route" header.
1789
+ * @return "Route" header.
1790
+ */
1791
+ PJ_DECL(pjsip_route_hdr*) pjsip_routing_hdr_set_route( pjsip_routing_hdr *r );
1792
+
1793
+ /* **************************************************************************/
1794
+ /**
1795
+ * Require header.
1796
+ */
1797
+ typedef pjsip_generic_array_hdr pjsip_require_hdr;
1798
+
1799
+ /**
1800
+ * Create new Require header instance.
1801
+ *
1802
+ * @param pool The pool.
1803
+ *
1804
+ * @return New Require header instance.
1805
+ */
1806
+ PJ_DECL(pjsip_require_hdr*) pjsip_require_hdr_create(pj_pool_t *pool);
1807
+
1808
+ /**
1809
+ * Initialize a preallocated memory with the header structure. This function
1810
+ * should only be called when application uses its own memory allocation to
1811
+ * allocate memory block for the specified header (e.g. in C++, when the
1812
+ * header is allocated with "new" operator).
1813
+ * For normal applications, they should use pjsip_xxx_hdr_create() instead,
1814
+ * which allocates memory and initialize it in one go.
1815
+ *
1816
+ * @param pool Pool for additional memory allocation if required.
1817
+ * @param mem Pre-allocated memory to be initialized as the header.
1818
+ *
1819
+ * @return The header instance, which points to the same memory
1820
+ * location as the mem argument.
1821
+ */
1822
+ PJ_DECL(pjsip_require_hdr*) pjsip_require_hdr_init( pj_pool_t *pool,
1823
+ void *mem );
1824
+
1825
+
1826
+ /* **************************************************************************/
1827
+ /**
1828
+ * Retry-After header.
1829
+ */
1830
+ typedef struct pjsip_retry_after_hdr
1831
+ {
1832
+ /** Standard header field. */
1833
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_retry_after_hdr);
1834
+ pj_int32_t ivalue; /**< Retry-After value */
1835
+ pjsip_param param; /**< Optional parameters */
1836
+ pj_str_t comment; /**< Optional comments. */
1837
+ } pjsip_retry_after_hdr;
1838
+
1839
+
1840
+ /**
1841
+ * Create new Retry-After header instance.
1842
+ *
1843
+ * @param pool The pool.
1844
+ * @param value The Retry-After value.
1845
+ *
1846
+ * @return New Retry-After header instance.
1847
+ */
1848
+ PJ_DECL(pjsip_retry_after_hdr*) pjsip_retry_after_hdr_create(pj_pool_t *pool,
1849
+ int value);
1850
+
1851
+ /**
1852
+ * Initialize a preallocated memory with the header structure.
1853
+ *
1854
+ * @param pool Pool for additional memory allocation if required.
1855
+ * @param mem Pre-allocated memory to be initialized as the header.
1856
+ * @param value The Retry-After value.
1857
+ *
1858
+ * @return The header instance, which points to the same memory
1859
+ * location as the mem argument.
1860
+ */
1861
+ PJ_DECL(pjsip_retry_after_hdr*) pjsip_retry_after_hdr_init( pj_pool_t *pool,
1862
+ void *mem,
1863
+ int value );
1864
+
1865
+
1866
+ /* **************************************************************************/
1867
+ /**
1868
+ * Supported header.
1869
+ */
1870
+ typedef pjsip_generic_array_hdr pjsip_supported_hdr;
1871
+
1872
+ /**
1873
+ * Create new Supported header instance.
1874
+ *
1875
+ * @param pool The pool.
1876
+ *
1877
+ * @return New Supported header instance.
1878
+ */
1879
+ PJ_DECL(pjsip_supported_hdr*) pjsip_supported_hdr_create(pj_pool_t *pool);
1880
+
1881
+ /**
1882
+ * Initialize a preallocated memory with the header structure.
1883
+ *
1884
+ * @param pool Pool for additional memory allocation if required.
1885
+ * @param mem Pre-allocated memory to be initialized as the header.
1886
+ *
1887
+ * @return The header instance, which points to the same memory
1888
+ * location as the mem argument.
1889
+ */
1890
+ PJ_DECL(pjsip_supported_hdr*) pjsip_supported_hdr_init( pj_pool_t *pool,
1891
+ void *mem );
1892
+
1893
+ /* **************************************************************************/
1894
+ /**
1895
+ * Unsupported header.
1896
+ */
1897
+ typedef pjsip_generic_array_hdr pjsip_unsupported_hdr;
1898
+
1899
+ /**
1900
+ * Create new Unsupported header instance.
1901
+ *
1902
+ * @param pool The pool.
1903
+ *
1904
+ * @return New Unsupported header instance.
1905
+ */
1906
+ PJ_DECL(pjsip_unsupported_hdr*) pjsip_unsupported_hdr_create(pj_pool_t *pool);
1907
+
1908
+ /**
1909
+ * Initialize a preallocated memory with the header structure.
1910
+ *
1911
+ * @param pool Pool for additional memory allocation if required.
1912
+ * @param mem Pre-allocated memory to be initialized as the header.
1913
+ *
1914
+ * @return The header instance, which points to the same memory
1915
+ * location as the mem argument.
1916
+ */
1917
+ PJ_DECL(pjsip_unsupported_hdr*) pjsip_unsupported_hdr_init( pj_pool_t *pool,
1918
+ void *mem );
1919
+
1920
+ /* **************************************************************************/
1921
+ /**
1922
+ * SIP Via header.
1923
+ * In this implementation, Via header can only have one element in each header.
1924
+ * If a message arrives with multiple elements in a single Via, then they will
1925
+ * be split up into multiple Via headers.
1926
+ */
1927
+ typedef struct pjsip_via_hdr
1928
+ {
1929
+ PJSIP_DECL_HDR_MEMBER(struct pjsip_via_hdr);
1930
+ pj_str_t transport; /**< Transport type. */
1931
+ pjsip_host_port sent_by; /**< Host and optional port */
1932
+ int ttl_param; /**< TTL parameter, or -1 if it's not specified. */
1933
+ int rport_param; /**< "rport" parameter, 0 to specify without
1934
+ port number, -1 means doesn't exist. */
1935
+ pj_str_t maddr_param; /**< "maddr" parameter. */
1936
+ pj_str_t recvd_param; /**< "received" parameter. */
1937
+ pj_str_t branch_param; /**< "branch" parameter. */
1938
+ pjsip_param other_param; /**< Other parameters, concatenated as single string. */
1939
+ pj_str_t comment; /**< Comment. */
1940
+ } pjsip_via_hdr;
1941
+
1942
+ /**
1943
+ * Create a new Via header.
1944
+ *
1945
+ * @param pool The pool.
1946
+ * @return A new "Via" header instance.
1947
+ */
1948
+ PJ_DECL(pjsip_via_hdr*) pjsip_via_hdr_create( pj_pool_t *pool );
1949
+
1950
+ /**
1951
+ * Initialize a preallocated memory with the header structure.
1952
+ *
1953
+ * @param pool Pool for additional memory allocation if required.
1954
+ * @param mem Pre-allocated memory to be initialized as the header.
1955
+ *
1956
+ * @return The header instance, which points to the same memory
1957
+ * location as the mem argument.
1958
+ */
1959
+ PJ_DECL(pjsip_via_hdr*) pjsip_via_hdr_init( pj_pool_t *pool,
1960
+ void *mem );
1961
+
1962
+ /* **************************************************************************/
1963
+ /**
1964
+ * SIP Warning header.
1965
+ * In this version, Warning header is just a typedef for generic string
1966
+ * header.
1967
+ */
1968
+ typedef pjsip_generic_string_hdr pjsip_warning_hdr;
1969
+
1970
+ /**
1971
+ * Create a warning header with the specified contents.
1972
+ *
1973
+ * @param pool Pool to allocate memory from.
1974
+ * @param code Warning code, 300-399.
1975
+ * @param host The host portion of the Warning header.
1976
+ * @param text The warning text, which MUST not be quoted with
1977
+ * double quote.
1978
+ *
1979
+ * @return The Warning header field.
1980
+ */
1981
+ PJ_DECL(pjsip_warning_hdr*) pjsip_warning_hdr_create( pj_pool_t *pool,
1982
+ int code,
1983
+ const pj_str_t *host,
1984
+ const pj_str_t *text);
1985
+
1986
+ /**
1987
+ * Create a warning header and initialize the contents from the error
1988
+ * message for the specified status code. The warning code will be
1989
+ * set to 399.
1990
+ *
1991
+ * @param pool Pool to allocate memory from.
1992
+ * @param host The host portion of the Warning header.
1993
+ * @param status The error status code, which error text will be
1994
+ * put in as the Warning text.
1995
+ *
1996
+ * @return The Warning header field.
1997
+ */
1998
+ PJ_DECL(pjsip_warning_hdr*)
1999
+ pjsip_warning_hdr_create_from_status( pj_pool_t *pool,
2000
+ const pj_str_t *host,
2001
+ pj_status_t status);
2002
+
2003
+ /* **************************************************************************/
2004
+ /** Accept-Encoding header. */
2005
+ typedef pjsip_generic_string_hdr pjsip_accept_encoding_hdr;
2006
+
2007
+ /** Create Accept-Encoding header. */
2008
+ #define pjsip_accept_encoding_hdr_create pjsip_generic_string_hdr_create
2009
+
2010
+ /** Accept-Language header. */
2011
+ typedef pjsip_generic_string_hdr pjsip_accept_lang_hdr;
2012
+
2013
+ /** Create Accept-Language header. */
2014
+ #define pjsip_accept_lang_hdr_create pjsip_generic_string_hdr_create
2015
+
2016
+ /** Alert-Info header. */
2017
+ typedef pjsip_generic_string_hdr pjsip_alert_info_hdr;
2018
+
2019
+ /** Create Alert-Info header. */
2020
+ #define pjsip_alert_info_hdr_create pjsip_generic_string_hdr_create
2021
+
2022
+ /** Authentication-Info header. */
2023
+ typedef pjsip_generic_string_hdr pjsip_auth_info_hdr;
2024
+
2025
+ /** Create Authentication-Info header. */
2026
+ #define pjsip_auth_info_hdr_create pjsip_generic_string_hdr_create
2027
+
2028
+ /** Call-Info header. */
2029
+ typedef pjsip_generic_string_hdr pjsip_call_info_hdr;
2030
+
2031
+ /** Create Call-Info header. */
2032
+ #define pjsip_call_info_hdr_create pjsip_generic_string_hdr_create
2033
+
2034
+ /** Content-Disposition header. */
2035
+ typedef pjsip_generic_string_hdr pjsip_content_disposition_hdr;
2036
+
2037
+ /** Create Content-Disposition header. */
2038
+ #define pjsip_content_disposition_hdr_create pjsip_generic_string_hdr_create
2039
+
2040
+ /** Content-Encoding header. */
2041
+ typedef pjsip_generic_string_hdr pjsip_content_encoding_hdr;
2042
+
2043
+ /** Create Content-Encoding header. */
2044
+ #define pjsip_content_encoding_hdr_create pjsip_generic_string_hdr_create
2045
+
2046
+ /** Content-Language header. */
2047
+ typedef pjsip_generic_string_hdr pjsip_content_lang_hdr;
2048
+
2049
+ /** Create Content-Language header. */
2050
+ #define pjsip_content_lang_hdr_create pjsip_generic_string_hdr_create
2051
+
2052
+ /** Date header. */
2053
+ typedef pjsip_generic_string_hdr pjsip_date_hdr;
2054
+
2055
+ /** Create Date header. */
2056
+ #define pjsip_date_hdr_create pjsip_generic_string_hdr_create
2057
+
2058
+ /** Error-Info header. */
2059
+ typedef pjsip_generic_string_hdr pjsip_err_info_hdr;
2060
+
2061
+ /** Create Error-Info header. */
2062
+ #define pjsip_err_info_hdr_create pjsip_generic_string_hdr_create
2063
+
2064
+ /** In-Reply-To header. */
2065
+ typedef pjsip_generic_string_hdr pjsip_in_reply_to_hdr;
2066
+
2067
+ /** Create In-Reply-To header. */
2068
+ #define pjsip_in_reply_to_hdr_create pjsip_generic_string_hdr_create
2069
+
2070
+ /** MIME-Version header. */
2071
+ typedef pjsip_generic_string_hdr pjsip_mime_version_hdr;
2072
+
2073
+ /** Create MIME-Version header. */
2074
+ #define pjsip_mime_version_hdr_create pjsip_generic_string_hdr_create
2075
+
2076
+ /** Organization header. */
2077
+ typedef pjsip_generic_string_hdr pjsip_organization_hdr;
2078
+
2079
+ /** Create Organization header. */
2080
+ #define pjsip_organization_hdr_create pjsip_genric_string_hdr_create
2081
+
2082
+ /** Priority header. */
2083
+ typedef pjsip_generic_string_hdr pjsip_priority_hdr;
2084
+
2085
+ /** Create Priority header. */
2086
+ #define pjsip_priority_hdr_create pjsip_generic_string_hdr_create
2087
+
2088
+ /** Proxy-Require header. */
2089
+ typedef pjsip_generic_string_hdr pjsip_proxy_require_hdr;
2090
+
2091
+ /** Reply-To header. */
2092
+ typedef pjsip_generic_string_hdr pjsip_reply_to_hdr;
2093
+
2094
+ /** Create Reply-To header. */
2095
+ #define pjsip_reply_to_hdr_create pjsip_generic_string_hdr_create
2096
+
2097
+ /** Server header. */
2098
+ typedef pjsip_generic_string_hdr pjsip_server_hdr;
2099
+
2100
+ /** Create Server header. */
2101
+ #define pjsip_server_hdr_create pjsip_generic_string_hdr_create
2102
+
2103
+ /** Subject header. */
2104
+ typedef pjsip_generic_string_hdr pjsip_subject_hdr;
2105
+
2106
+ /** Create Subject header. */
2107
+ #define pjsip_subject_hdr_create pjsip_generic_string_hdr_create
2108
+
2109
+ /** Timestamp header. */
2110
+ typedef pjsip_generic_string_hdr pjsip_timestamp_hdr;
2111
+
2112
+ /** Create Timestamp header. */
2113
+ #define pjsip_timestamp_hdr_create pjsip_generic_string_hdr_create
2114
+
2115
+ /** User-Agent header. */
2116
+ typedef pjsip_generic_string_hdr pjsip_user_agent_hdr;
2117
+
2118
+ /** Create User-Agent header. */
2119
+ #define pjsip_user_agent_hdr_create pjsip_generic_string_hdr_create
2120
+
2121
+
2122
+ /**
2123
+ * @}
2124
+ */
2125
+
2126
+ /**
2127
+ * @} PJSIP_MSG
2128
+ */
2129
+
2130
+
2131
+ PJ_END_DECL
2132
+
2133
+ #endif /* __PJSIP_SIP_MSG_H__ */
2134
+