@voipsdk/react-native-voipcloud 1.0.1 → 1.0.3
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.
- package/CHANGELOG.md +48 -0
- package/LICENSE +21 -0
- package/README.md +60 -15
- package/android/build.gradle +15 -9
- package/android/src/main/java/com/voipcloud/sdk/rn/VoipCloudModule.java +113 -3
- package/android/src/main/java/com/voipcloud/sdk/rn/internal/ManagedAccount.java +12 -6
- package/android/src/main/java/com/voipcloud/sdk/rn/internal/ManagedCall.java +33 -1
- package/ios/VoipCloud.mm +214 -28
- package/ios/VoipCloud.xcframework/Info.plist +48 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/activesock.h +598 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/addr_resolv.h +189 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/array.h +95 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/assert.h +84 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/assert.h +36 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_armcc.h +57 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_clang.h +64 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_codew.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcc.h +79 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_gcce.h +54 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_msvc.h +87 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/cc_mwcc.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/ctype.h +44 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/errno.h +44 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/high_precision.h +87 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/limits.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_alpha.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_armv4.h +38 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h +60 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_auto.h.in +59 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_i386.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_m68k.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_powerpc.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_sparc.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/m_x86_64.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/malloc.h +33 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h +245 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_auto.h.in +244 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_darwinos.h +141 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_linux.h +130 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_palmos.h +118 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_rtems.h +138 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_sunos.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_symbian.h +166 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32.h +148 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_win32_wince.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winphone8.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/os_winuwp.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/rand.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/setjmp.h +49 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/size_t.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/socket.h +223 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdarg.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/stdfileio.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/string.h +178 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/compat/time.h +41 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config.h +1537 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site.h +22 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_sample.h +485 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/config_site_test.h +11 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ctype.h +174 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/doxygen.h +995 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/errno.h +593 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/except.h +420 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/fifobuf.h +43 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_access.h +108 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/file_io.h +183 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/guid.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/hash.h +253 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ioqueue.h +955 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ip_helper.h +152 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/limits.h +57 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list.h +268 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/list_i.h +120 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/lock.h +453 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/log.h +487 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/math.h +203 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/os.h +1536 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool.h +918 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_alt.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_buf.h +104 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/pool_i.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rand.h +65 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/rbtree.h +215 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock.h +1566 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_qos.h +429 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/sock_select.h +151 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/ssl_sock.h +1508 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string.h +963 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/string_i.h +406 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/timer.h +386 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/types.h +594 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj/unicode.h +140 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/file.hpp +187 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/hash.hpp +155 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/list.hpp +351 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/lock.hpp +148 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/os.hpp +869 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/pool.hpp +278 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/proactor.hpp +514 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/scanner.hpp +245 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/sock.hpp +443 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/string.hpp +467 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/timer.hpp +197 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/tree.hpp +128 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pj++/types.hpp +174 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib++.hpp +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/base64.h +91 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli.h +530 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_console.h +116 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_imp.h +207 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/cli_telnet.h +167 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/config.h +373 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/crc32.h +95 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns.h +460 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/dns_server.h +116 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/errno.h +455 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/getopt.h +144 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_md5.h +108 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/hmac_sha1.h +106 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/http_client.h +493 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/json.h +227 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/md5.h +73 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/pcap.h +195 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/resolver.h +515 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner.h +553 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/scanner_cis_uint.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/sha1.h +79 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/srv_resolver.h +221 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/string.h +101 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/stun_simple.h +288 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/types.h +94 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util/xml.h +248 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib-util.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjlib.h +62 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/alaw_ulaw.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/audiodev.h +761 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi.h +201 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/avi_stream.h +195 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/bidirectional.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/circbuf.h +436 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/clock.h +338 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/codec.h +1192 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/conference.h +599 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config.h +1713 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h +43 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/config_auto.h.in +42 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/converter.h +386 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/delaybuf.h +175 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/doxygen.h +243 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo.h +420 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/echo_port.h +73 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/endpoint.h +389 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/errno.h +693 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/event.h +493 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/format.h +821 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/frame.h +331 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/g711.h +88 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/jbuf.h +484 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/master_port.h +198 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/mem_port.h +241 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/null_port.h +69 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/plc.h +114 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/port.h +565 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/resample.h +199 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp.h +511 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_fb.h +487 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtcp_xr.h +477 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/rtp.h +457 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp.h +830 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sdp_neg.h +822 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/session.h +435 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/signatures.h +217 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/silencedet.h +199 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound.h +353 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/sound_port.h +397 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/splitcomb.h +142 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stereo.h +203 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream.h +541 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/stream_common.h +123 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/symbian_sound_aps.h +47 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/tonegen.h +302 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport.h +1069 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_adapter_sample.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_ice.h +458 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_loop.h +158 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_srtp.h +579 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/transport_udp.h +161 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/types.h +345 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec.h +896 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_codec_util.h +194 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_conf.h +310 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_port.h +269 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_stream.h +514 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/vid_tee.h +141 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/videodev.h +859 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_playlist.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wav_port.h +342 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wave.h +183 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia/wsola.h +218 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev.h +110 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/audiotest.h +115 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/config.h +525 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-audiodev/errno.h +227 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_helper.h +1236 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/audio_codecs.h +97 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/bcg729.h +120 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config.h +720 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h +104 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/config_auto.h.in +103 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g722.h +103 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221.h +164 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/gsm.h +86 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h263_packetizer.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/h264_packetizer.h +163 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ilbc.h +118 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/ipp_codecs.h +321 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/l16.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opencore_amr.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/openh264.h +68 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/opus.h +160 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/passthrough.h +276 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/silk.h +126 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/speex.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/types.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vid_toolbox.h +70 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx.h +68 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-codec.h +47 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/avi_dev.h +139 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/config.h +326 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/errno.h +158 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/opengl_dev.h +52 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia-videodev/videodev_imp.h +229 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia.h +81 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_audiodev.h +32 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjmedia_videodev.h +30 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/config.h +596 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/errno.h +225 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_session.h +1122 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/ice_strans.h +1112 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/nat_detect.h +233 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_auth.h +456 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_config.h +135 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_msg.h +1856 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_session.h +763 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_sock.h +496 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/stun_transaction.h +291 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_session.h +968 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/turn_sock.h +673 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/types.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath/upnp.h +147 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjnath.h +46 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/print_util.h +166 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth.h +637 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_aka.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_msg.h +269 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_auth_parser.h +74 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h +39 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_autoconf.h.in +38 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_config.h +1545 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_dialog.h +935 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_endpoint.h +715 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_errno.h +544 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_event.h +230 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_module.h +221 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_msg.h +2134 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_multipart.h +276 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_parser.h +465 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_private.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_resolve.h +347 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_tel_uri.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transaction.h +542 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport.h +1672 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_loop.h +146 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tcp.h +300 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_tls.h +642 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_transport_udp.h +389 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_types.h +265 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_ua_layer.h +159 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_uri.h +470 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip/sip_util.h +888 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/errno.h +117 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub.h +561 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/evsub_msg.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/iscomposing.h +137 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/mwi.h +211 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/pidf.h +177 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/presence.h +416 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/publish.h +350 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/rpid.h +150 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/types.h +30 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-simple/xpidf.h +137 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_100rel.h +244 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_inv.h +1224 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_regc.h +497 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_replaces.h +303 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_timer.h +274 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip-ua/sip_xfer.h +207 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip.h +61 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_auth.h +37 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_simple.h +45 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsip_ua.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua.h +8899 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua-lib/pjsua_internal.h +989 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua.h +1 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/account.hpp +2123 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/call.hpp +2253 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/config.hpp +72 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/doxygen.hpp +48 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/endpoint.hpp +2160 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/json.hpp +115 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/media.hpp +2748 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/persistent.hpp +715 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/presence.hpp +368 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/siptypes.hpp +1013 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2/types.hpp +283 -0
- package/ios/VoipCloud.xcframework/ios-arm64/Headers/pjsua2.hpp +28 -0
- package/ios/VoipCloud.xcframework/ios-arm64/libVoipCloud.a +0 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/activesock.h +598 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/addr_resolv.h +189 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/array.h +95 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/assert.h +84 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/assert.h +36 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_armcc.h +57 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_clang.h +64 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_codew.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcc.h +79 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_gcce.h +54 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_msvc.h +87 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/cc_mwcc.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/ctype.h +44 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/errno.h +44 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/high_precision.h +87 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/limits.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_alpha.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_armv4.h +38 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h +60 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_auto.h.in +59 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_i386.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_m68k.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_powerpc.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_sparc.h +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/m_x86_64.h +35 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/malloc.h +33 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h +245 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_auto.h.in +244 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_darwinos.h +141 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_linux.h +130 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_palmos.h +118 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_rtems.h +138 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_sunos.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_symbian.h +166 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32.h +148 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_win32_wince.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winphone8.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/os_winuwp.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/rand.h +55 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/setjmp.h +49 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/size_t.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/socket.h +223 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdarg.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/stdfileio.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/string.h +178 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/compat/time.h +41 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config.h +1537 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site.h +22 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_sample.h +485 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/config_site_test.h +11 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ctype.h +174 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/doxygen.h +995 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/errno.h +593 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/except.h +420 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/fifobuf.h +43 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_access.h +108 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/file_io.h +183 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/guid.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/hash.h +253 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ioqueue.h +955 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ip_helper.h +152 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/limits.h +57 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list.h +268 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/list_i.h +120 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/lock.h +453 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/log.h +487 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/math.h +203 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/os.h +1536 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool.h +918 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_alt.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_buf.h +104 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/pool_i.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rand.h +65 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/rbtree.h +215 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock.h +1566 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_qos.h +429 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/sock_select.h +151 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/ssl_sock.h +1508 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string.h +963 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/string_i.h +406 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/timer.h +386 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/types.h +594 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj/unicode.h +140 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/file.hpp +187 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/hash.hpp +155 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/list.hpp +351 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/lock.hpp +148 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/os.hpp +869 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/pool.hpp +278 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/proactor.hpp +514 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/scanner.hpp +245 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/sock.hpp +443 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/string.hpp +467 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/timer.hpp +197 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/tree.hpp +128 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pj++/types.hpp +174 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib++.hpp +34 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/base64.h +91 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli.h +530 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_console.h +116 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_imp.h +207 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/cli_telnet.h +167 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/config.h +373 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/crc32.h +95 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns.h +460 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/dns_server.h +116 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/errno.h +455 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/getopt.h +144 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_md5.h +108 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/hmac_sha1.h +106 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/http_client.h +493 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/json.h +227 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/md5.h +73 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/pcap.h +195 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/resolver.h +515 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner.h +553 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_bitwise.h +96 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/scanner_cis_uint.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/sha1.h +79 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/srv_resolver.h +221 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/string.h +101 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/stun_simple.h +288 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/types.h +94 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util/xml.h +248 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib-util.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjlib.h +62 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/alaw_ulaw.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/audiodev.h +761 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi.h +201 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/avi_stream.h +195 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/bidirectional.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/circbuf.h +436 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/clock.h +338 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/codec.h +1192 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/conference.h +599 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config.h +1713 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h +43 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/config_auto.h.in +42 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/converter.h +386 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/delaybuf.h +175 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/doxygen.h +243 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo.h +420 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/echo_port.h +73 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/endpoint.h +389 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/errno.h +693 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/event.h +493 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/format.h +821 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/frame.h +331 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/g711.h +88 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/jbuf.h +484 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/master_port.h +198 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/mem_port.h +241 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/null_port.h +69 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/plc.h +114 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/port.h +565 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/resample.h +199 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp.h +511 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_fb.h +487 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtcp_xr.h +477 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/rtp.h +457 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp.h +830 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sdp_neg.h +822 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/session.h +435 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/signatures.h +217 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/silencedet.h +199 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound.h +353 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/sound_port.h +397 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/splitcomb.h +142 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stereo.h +203 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream.h +541 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/stream_common.h +123 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/symbian_sound_aps.h +47 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/tonegen.h +302 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport.h +1069 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_adapter_sample.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_ice.h +458 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_loop.h +158 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_srtp.h +579 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/transport_udp.h +161 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/types.h +345 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec.h +896 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_codec_util.h +194 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_conf.h +310 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_port.h +269 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_stream.h +514 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/vid_tee.h +141 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/videodev.h +859 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_playlist.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wav_port.h +342 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wave.h +183 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia/wsola.h +218 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev.h +110 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiodev_imp.h +187 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/audiotest.h +115 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/config.h +525 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-audiodev/errno.h +227 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_helper.h +1236 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/amr_sdp_match.h +60 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_aud_mediacodec.h +131 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/and_vid_mediacodec.h +77 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/audio_codecs.h +97 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/bcg729.h +120 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config.h +720 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h +104 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/config_auto.h.in +103 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ffmpeg_vid_codecs.h +66 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g722.h +103 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221.h +164 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/g7221_sdp_match.h +58 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/gsm.h +86 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h263_packetizer.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/h264_packetizer.h +163 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ilbc.h +118 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/ipp_codecs.h +321 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/l16.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opencore_amr.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/openh264.h +68 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/opus.h +160 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/passthrough.h +276 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/silk.h +126 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/speex.h +149 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/types.h +145 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vid_toolbox.h +70 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx.h +68 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec/vpx_packetizer.h +123 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-codec.h +47 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/avi_dev.h +139 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/config.h +326 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/errno.h +158 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/opengl_dev.h +52 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia-videodev/videodev_imp.h +229 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia.h +81 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_audiodev.h +32 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjmedia_videodev.h +30 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/config.h +596 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/errno.h +225 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_session.h +1122 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/ice_strans.h +1112 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/nat_detect.h +233 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_auth.h +456 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_config.h +135 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_msg.h +1856 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_session.h +763 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_sock.h +496 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/stun_transaction.h +291 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_session.h +968 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/turn_sock.h +673 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/types.h +75 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath/upnp.h +147 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjnath.h +46 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/print_util.h +166 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth.h +637 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_aka.h +212 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_msg.h +269 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_auth_parser.h +74 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h +39 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_autoconf.h.in +38 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_config.h +1545 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_dialog.h +935 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_endpoint.h +715 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_errno.h +544 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_event.h +230 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_module.h +221 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_msg.h +2134 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_multipart.h +276 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_parser.h +465 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_private.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_resolve.h +347 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_tel_uri.h +83 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transaction.h +542 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport.h +1672 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_loop.h +146 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tcp.h +300 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_tls.h +642 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_transport_udp.h +389 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_types.h +265 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_ua_layer.h +159 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_uri.h +470 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip/sip_util.h +888 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/errno.h +117 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub.h +561 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/evsub_msg.h +119 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/iscomposing.h +137 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/mwi.h +211 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/pidf.h +177 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/presence.h +416 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/publish.h +350 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/rpid.h +150 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/types.h +30 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-simple/xpidf.h +137 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_100rel.h +244 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_inv.h +1224 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_regc.h +497 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_replaces.h +303 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_timer.h +274 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip-ua/sip_xfer.h +207 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip.h +61 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_auth.h +37 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_simple.h +45 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsip_ua.h +31 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua.h +8899 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua-lib/pjsua_internal.h +989 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua.h +1 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/account.hpp +2123 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/call.hpp +2253 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/config.hpp +72 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/doxygen.hpp +48 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/endpoint.hpp +2160 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/json.hpp +115 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/media.hpp +2748 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/persistent.hpp +715 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/presence.hpp +368 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/siptypes.hpp +1013 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2/types.hpp +283 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/Headers/pjsua2.hpp +28 -0
- package/ios/VoipCloud.xcframework/ios-arm64_x86_64-simulator/libVoipCloud.a +0 -0
- package/ios/VoipCloudEngine.h +62 -0
- package/ios/VoipCloudEngine.mm +655 -0
- package/lib/typescript/types.d.ts +14 -0
- package/package.json +6 -4
- package/react-native-voipcloud.podspec +32 -1
- package/react-native.config.js +22 -0
- package/src/types.ts +14 -0
|
@@ -0,0 +1,1856 @@
|
|
|
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 __PJNATH_STUN_MSG_H__
|
|
20
|
+
#define __PJNATH_STUN_MSG_H__
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @file stun_msg.h
|
|
24
|
+
* @brief STUN message components.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
#include <pjnath/types.h>
|
|
28
|
+
#include <pj/sock.h>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
PJ_BEGIN_DECL
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/* **************************************************************************/
|
|
35
|
+
/**
|
|
36
|
+
* @defgroup PJNATH_STUN_MSG STUN Message Representation and Parsing
|
|
37
|
+
* @ingroup PJNATH_STUN_BASE
|
|
38
|
+
* @brief Low-level representation and parsing of STUN messages.
|
|
39
|
+
* @{
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* STUN magic cookie.
|
|
45
|
+
*/
|
|
46
|
+
#define PJ_STUN_MAGIC 0x2112A442
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* STUN method constants.
|
|
51
|
+
*/
|
|
52
|
+
enum pj_stun_method_e
|
|
53
|
+
{
|
|
54
|
+
/**
|
|
55
|
+
* STUN Binding method as defined by RFC 3489-bis.
|
|
56
|
+
*/
|
|
57
|
+
PJ_STUN_BINDING_METHOD = 1,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* STUN Shared Secret method as defined by RFC 3489-bis.
|
|
61
|
+
*/
|
|
62
|
+
PJ_STUN_SHARED_SECRET_METHOD = 2,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* STUN/TURN Allocate method as defined by draft-ietf-behave-turn
|
|
66
|
+
*/
|
|
67
|
+
PJ_STUN_ALLOCATE_METHOD = 3,
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* STUN/TURN Refresh method as defined by draft-ietf-behave-turn
|
|
71
|
+
*/
|
|
72
|
+
PJ_STUN_REFRESH_METHOD = 4,
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* STUN/TURN Send indication as defined by draft-ietf-behave-turn
|
|
76
|
+
*/
|
|
77
|
+
PJ_STUN_SEND_METHOD = 6,
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* STUN/TURN Data indication as defined by draft-ietf-behave-turn
|
|
81
|
+
*/
|
|
82
|
+
PJ_STUN_DATA_METHOD = 7,
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* STUN/TURN CreatePermission method as defined by draft-ietf-behave-turn
|
|
86
|
+
*/
|
|
87
|
+
PJ_STUN_CREATE_PERM_METHOD = 8,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* STUN/TURN ChannelBind as defined by draft-ietf-behave-turn
|
|
91
|
+
*/
|
|
92
|
+
PJ_STUN_CHANNEL_BIND_METHOD = 9,
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* STUN/TURN Connect as defined by RFC 6062
|
|
96
|
+
*/
|
|
97
|
+
PJ_STUN_CONNECT_METHOD = 10,
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* STUN/TURN ConnectionBind as defined by RFC 6062
|
|
101
|
+
*/
|
|
102
|
+
PJ_STUN_CONNECTION_BIND_METHOD = 11,
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* STUN/TURN ConnectionAttempt as defined by RFC 6062
|
|
106
|
+
*/
|
|
107
|
+
PJ_STUN_CONNECTION_ATTEMPT_METHOD = 12,
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* All known methods.
|
|
111
|
+
*/
|
|
112
|
+
PJ_STUN_METHOD_MAX
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Retrieve the STUN method from the message-type field of the STUN
|
|
118
|
+
* message.
|
|
119
|
+
*/
|
|
120
|
+
#define PJ_STUN_GET_METHOD(msg_type) ((msg_type) & 0xFEEF)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* STUN message classes constants.
|
|
125
|
+
*/
|
|
126
|
+
enum pj_stun_msg_class_e
|
|
127
|
+
{
|
|
128
|
+
/**
|
|
129
|
+
* This specifies that the message type is a STUN request message.
|
|
130
|
+
*/
|
|
131
|
+
PJ_STUN_REQUEST_CLASS = 0,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* This specifies that the message type is a STUN indication message.
|
|
135
|
+
*/
|
|
136
|
+
PJ_STUN_INDICATION_CLASS = 1,
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* This specifies that the message type is a STUN successful response.
|
|
140
|
+
*/
|
|
141
|
+
PJ_STUN_SUCCESS_CLASS = 2,
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* This specifies that the message type is a STUN error response.
|
|
145
|
+
*/
|
|
146
|
+
PJ_STUN_ERROR_CLASS = 3
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Determine if the message type is a request.
|
|
152
|
+
*/
|
|
153
|
+
#define PJ_STUN_IS_REQUEST(msg_type) (((msg_type) & 0x0110) == 0x0000)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Determine if the message type is a successful response.
|
|
158
|
+
*/
|
|
159
|
+
#define PJ_STUN_IS_SUCCESS_RESPONSE(msg_type) (((msg_type) & 0x0110) == 0x0100)
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The response bit in the message type.
|
|
163
|
+
*/
|
|
164
|
+
#define PJ_STUN_SUCCESS_RESPONSE_BIT (0x0100)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Determine if the message type is an error response.
|
|
169
|
+
*/
|
|
170
|
+
#define PJ_STUN_IS_ERROR_RESPONSE(msg_type) (((msg_type) & 0x0110) == 0x0110)
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The error response bit in the message type.
|
|
174
|
+
*/
|
|
175
|
+
#define PJ_STUN_ERROR_RESPONSE_BIT (0x0110)
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Determine if the message type is a response.
|
|
179
|
+
*/
|
|
180
|
+
#define PJ_STUN_IS_RESPONSE(msg_type) (((msg_type) & 0x0100) == 0x0100)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Determine if the message type is an indication message.
|
|
185
|
+
*/
|
|
186
|
+
#define PJ_STUN_IS_INDICATION(msg_type) (((msg_type) & 0x0110) == 0x0010)
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The error response bit in the message type.
|
|
190
|
+
*/
|
|
191
|
+
#define PJ_STUN_INDICATION_BIT (0x0010)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* This enumeration describes STUN message types.
|
|
196
|
+
*/
|
|
197
|
+
typedef enum pj_stun_msg_type
|
|
198
|
+
{
|
|
199
|
+
/**
|
|
200
|
+
* STUN BINDING request.
|
|
201
|
+
*/
|
|
202
|
+
PJ_STUN_BINDING_REQUEST = 0x0001,
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Successful response to STUN BINDING-REQUEST.
|
|
206
|
+
*/
|
|
207
|
+
PJ_STUN_BINDING_RESPONSE = 0x0101,
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Error response to STUN BINDING-REQUEST.
|
|
211
|
+
*/
|
|
212
|
+
PJ_STUN_BINDING_ERROR_RESPONSE = 0x0111,
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Binding Indication (ICE)
|
|
216
|
+
*/
|
|
217
|
+
PJ_STUN_BINDING_INDICATION = 0x0011,
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* STUN SHARED-SECRET reqeust.
|
|
221
|
+
*/
|
|
222
|
+
PJ_STUN_SHARED_SECRET_REQUEST = 0x0002,
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Successful response to STUN SHARED-SECRET reqeust.
|
|
226
|
+
*/
|
|
227
|
+
PJ_STUN_SHARED_SECRET_RESPONSE = 0x0102,
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Error response to STUN SHARED-SECRET reqeust.
|
|
231
|
+
*/
|
|
232
|
+
PJ_STUN_SHARED_SECRET_ERROR_RESPONSE = 0x0112,
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* STUN/TURN Allocate Request
|
|
237
|
+
*/
|
|
238
|
+
PJ_STUN_ALLOCATE_REQUEST = 0x0003,
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Successful response to STUN/TURN Allocate Request
|
|
242
|
+
*/
|
|
243
|
+
PJ_STUN_ALLOCATE_RESPONSE = 0x0103,
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Failure response to STUN/TURN Allocate Request
|
|
247
|
+
*/
|
|
248
|
+
PJ_STUN_ALLOCATE_ERROR_RESPONSE = 0x0113,
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* STUN/TURN REFRESH Request
|
|
253
|
+
*/
|
|
254
|
+
PJ_STUN_REFRESH_REQUEST = 0x0004,
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Successful response to STUN REFRESH request
|
|
258
|
+
*/
|
|
259
|
+
PJ_STUN_REFRESH_RESPONSE = 0x0104,
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Error response to STUN REFRESH request.
|
|
263
|
+
*/
|
|
264
|
+
PJ_STUN_REFRESH_ERROR_RESPONSE = 0x0114,
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* TURN Send indication
|
|
269
|
+
*/
|
|
270
|
+
PJ_STUN_SEND_INDICATION = 0x0016,
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* TURN Data indication
|
|
275
|
+
*/
|
|
276
|
+
PJ_STUN_DATA_INDICATION = 0x0017,
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* TURN CreatePermission request
|
|
281
|
+
*/
|
|
282
|
+
PJ_STUN_CREATE_PERM_REQUEST = 0x0008,
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* TURN CreatePermission successful response.
|
|
286
|
+
*/
|
|
287
|
+
PJ_STUN_CREATE_PERM_RESPONSE = 0x0108,
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* TURN CreatePermission failure response
|
|
291
|
+
*/
|
|
292
|
+
PJ_STUN_CREATE_PERM_ERROR_RESPONSE = 0x0118,
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* STUN/TURN ChannelBind Request
|
|
297
|
+
*/
|
|
298
|
+
PJ_STUN_CHANNEL_BIND_REQUEST = 0x0009,
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Successful response to STUN ChannelBind request
|
|
302
|
+
*/
|
|
303
|
+
PJ_STUN_CHANNEL_BIND_RESPONSE = 0x0109,
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Error response to STUN ChannelBind request.
|
|
307
|
+
*/
|
|
308
|
+
PJ_STUN_CHANNEL_BIND_ERROR_RESPONSE = 0x0119,
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* STUN/TURN Connect Request
|
|
312
|
+
*/
|
|
313
|
+
PJ_STUN_CONNECT_REQUEST = 0x000a,
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* STUN/TURN ConnectBind Request
|
|
317
|
+
*/
|
|
318
|
+
PJ_STUN_CONNECTION_BIND_REQUEST = 0x000b,
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* TURN ConnectionAttempt indication
|
|
322
|
+
*/
|
|
323
|
+
PJ_STUN_CONNECTION_ATTEMPT_INDICATION = 0x001c,
|
|
324
|
+
|
|
325
|
+
} pj_stun_msg_type;
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* This enumeration describes STUN attribute types.
|
|
331
|
+
*/
|
|
332
|
+
typedef enum pj_stun_attr_type
|
|
333
|
+
{
|
|
334
|
+
PJ_STUN_ATTR_MAPPED_ADDR = 0x0001,/**< MAPPED-ADDRESS. */
|
|
335
|
+
PJ_STUN_ATTR_RESPONSE_ADDR = 0x0002,/**< RESPONSE-ADDRESS (deprcatd)*/
|
|
336
|
+
PJ_STUN_ATTR_CHANGE_REQUEST = 0x0003,/**< CHANGE-REQUEST (deprecated)*/
|
|
337
|
+
PJ_STUN_ATTR_SOURCE_ADDR = 0x0004,/**< SOURCE-ADDRESS (deprecated)*/
|
|
338
|
+
PJ_STUN_ATTR_CHANGED_ADDR = 0x0005,/**< CHANGED-ADDRESS (deprecatd)*/
|
|
339
|
+
PJ_STUN_ATTR_USERNAME = 0x0006,/**< USERNAME attribute. */
|
|
340
|
+
PJ_STUN_ATTR_PASSWORD = 0x0007,/**< was PASSWORD attribute. */
|
|
341
|
+
PJ_STUN_ATTR_MESSAGE_INTEGRITY = 0x0008,/**< MESSAGE-INTEGRITY. */
|
|
342
|
+
PJ_STUN_ATTR_ERROR_CODE = 0x0009,/**< ERROR-CODE. */
|
|
343
|
+
PJ_STUN_ATTR_UNKNOWN_ATTRIBUTES = 0x000A,/**< UNKNOWN-ATTRIBUTES. */
|
|
344
|
+
PJ_STUN_ATTR_REFLECTED_FROM = 0x000B,/**< REFLECTED-FROM (deprecatd)*/
|
|
345
|
+
PJ_STUN_ATTR_CHANNEL_NUMBER = 0x000C,/**< TURN CHANNEL-NUMBER */
|
|
346
|
+
PJ_STUN_ATTR_LIFETIME = 0x000D,/**< TURN LIFETIME attr. */
|
|
347
|
+
PJ_STUN_ATTR_MAGIC_COOKIE = 0x000F,/**< MAGIC-COOKIE attr (deprec)*/
|
|
348
|
+
PJ_STUN_ATTR_BANDWIDTH = 0x0010,/**< TURN BANDWIDTH (deprec) */
|
|
349
|
+
PJ_STUN_ATTR_XOR_PEER_ADDR = 0x0012,/**< TURN XOR-PEER-ADDRESS */
|
|
350
|
+
PJ_STUN_ATTR_DATA = 0x0013,/**< DATA attribute. */
|
|
351
|
+
PJ_STUN_ATTR_REALM = 0x0014,/**< REALM attribute. */
|
|
352
|
+
PJ_STUN_ATTR_NONCE = 0x0015,/**< NONCE attribute. */
|
|
353
|
+
PJ_STUN_ATTR_XOR_RELAYED_ADDR = 0x0016,/**< TURN XOR-RELAYED-ADDRESS */
|
|
354
|
+
PJ_STUN_ATTR_REQ_ADDR_TYPE = 0x0017,/**< REQUESTED-ADDRESS-TYPE */
|
|
355
|
+
PJ_STUN_ATTR_REQ_ADDR_FAMILY = 0x0017,/**< REQUESTED-ADDRESS-FAMILY */
|
|
356
|
+
PJ_STUN_ATTR_EVEN_PORT = 0x0018,/**< TURN EVEN-PORT */
|
|
357
|
+
PJ_STUN_ATTR_REQ_TRANSPORT = 0x0019,/**< TURN REQUESTED-TRANSPORT */
|
|
358
|
+
PJ_STUN_ATTR_DONT_FRAGMENT = 0x001A,/**< TURN DONT-FRAGMENT */
|
|
359
|
+
PJ_STUN_ATTR_XOR_MAPPED_ADDR = 0x0020,/**< XOR-MAPPED-ADDRESS */
|
|
360
|
+
PJ_STUN_ATTR_TIMER_VAL = 0x0021,/**< TIMER-VAL attribute. */
|
|
361
|
+
PJ_STUN_ATTR_RESERVATION_TOKEN = 0x0022,/**< TURN RESERVATION-TOKEN */
|
|
362
|
+
PJ_STUN_ATTR_XOR_REFLECTED_FROM = 0x0023,/**< XOR-REFLECTED-FROM */
|
|
363
|
+
PJ_STUN_ATTR_PRIORITY = 0x0024,/**< PRIORITY */
|
|
364
|
+
PJ_STUN_ATTR_USE_CANDIDATE = 0x0025,/**< USE-CANDIDATE */
|
|
365
|
+
PJ_STUN_ATTR_CONNECTION_ID = 0x002a,/**< CONNECTION-ID */
|
|
366
|
+
PJ_STUN_ATTR_ICMP = 0x0030,/**< ICMP (TURN) */
|
|
367
|
+
|
|
368
|
+
PJ_STUN_ATTR_END_MANDATORY_ATTR,
|
|
369
|
+
|
|
370
|
+
PJ_STUN_ATTR_START_EXTENDED_ATTR= 0x8021,
|
|
371
|
+
|
|
372
|
+
PJ_STUN_ATTR_SOFTWARE = 0x8022,/**< SOFTWARE attribute. */
|
|
373
|
+
PJ_STUN_ATTR_ALTERNATE_SERVER = 0x8023,/**< ALTERNATE-SERVER. */
|
|
374
|
+
PJ_STUN_ATTR_REFRESH_INTERVAL = 0x8024,/**< REFRESH-INTERVAL. */
|
|
375
|
+
PJ_STUN_ATTR_FINGERPRINT = 0x8028,/**< FINGERPRINT attribute. */
|
|
376
|
+
PJ_STUN_ATTR_ICE_CONTROLLED = 0x8029,/**< ICE-CCONTROLLED attribute.*/
|
|
377
|
+
PJ_STUN_ATTR_ICE_CONTROLLING = 0x802a,/**< ICE-CCONTROLLING attribute*/
|
|
378
|
+
|
|
379
|
+
PJ_STUN_ATTR_END_EXTENDED_ATTR
|
|
380
|
+
|
|
381
|
+
} pj_stun_attr_type;
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* STUN error codes, which goes into STUN ERROR-CODE attribute.
|
|
386
|
+
*/
|
|
387
|
+
typedef enum pj_stun_status
|
|
388
|
+
{
|
|
389
|
+
PJ_STUN_SC_TRY_ALTERNATE = 300, /**< Try Alternate */
|
|
390
|
+
PJ_STUN_SC_BAD_REQUEST = 400, /**< Bad Request */
|
|
391
|
+
PJ_STUN_SC_UNAUTHORIZED = 401, /**< Unauthorized */
|
|
392
|
+
PJ_STUN_SC_FORBIDDEN = 403, /**< Forbidden (TURN) */
|
|
393
|
+
PJ_STUN_SC_UNKNOWN_ATTRIBUTE = 420, /**< Unknown Attribute */
|
|
394
|
+
#if 0
|
|
395
|
+
/* These were obsolete in recent rfc3489bis */
|
|
396
|
+
//PJ_STUN_SC_STALE_CREDENTIALS = 430, /**< Stale Credentials */
|
|
397
|
+
//PJ_STUN_SC_INTEGRITY_CHECK_FAILURE= 431, /**< Integrity Chk Fail */
|
|
398
|
+
//PJ_STUN_SC_MISSING_USERNAME = 432, /**< Missing Username */
|
|
399
|
+
//PJ_STUN_SC_USE_TLS = 433, /**< Use TLS */
|
|
400
|
+
//PJ_STUN_SC_MISSING_REALM = 434, /**< Missing Realm */
|
|
401
|
+
//PJ_STUN_SC_MISSING_NONCE = 435, /**< Missing Nonce */
|
|
402
|
+
//PJ_STUN_SC_UNKNOWN_USERNAME = 436, /**< Unknown Username */
|
|
403
|
+
#endif
|
|
404
|
+
PJ_STUN_SC_ALLOCATION_MISMATCH = 437, /**< TURN Alloc Mismatch */
|
|
405
|
+
PJ_STUN_SC_STALE_NONCE = 438, /**< Stale Nonce */
|
|
406
|
+
PJ_STUN_SC_TRANSITIONING = 439, /**< Transitioning. */
|
|
407
|
+
PJ_STUN_SC_WRONG_CREDENTIALS = 441, /**< TURN Wrong Credentials */
|
|
408
|
+
PJ_STUN_SC_UNSUPP_TRANSPORT_PROTO = 442, /**< Unsupported Transport or
|
|
409
|
+
Protocol (TURN) */
|
|
410
|
+
PJ_STUN_SC_OPER_TCP_ONLY = 445, /**< Operation for TCP Only */
|
|
411
|
+
PJ_STUN_SC_CONNECTION_FAILURE = 446, /**< Connection Failure */
|
|
412
|
+
PJ_STUN_SC_CONNECTION_TIMEOUT = 447, /**< Connection Timeout */
|
|
413
|
+
PJ_STUN_SC_ALLOCATION_QUOTA_REACHED = 486, /**< Allocation Quota Reached
|
|
414
|
+
(TURN) */
|
|
415
|
+
PJ_STUN_SC_ROLE_CONFLICT = 487, /**< Role Conflict */
|
|
416
|
+
PJ_STUN_SC_SERVER_ERROR = 500, /**< Server Error */
|
|
417
|
+
PJ_STUN_SC_INSUFFICIENT_CAPACITY = 508, /**< Insufficient Capacity
|
|
418
|
+
(TURN) */
|
|
419
|
+
PJ_STUN_SC_GLOBAL_FAILURE = 600 /**< Global Failure */
|
|
420
|
+
} pj_stun_status;
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* This structure describes STUN message header. A STUN message has the
|
|
425
|
+
* following format:
|
|
426
|
+
*
|
|
427
|
+
* \verbatim
|
|
428
|
+
|
|
429
|
+
0 1 2 3
|
|
430
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
431
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
432
|
+
|0 0| STUN Message Type | Message Length |
|
|
433
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
434
|
+
| Magic Cookie |
|
|
435
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
436
|
+
|
|
|
437
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
438
|
+
Transaction ID
|
|
439
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
440
|
+
|
|
|
441
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
442
|
+
|
|
443
|
+
\endverbatim
|
|
444
|
+
*/
|
|
445
|
+
#pragma pack(1)
|
|
446
|
+
typedef struct pj_stun_msg_hdr
|
|
447
|
+
{
|
|
448
|
+
/**
|
|
449
|
+
* STUN message type, which the first two bits must be zeroes.
|
|
450
|
+
*/
|
|
451
|
+
pj_uint16_t type;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The message length is the size, in bytes, of the message not
|
|
455
|
+
* including the 20 byte STUN header.
|
|
456
|
+
*/
|
|
457
|
+
pj_uint16_t length;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* The magic cookie is a fixed value, 0x2112A442 (PJ_STUN_MAGIC constant).
|
|
461
|
+
* In the previous version of this specification [15] this field was part
|
|
462
|
+
* of the transaction ID.
|
|
463
|
+
*/
|
|
464
|
+
pj_uint32_t magic;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* The transaction ID is a 96 bit identifier. STUN transactions are
|
|
468
|
+
* identified by their unique 96-bit transaction ID. For request/
|
|
469
|
+
* response transactions, the transaction ID is chosen by the STUN
|
|
470
|
+
* client and MUST be unique for each new STUN transaction generated by
|
|
471
|
+
* that STUN client. The transaction ID MUST be uniformly and randomly
|
|
472
|
+
* distributed between 0 and 2**96 - 1.
|
|
473
|
+
*/
|
|
474
|
+
pj_uint8_t tsx_id[12];
|
|
475
|
+
|
|
476
|
+
} pj_stun_msg_hdr;
|
|
477
|
+
#pragma pack()
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* This structre describes STUN attribute header. Each attribute is
|
|
482
|
+
* TLV encoded, with a 16 bit type, 16 bit length, and variable value.
|
|
483
|
+
* Each STUN attribute ends on a 32 bit boundary:
|
|
484
|
+
*
|
|
485
|
+
* \verbatim
|
|
486
|
+
|
|
487
|
+
0 1 2 3
|
|
488
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
489
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
490
|
+
| Type | Length |
|
|
491
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
492
|
+
|
|
493
|
+
\endverbatim
|
|
494
|
+
*/
|
|
495
|
+
#pragma pack(1)
|
|
496
|
+
typedef struct pj_stun_attr_hdr
|
|
497
|
+
{
|
|
498
|
+
/**
|
|
499
|
+
* STUN attribute type.
|
|
500
|
+
*/
|
|
501
|
+
pj_uint16_t type;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* The Length refers to the length of the actual useful content of the
|
|
505
|
+
* Value portion of the attribute, measured in bytes. The value
|
|
506
|
+
* in the Length field refers to the length of the Value part of the
|
|
507
|
+
* attribute prior to padding - i.e., the useful content.
|
|
508
|
+
*/
|
|
509
|
+
pj_uint16_t length;
|
|
510
|
+
|
|
511
|
+
} pj_stun_attr_hdr;
|
|
512
|
+
#pragma pack()
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* This structure describes STUN generic IP address attribute, used for
|
|
517
|
+
* example to represent STUN MAPPED-ADDRESS attribute.
|
|
518
|
+
*
|
|
519
|
+
* The generic IP address attribute indicates the transport address.
|
|
520
|
+
* It consists of an eight bit address family, and a sixteen bit port,
|
|
521
|
+
* followed by a fixed length value representing the IP address. If the
|
|
522
|
+
* address family is IPv4, the address is 32 bits, in network byte
|
|
523
|
+
* order. If the address family is IPv6, the address is 128 bits in
|
|
524
|
+
* network byte order.
|
|
525
|
+
*
|
|
526
|
+
* The format of the generic IP address attribute is:
|
|
527
|
+
*
|
|
528
|
+
* \verbatim
|
|
529
|
+
|
|
530
|
+
0 1 2 3
|
|
531
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
532
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
533
|
+
|x x x x x x x x| Family | Port |
|
|
534
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
535
|
+
| Address (variable)
|
|
536
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
537
|
+
|
|
538
|
+
\endverbatim
|
|
539
|
+
*/
|
|
540
|
+
typedef struct pj_stun_sockaddr_attr
|
|
541
|
+
{
|
|
542
|
+
/**
|
|
543
|
+
* Standard STUN attribute header.
|
|
544
|
+
*/
|
|
545
|
+
pj_stun_attr_hdr hdr;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Flag to indicate whether this attribute should be sent in XOR-ed
|
|
549
|
+
* format, or has been received in XOR-ed format.
|
|
550
|
+
*/
|
|
551
|
+
pj_bool_t xor_ed;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* The socket address
|
|
555
|
+
*/
|
|
556
|
+
pj_sockaddr sockaddr;
|
|
557
|
+
|
|
558
|
+
} pj_stun_sockaddr_attr;
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* This structure represents a generic STUN attributes with no payload,
|
|
563
|
+
* and it is used for example by ICE USE-CANDIDATE attribute.
|
|
564
|
+
*/
|
|
565
|
+
typedef struct pj_stun_empty_attr
|
|
566
|
+
{
|
|
567
|
+
/**
|
|
568
|
+
* Standard STUN attribute header.
|
|
569
|
+
*/
|
|
570
|
+
pj_stun_attr_hdr hdr;
|
|
571
|
+
|
|
572
|
+
} pj_stun_empty_attr;
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* This structure represents generic STUN string attributes, such as STUN
|
|
577
|
+
* USERNAME, PASSWORD, SOFTWARE, REALM, and NONCE attributes.
|
|
578
|
+
*/
|
|
579
|
+
typedef struct pj_stun_string_attr
|
|
580
|
+
{
|
|
581
|
+
/**
|
|
582
|
+
* Standard STUN attribute header.
|
|
583
|
+
*/
|
|
584
|
+
pj_stun_attr_hdr hdr;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* The string value.
|
|
588
|
+
*/
|
|
589
|
+
pj_str_t value;
|
|
590
|
+
|
|
591
|
+
} pj_stun_string_attr;
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* This structure represents a generic STUN attributes with 32bit (unsigned)
|
|
596
|
+
* integer value, such as STUN FINGERPRINT and REFRESH-INTERVAL attributes.
|
|
597
|
+
*/
|
|
598
|
+
typedef struct pj_stun_uint_attr
|
|
599
|
+
{
|
|
600
|
+
/**
|
|
601
|
+
* Standard STUN attribute header.
|
|
602
|
+
*/
|
|
603
|
+
pj_stun_attr_hdr hdr;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* The 32bit value, in host byte order.
|
|
607
|
+
*/
|
|
608
|
+
pj_uint32_t value;
|
|
609
|
+
|
|
610
|
+
} pj_stun_uint_attr;
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* This structure represents a generic STUN attributes with 64bit (unsigned)
|
|
615
|
+
* integer value, such as ICE-CONTROLLED and ICE-CONTROLLING attributes.
|
|
616
|
+
*/
|
|
617
|
+
typedef struct pj_stun_uint64_attr
|
|
618
|
+
{
|
|
619
|
+
/**
|
|
620
|
+
* Standard STUN attribute header.
|
|
621
|
+
*/
|
|
622
|
+
pj_stun_attr_hdr hdr;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* The 64bit value, in host byte order, represented with pj_timestamp.
|
|
626
|
+
*/
|
|
627
|
+
pj_timestamp value;
|
|
628
|
+
|
|
629
|
+
} pj_stun_uint64_attr;
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* This structure represents generic STUN attributes to hold a raw binary
|
|
634
|
+
* data.
|
|
635
|
+
*/
|
|
636
|
+
typedef struct pj_stun_binary_attr
|
|
637
|
+
{
|
|
638
|
+
/**
|
|
639
|
+
* Standard STUN attribute header.
|
|
640
|
+
*/
|
|
641
|
+
pj_stun_attr_hdr hdr;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Special signature to indicate that this is a valid attribute even
|
|
645
|
+
* though we don't have meta-data to describe this attribute.
|
|
646
|
+
*/
|
|
647
|
+
pj_uint32_t magic;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Length of the data.
|
|
651
|
+
*/
|
|
652
|
+
unsigned length;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The raw data.
|
|
656
|
+
*/
|
|
657
|
+
pj_uint8_t *data;
|
|
658
|
+
|
|
659
|
+
} pj_stun_binary_attr;
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* This structure describes STUN MESSAGE-INTEGRITY attribute.
|
|
664
|
+
* The MESSAGE-INTEGRITY attribute contains an HMAC-SHA1 [10] of the
|
|
665
|
+
* STUN message. The MESSAGE-INTEGRITY attribute can be present in any
|
|
666
|
+
* STUN message type. Since it uses the SHA1 hash, the HMAC will be 20
|
|
667
|
+
* bytes.
|
|
668
|
+
*/
|
|
669
|
+
typedef struct pj_stun_msgint_attr
|
|
670
|
+
{
|
|
671
|
+
/**
|
|
672
|
+
* Standard STUN attribute header.
|
|
673
|
+
*/
|
|
674
|
+
pj_stun_attr_hdr hdr;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* The 20 bytes hmac value.
|
|
678
|
+
*/
|
|
679
|
+
pj_uint8_t hmac[20];
|
|
680
|
+
|
|
681
|
+
} pj_stun_msgint_attr;
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* This structure describes STUN FINGERPRINT attribute. The FINGERPRINT
|
|
686
|
+
* attribute can be present in all STUN messages. It is computed as
|
|
687
|
+
* the CRC-32 of the STUN message up to (but excluding) the FINGERPRINT
|
|
688
|
+
* attribute itself, xor-d with the 32 bit value 0x5354554e
|
|
689
|
+
*/
|
|
690
|
+
typedef struct pj_stun_uint_attr pj_stun_fingerprint_attr;
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* This structure represents STUN ERROR-CODE attribute. The ERROR-CODE
|
|
695
|
+
* attribute is present in the Binding Error Response and Shared Secret
|
|
696
|
+
* Error Response. It is a numeric value in the range of 100 to 699
|
|
697
|
+
* plus a textual reason phrase encoded in UTF-8
|
|
698
|
+
*
|
|
699
|
+
* \verbatim
|
|
700
|
+
|
|
701
|
+
0 1 2 3
|
|
702
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
703
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
704
|
+
| 0 |Class| Number |
|
|
705
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
706
|
+
| Reason Phrase (variable) ..
|
|
707
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
708
|
+
|
|
709
|
+
\endverbatim
|
|
710
|
+
*/
|
|
711
|
+
typedef struct pj_stun_errcode_attr
|
|
712
|
+
{
|
|
713
|
+
/**
|
|
714
|
+
* Standard STUN attribute header.
|
|
715
|
+
*/
|
|
716
|
+
pj_stun_attr_hdr hdr;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* STUN error code.
|
|
720
|
+
*/
|
|
721
|
+
int err_code;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* The reason phrase.
|
|
725
|
+
*/
|
|
726
|
+
pj_str_t reason;
|
|
727
|
+
|
|
728
|
+
} pj_stun_errcode_attr;
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* This describes STUN REALM attribute.
|
|
733
|
+
* The REALM attribute is present in requests and responses. It
|
|
734
|
+
* contains text which meets the grammar for "realm" as described in RFC
|
|
735
|
+
* 3261 [11], and will thus contain a quoted string (including the
|
|
736
|
+
* quotes).
|
|
737
|
+
*/
|
|
738
|
+
typedef struct pj_stun_string_attr pj_stun_realm_attr;
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* This describes STUN NONCE attribute.
|
|
743
|
+
* The NONCE attribute is present in requests and in error responses.
|
|
744
|
+
* It contains a sequence of qdtext or quoted-pair, which are defined in
|
|
745
|
+
* RFC 3261 [11]. See RFC 2617 [7] for guidance on selection of nonce
|
|
746
|
+
* values in a server.
|
|
747
|
+
*/
|
|
748
|
+
typedef struct pj_stun_string_attr pj_stun_nonce_attr;
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* This describes STUN UNKNOWN-ATTRIBUTES attribute.
|
|
753
|
+
* The UNKNOWN-ATTRIBUTES attribute is present only in an error response
|
|
754
|
+
* when the response code in the ERROR-CODE attribute is 420.
|
|
755
|
+
* The attribute contains a list of 16 bit values, each of which
|
|
756
|
+
* represents an attribute type that was not understood by the server.
|
|
757
|
+
* If the number of unknown attributes is an odd number, one of the
|
|
758
|
+
* attributes MUST be repeated in the list, so that the total length of
|
|
759
|
+
* the list is a multiple of 4 bytes.
|
|
760
|
+
*/
|
|
761
|
+
typedef struct pj_stun_unknown_attr
|
|
762
|
+
{
|
|
763
|
+
/**
|
|
764
|
+
* Standard STUN attribute header.
|
|
765
|
+
*/
|
|
766
|
+
pj_stun_attr_hdr hdr;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Number of unknown attributes in the array.
|
|
770
|
+
*/
|
|
771
|
+
unsigned attr_count;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Array of unknown attribute IDs.
|
|
775
|
+
*/
|
|
776
|
+
pj_uint16_t attrs[PJ_STUN_MAX_ATTR];
|
|
777
|
+
|
|
778
|
+
} pj_stun_unknown_attr;
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* This structure describes STUN MAPPED-ADDRESS attribute.
|
|
783
|
+
* The MAPPED-ADDRESS attribute indicates the mapped transport address.
|
|
784
|
+
*/
|
|
785
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_mapped_addr_attr;
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* This describes STUN XOR-MAPPED-ADDRESS attribute (which has the same
|
|
790
|
+
* format as STUN MAPPED-ADDRESS attribute).
|
|
791
|
+
* The XOR-MAPPED-ADDRESS attribute is present in responses. It
|
|
792
|
+
* provides the same information that would present in the MAPPED-
|
|
793
|
+
* ADDRESS attribute but because the NAT's public IP address is
|
|
794
|
+
* obfuscated through the XOR function, STUN messages are able to pass
|
|
795
|
+
* through NATs which would otherwise interfere with STUN.
|
|
796
|
+
*/
|
|
797
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_xor_mapped_addr_attr;
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* This describes STUN SOFTWARE attribute.
|
|
802
|
+
* The SOFTWARE attribute contains a textual description of the software
|
|
803
|
+
* being used by the agent sending the message. It is used by clients
|
|
804
|
+
* and servers. Its value SHOULD include manufacturer and version
|
|
805
|
+
* number. */
|
|
806
|
+
typedef struct pj_stun_string_attr pj_stun_software_attr;
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* This describes STUN ALTERNATE-SERVER attribute.
|
|
811
|
+
* The alternate server represents an alternate transport address for a
|
|
812
|
+
* different STUN server to try. It is encoded in the same way as
|
|
813
|
+
* MAPPED-ADDRESS.
|
|
814
|
+
*/
|
|
815
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_alt_server_attr;
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* This describes STUN REFRESH-INTERVAL attribute.
|
|
820
|
+
* The REFRESH-INTERVAL indicates the number of milliseconds that the
|
|
821
|
+
* server suggests the client should use between refreshes of the NAT
|
|
822
|
+
* bindings between the client and server.
|
|
823
|
+
*/
|
|
824
|
+
typedef struct pj_stun_uint_attr pj_stun_refresh_interval_attr;
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* This structure describes STUN RESPONSE-ADDRESS attribute.
|
|
829
|
+
* The RESPONSE-ADDRESS attribute indicates where the response to a
|
|
830
|
+
* Binding Request should be sent. Its syntax is identical to MAPPED-
|
|
831
|
+
* ADDRESS.
|
|
832
|
+
*
|
|
833
|
+
* Note that the usage of this attribute has been deprecated by the
|
|
834
|
+
* RFC 3489-bis standard.
|
|
835
|
+
*/
|
|
836
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_response_addr_attr;
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* This structure describes STUN CHANGED-ADDRESS attribute.
|
|
841
|
+
* The CHANGED-ADDRESS attribute indicates the IP address and port where
|
|
842
|
+
* responses would have been sent from if the "change IP" and "change
|
|
843
|
+
* port" flags had been set in the CHANGE-REQUEST attribute of the
|
|
844
|
+
* Binding Request. The attribute is always present in a Binding
|
|
845
|
+
* Response, independent of the value of the flags. Its syntax is
|
|
846
|
+
* identical to MAPPED-ADDRESS.
|
|
847
|
+
*
|
|
848
|
+
* Note that the usage of this attribute has been deprecated by the
|
|
849
|
+
* RFC 3489-bis standard.
|
|
850
|
+
*/
|
|
851
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_changed_addr_attr;
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* This structure describes STUN CHANGE-REQUEST attribute.
|
|
856
|
+
* The CHANGE-REQUEST attribute is used by the client to request that
|
|
857
|
+
* the server use a different address and/or port when sending the
|
|
858
|
+
* response.
|
|
859
|
+
*
|
|
860
|
+
* Bit 29 of the value is the "change IP" flag. If true, it requests
|
|
861
|
+
* the server to send the Binding Response with a different IP address
|
|
862
|
+
* than the one the Binding Request was received on.
|
|
863
|
+
*
|
|
864
|
+
* Bit 30 of the value is the "change port" flag. If true, it requests
|
|
865
|
+
* the server to send the Binding Response with a different port than
|
|
866
|
+
* the one the Binding Request was received on.
|
|
867
|
+
*
|
|
868
|
+
* Note that the usage of this attribute has been deprecated by the
|
|
869
|
+
* RFC 3489-bis standard.
|
|
870
|
+
*/
|
|
871
|
+
typedef struct pj_stun_uint_attr pj_stun_change_request_attr;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* This structure describes STUN SOURCE-ADDRESS attribute.
|
|
875
|
+
* The SOURCE-ADDRESS attribute is present in Binding Responses. It
|
|
876
|
+
* indicates the source IP address and port that the server is sending
|
|
877
|
+
* the response from. Its syntax is identical to that of MAPPED-
|
|
878
|
+
* ADDRESS.
|
|
879
|
+
*
|
|
880
|
+
* Note that the usage of this attribute has been deprecated by the
|
|
881
|
+
* RFC 3489-bis standard.
|
|
882
|
+
*/
|
|
883
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_src_addr_attr;
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* This describes the STUN REFLECTED-FROM attribute.
|
|
888
|
+
* The REFLECTED-FROM attribute is present only in Binding Responses,
|
|
889
|
+
* when the Binding Request contained a RESPONSE-ADDRESS attribute. The
|
|
890
|
+
* attribute contains the identity (in terms of IP address) of the
|
|
891
|
+
* source where the request came from. Its purpose is to provide
|
|
892
|
+
* traceability, so that a STUN server cannot be used as a reflector for
|
|
893
|
+
* denial-of-service attacks.
|
|
894
|
+
*/
|
|
895
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_reflected_from_attr;
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* This describes STUN USERNAME attribute.
|
|
900
|
+
* The USERNAME attribute is used for message integrity. It identifies
|
|
901
|
+
* the shared secret used in the message integrity check. Consequently,
|
|
902
|
+
* the USERNAME MUST be included in any request that contains the
|
|
903
|
+
* MESSAGE-INTEGRITY attribute.
|
|
904
|
+
*/
|
|
905
|
+
typedef struct pj_stun_string_attr pj_stun_username_attr;
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* This describes STUN PASSWORD attribute.
|
|
910
|
+
* If the message type is Shared Secret Response it MUST include the
|
|
911
|
+
* PASSWORD attribute.
|
|
912
|
+
*/
|
|
913
|
+
typedef struct pj_stun_string_attr pj_stun_password_attr;
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* This describes TURN CHANNEL-NUMBER attribute. In this library,
|
|
918
|
+
* this attribute is represented with 32bit integer. Application may
|
|
919
|
+
* use #PJ_STUN_GET_CH_NB() and #PJ_STUN_SET_CH_NB() to extract/set
|
|
920
|
+
* channel number value from the 32bit integral value.
|
|
921
|
+
*
|
|
922
|
+
* The CHANNEL-NUMBER attribute contains the number of the channel.
|
|
923
|
+
* It is a 16-bit unsigned integer, followed by a two-octet RFFU field
|
|
924
|
+
* which MUST be set to 0 on transmission and ignored on reception.
|
|
925
|
+
|
|
926
|
+
\verbatim
|
|
927
|
+
0 1 2 3
|
|
928
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
929
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
930
|
+
| Channel Number | RFFU |
|
|
931
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
932
|
+
\endverbatim
|
|
933
|
+
*/
|
|
934
|
+
typedef struct pj_stun_uint_attr pj_stun_channel_number_attr;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Get 16bit channel number from 32bit integral value.
|
|
938
|
+
* Note that uint32 attributes are always stored in host byte order
|
|
939
|
+
* after they have been parsed from the PDU, so no need to do ntohs()
|
|
940
|
+
* here.
|
|
941
|
+
*/
|
|
942
|
+
#define PJ_STUN_GET_CH_NB(u32) ((pj_uint16_t)(u32>>16))
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Convert 16bit channel number into 32bit integral value.
|
|
946
|
+
* Note that uint32 attributes will be converted to network byte order
|
|
947
|
+
* when the attribute is written to packet, so no need to do htons()
|
|
948
|
+
* here.
|
|
949
|
+
*/
|
|
950
|
+
#define PJ_STUN_SET_CH_NB(chnum) (((pj_uint32_t)chnum) << 16)
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* This describes STUN LIFETIME attribute.
|
|
955
|
+
* The lifetime attribute represents the duration for which the server
|
|
956
|
+
* will maintain an allocation in the absence of data traffic either
|
|
957
|
+
* from or to the client. It is a 32 bit value representing the number
|
|
958
|
+
* of seconds remaining until expiration.
|
|
959
|
+
*/
|
|
960
|
+
typedef struct pj_stun_uint_attr pj_stun_lifetime_attr;
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* This describes STUN BANDWIDTH attribute.
|
|
965
|
+
* The bandwidth attribute represents the peak bandwidth, measured in
|
|
966
|
+
* kbits per second, that the client expects to use on the binding. The
|
|
967
|
+
* value represents the sum in the receive and send directions.
|
|
968
|
+
*/
|
|
969
|
+
typedef struct pj_stun_uint_attr pj_stun_bandwidth_attr;
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* This describes the STUN XOR-PEER-ADDRESS attribute.
|
|
974
|
+
* The XOR-PEER-ADDRESS specifies the address and port of the peer as seen
|
|
975
|
+
* from the TURN server. It is encoded in the same way as XOR-MAPPED-
|
|
976
|
+
* ADDRESS.
|
|
977
|
+
*/
|
|
978
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_xor_peer_addr_attr;
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* This describes the STUN DATA attribute.
|
|
983
|
+
* The DATA attribute is present in Send Indications and Data
|
|
984
|
+
* Indications. It contains raw payload data that is to be sent (in the
|
|
985
|
+
* case of a Send Request) or was received (in the case of a Data
|
|
986
|
+
* Indication)..
|
|
987
|
+
*/
|
|
988
|
+
typedef struct pj_stun_binary_attr pj_stun_data_attr;
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* This describes the STUN XOR-RELAYED-ADDRESS attribute. The
|
|
993
|
+
* XOR-RELAYED-ADDRESS is present in Allocate responses. It specifies the
|
|
994
|
+
* address and port that the server allocated to the client. It is
|
|
995
|
+
* encoded in the same way as XOR-MAPPED-ADDRESS.
|
|
996
|
+
*/
|
|
997
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_xor_relayed_addr_attr;
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* According to RFC 6156, this describes the REQUESTED-ADDRESS-FAMILY
|
|
1002
|
+
* attribute (formerly known as REQUESTED-ADDRESS-TYPE in the draft).
|
|
1003
|
+
* The REQUESTED-ADDRESS-FAMILY attribute is used by clients to request
|
|
1004
|
+
* the allocation of a specific address type from a server. The
|
|
1005
|
+
* following is the format of the REQUESTED-ADDRESS-FAMILY attribute.
|
|
1006
|
+
|
|
1007
|
+
\verbatim
|
|
1008
|
+
|
|
1009
|
+
0 1 2 3
|
|
1010
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
1011
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
1012
|
+
| Family | Reserved |
|
|
1013
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
1014
|
+
|
|
1015
|
+
\endverbatim
|
|
1016
|
+
*/
|
|
1017
|
+
typedef struct pj_stun_uint_attr pj_stun_req_addr_type_attr;
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* This describes the TURN REQUESTED-TRANSPORT attribute, encoded in
|
|
1022
|
+
* STUN generic integer attribute.
|
|
1023
|
+
*
|
|
1024
|
+
* This attribute allows the client to request that the port in the
|
|
1025
|
+
* relayed-transport-address be even, and (optionally) that the server
|
|
1026
|
+
* reserve the next-higher port number. The attribute is 8 bits long.
|
|
1027
|
+
* Its format is:
|
|
1028
|
+
|
|
1029
|
+
\verbatim
|
|
1030
|
+
0
|
|
1031
|
+
0 1 2 3 4 5 6 7
|
|
1032
|
+
+-+-+-+-+-+-+-+-+
|
|
1033
|
+
|R| RFFU |
|
|
1034
|
+
+-+-+-+-+-+-+-+-+
|
|
1035
|
+
|
|
1036
|
+
\endverbatim
|
|
1037
|
+
|
|
1038
|
+
* The attribute contains a single 1-bit flag:
|
|
1039
|
+
*
|
|
1040
|
+
* R: If 1, the server is requested to reserve the next higher port
|
|
1041
|
+
* number (on the same IP address) for a subsequent allocation. If
|
|
1042
|
+
* 0, no such reservation is requested.
|
|
1043
|
+
*
|
|
1044
|
+
* The other 7 bits of the attribute must be set to zero on transmission
|
|
1045
|
+
* and ignored on reception.
|
|
1046
|
+
*/
|
|
1047
|
+
typedef struct pj_stun_uint_attr pj_stun_even_port_attr;
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* This describes the TURN REQUESTED-TRANSPORT attribute, encoded in
|
|
1052
|
+
* STUN generic integer attribute.
|
|
1053
|
+
*
|
|
1054
|
+
* This attribute is used by the client to request a specific transport
|
|
1055
|
+
* protocol for the allocated transport address. It has the following
|
|
1056
|
+
* format:
|
|
1057
|
+
|
|
1058
|
+
\verbatim
|
|
1059
|
+
|
|
1060
|
+
0 1 2 3
|
|
1061
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
1062
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
1063
|
+
| Protocol | RFFU |
|
|
1064
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
\endverbatim
|
|
1068
|
+
|
|
1069
|
+
* The Protocol field specifies the desired protocol. The codepoints
|
|
1070
|
+
* used in this field are taken from those allowed in the Protocol field
|
|
1071
|
+
* in the IPv4 header and the NextHeader field in the IPv6 header
|
|
1072
|
+
* [Protocol-Numbers]. This specification only allows the use of
|
|
1073
|
+
* codepoint 17 (User Datagram Protocol).
|
|
1074
|
+
*
|
|
1075
|
+
* The RFFU field is set to zero on transmission and ignored on
|
|
1076
|
+
* receiption. It is reserved for future uses.
|
|
1077
|
+
*/
|
|
1078
|
+
typedef struct pj_stun_uint_attr pj_stun_req_transport_attr;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Get protocol value from 32bit TURN REQUESTED-TRANSPORT attribute.
|
|
1082
|
+
*/
|
|
1083
|
+
#define PJ_STUN_GET_RT_PROTO(u32) (u32 >> 24)
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Convert protocol value to be placed in 32bit TURN REQUESTED-TRANSPORT
|
|
1087
|
+
* attribute.
|
|
1088
|
+
*/
|
|
1089
|
+
#define PJ_STUN_SET_RT_PROTO(proto) (((pj_uint32_t)(proto)) << 24)
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* This describes the TURN DONT-FRAGMENT attribute.
|
|
1094
|
+
*
|
|
1095
|
+
* This attribute is used by the client to request that the server set
|
|
1096
|
+
* the DF (Don't Fragment) bit in the IP header when relaying the
|
|
1097
|
+
* application data onward to the peer. This attribute has no value
|
|
1098
|
+
* part and thus the attribute length field is 0.
|
|
1099
|
+
*/
|
|
1100
|
+
typedef struct pj_stun_empty_attr pj_stun_dont_fragment_attr;
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* This describes the TURN RESERVATION-TOKEN attribute.
|
|
1105
|
+
* The RESERVATION-TOKEN attribute contains a token that uniquely
|
|
1106
|
+
* identifies a relayed transport address being held in reserve by the
|
|
1107
|
+
* server. The server includes this attribute in a success response to
|
|
1108
|
+
* tell the client about the token, and the client includes this
|
|
1109
|
+
* attribute in a subsequent Allocate request to request the server use
|
|
1110
|
+
* that relayed transport address for the allocation.
|
|
1111
|
+
*
|
|
1112
|
+
* The attribute value is a 64-bit-long field containing the token
|
|
1113
|
+
* value.
|
|
1114
|
+
*/
|
|
1115
|
+
typedef struct pj_stun_uint64_attr pj_stun_res_token_attr;
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* This describes the XOR-REFLECTED-FROM attribute, as described by
|
|
1119
|
+
* draft-macdonald-behave-nat-behavior-discovery-00.
|
|
1120
|
+
* The XOR-REFLECTED-FROM attribute is used in place of the REFLECTED-
|
|
1121
|
+
* FROM attribute. It provides the same information, but because the
|
|
1122
|
+
* NAT's public address is obfuscated through the XOR function, It can
|
|
1123
|
+
* pass through a NAT that would otherwise attempt to translate it to
|
|
1124
|
+
* the private network address. XOR-REFLECTED-FROM has identical syntax
|
|
1125
|
+
* to XOR-MAPPED-ADDRESS.
|
|
1126
|
+
*/
|
|
1127
|
+
typedef struct pj_stun_sockaddr_attr pj_stun_xor_reflected_from_attr;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* This describes the PRIORITY attribute from draft-ietf-mmusic-ice-13.
|
|
1131
|
+
* The PRIORITY attribute indicates the priority that is to be
|
|
1132
|
+
* associated with a peer reflexive candidate, should one be discovered
|
|
1133
|
+
* by this check. It is a 32 bit unsigned integer, and has an attribute
|
|
1134
|
+
* type of 0x0024.
|
|
1135
|
+
*/
|
|
1136
|
+
typedef struct pj_stun_uint_attr pj_stun_priority_attr;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* This describes the USE-CANDIDATE attribute from draft-ietf-mmusic-ice-13.
|
|
1140
|
+
* The USE-CANDIDATE attribute indicates that the candidate pair
|
|
1141
|
+
* resulting from this check should be used for transmission of media.
|
|
1142
|
+
* The attribute has no content (the Length field of the attribute is
|
|
1143
|
+
* zero); it serves as a flag.
|
|
1144
|
+
*/
|
|
1145
|
+
typedef struct pj_stun_empty_attr pj_stun_use_candidate_attr;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* This describes the STUN TIMER-VAL attribute.
|
|
1149
|
+
* The TIMER-VAL attribute is used only in conjunction with the Set
|
|
1150
|
+
* Active Destination response. It conveys from the server, to the
|
|
1151
|
+
* client, the value of the timer used in the server state machine.
|
|
1152
|
+
*/
|
|
1153
|
+
typedef struct pj_stun_uint_attr pj_stun_timer_val_attr;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* This describes ICE-CONTROLLING attribute.
|
|
1157
|
+
*/
|
|
1158
|
+
typedef struct pj_stun_uint64_attr pj_stun_ice_controlling_attr;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* This describes ICE-CONTROLLED attribute.
|
|
1162
|
+
*/
|
|
1163
|
+
typedef struct pj_stun_uint64_attr pj_stun_ice_controlled_attr;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* This describes TURN ICMP attribute
|
|
1167
|
+
*/
|
|
1168
|
+
typedef struct pj_stun_uint_attr pj_stun_icmp_attr;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* This structure describes a parsed STUN message. All integral fields
|
|
1172
|
+
* in this structure (including IP addresses) will be in the host
|
|
1173
|
+
* byte order.
|
|
1174
|
+
*/
|
|
1175
|
+
typedef struct pj_stun_msg
|
|
1176
|
+
{
|
|
1177
|
+
/**
|
|
1178
|
+
* STUN message header.
|
|
1179
|
+
*/
|
|
1180
|
+
pj_stun_msg_hdr hdr;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Number of attributes in the STUN message.
|
|
1184
|
+
*/
|
|
1185
|
+
unsigned attr_count;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Array of STUN attributes.
|
|
1189
|
+
*/
|
|
1190
|
+
pj_stun_attr_hdr *attr[PJ_STUN_MAX_ATTR];
|
|
1191
|
+
|
|
1192
|
+
} pj_stun_msg;
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
/** STUN decoding options */
|
|
1196
|
+
enum pj_stun_decode_options
|
|
1197
|
+
{
|
|
1198
|
+
/**
|
|
1199
|
+
* Tell the decoder that the message was received from datagram
|
|
1200
|
+
* oriented transport (such as UDP).
|
|
1201
|
+
*/
|
|
1202
|
+
PJ_STUN_IS_DATAGRAM = 1,
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Tell pj_stun_msg_decode() to check the validity of the STUN
|
|
1206
|
+
* message by calling pj_stun_msg_check() before starting to
|
|
1207
|
+
* decode the packet.
|
|
1208
|
+
*/
|
|
1209
|
+
PJ_STUN_CHECK_PACKET = 2,
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* This option current is only valid for #pj_stun_session_on_rx_pkt().
|
|
1213
|
+
* When specified, it tells the session NOT to authenticate the
|
|
1214
|
+
* message.
|
|
1215
|
+
*/
|
|
1216
|
+
PJ_STUN_NO_AUTHENTICATE = 4,
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Disable FINGERPRINT verification. This option can be used when calling
|
|
1220
|
+
* #pj_stun_msg_check() and #pj_stun_msg_decode() to disable the
|
|
1221
|
+
* verification of FINGERPRINT, for example when the STUN usage says when
|
|
1222
|
+
* FINGERPRINT mechanism shall not be used.
|
|
1223
|
+
*/
|
|
1224
|
+
PJ_STUN_NO_FINGERPRINT_CHECK = 8
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Get STUN message method name.
|
|
1230
|
+
*
|
|
1231
|
+
* @param msg_type The STUN message type (in host byte order)
|
|
1232
|
+
*
|
|
1233
|
+
* @return The STUN message method name string.
|
|
1234
|
+
*/
|
|
1235
|
+
PJ_DECL(const char*) pj_stun_get_method_name(unsigned msg_type);
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Get STUN message class name.
|
|
1240
|
+
*
|
|
1241
|
+
* @param msg_type The STUN message type (in host byte order)
|
|
1242
|
+
*
|
|
1243
|
+
* @return The STUN message class name string.
|
|
1244
|
+
*/
|
|
1245
|
+
PJ_DECL(const char*) pj_stun_get_class_name(unsigned msg_type);
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Get STUN attribute name.
|
|
1250
|
+
*
|
|
1251
|
+
* @return attr_type The STUN attribute type (in host byte order).
|
|
1252
|
+
*
|
|
1253
|
+
* @return The STUN attribute type name string.
|
|
1254
|
+
*/
|
|
1255
|
+
PJ_DECL(const char*) pj_stun_get_attr_name(unsigned attr_type);
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Get STUN standard reason phrase for the specified error code.
|
|
1260
|
+
*
|
|
1261
|
+
* @param err_code The STUN error code.
|
|
1262
|
+
*
|
|
1263
|
+
* @return The STUN error reason phrase.
|
|
1264
|
+
*/
|
|
1265
|
+
PJ_DECL(pj_str_t) pj_stun_get_err_reason(int err_code);
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Internal: set the padding character for string attribute.
|
|
1270
|
+
* The default padding character is PJ_STUN_STRING_ATTR_PAD_CHR.
|
|
1271
|
+
*
|
|
1272
|
+
* @return The previous padding character.
|
|
1273
|
+
*/
|
|
1274
|
+
PJ_DECL(int) pj_stun_set_padding_char(int chr);
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Initialize a generic STUN message.
|
|
1279
|
+
*
|
|
1280
|
+
* @param msg The message structure to be initialized.
|
|
1281
|
+
* @param msg_type The 14bit message type (see pj_stun_msg_type
|
|
1282
|
+
* constants).
|
|
1283
|
+
* @param magic Magic value to be put to the mesage; for requests,
|
|
1284
|
+
* the value normally should be PJ_STUN_MAGIC.
|
|
1285
|
+
* @param tsx_id Optional transaction ID, or NULL to let the
|
|
1286
|
+
* function generates a random transaction ID.
|
|
1287
|
+
*
|
|
1288
|
+
* @return PJ_SUCCESS on success.
|
|
1289
|
+
*/
|
|
1290
|
+
PJ_DECL(pj_status_t) pj_stun_msg_init(pj_stun_msg *msg,
|
|
1291
|
+
unsigned msg_type,
|
|
1292
|
+
pj_uint32_t magic,
|
|
1293
|
+
const pj_uint8_t tsx_id[12]);
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Create a generic STUN message.
|
|
1297
|
+
*
|
|
1298
|
+
* @param pool Pool to create the STUN message.
|
|
1299
|
+
* @param msg_type The 14bit message type.
|
|
1300
|
+
* @param magic Magic value to be put to the mesage; for requests,
|
|
1301
|
+
* the value should be PJ_STUN_MAGIC.
|
|
1302
|
+
* @param tsx_id Optional transaction ID, or NULL to let the
|
|
1303
|
+
* function generates a random transaction ID.
|
|
1304
|
+
* @param p_msg Pointer to receive the message.
|
|
1305
|
+
*
|
|
1306
|
+
* @return PJ_SUCCESS on success.
|
|
1307
|
+
*/
|
|
1308
|
+
PJ_DECL(pj_status_t) pj_stun_msg_create(pj_pool_t *pool,
|
|
1309
|
+
unsigned msg_type,
|
|
1310
|
+
pj_uint32_t magic,
|
|
1311
|
+
const pj_uint8_t tsx_id[12],
|
|
1312
|
+
pj_stun_msg **p_msg);
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Clone a STUN message with all of its attributes.
|
|
1316
|
+
*
|
|
1317
|
+
* @param pool Pool to allocate memory for the new message.
|
|
1318
|
+
* @param msg The message to be cloned.
|
|
1319
|
+
*
|
|
1320
|
+
* @return The duplicate message.
|
|
1321
|
+
*/
|
|
1322
|
+
PJ_DECL(pj_stun_msg*) pj_stun_msg_clone(pj_pool_t *pool,
|
|
1323
|
+
const pj_stun_msg *msg);
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Create STUN response message.
|
|
1327
|
+
*
|
|
1328
|
+
* @param pool Pool to create the mesage.
|
|
1329
|
+
* @param req_msg The request message.
|
|
1330
|
+
* @param err_code STUN error code. If this value is not zero,
|
|
1331
|
+
* then error response will be created, otherwise
|
|
1332
|
+
* successful response will be created.
|
|
1333
|
+
* @param err_msg Optional error message to explain err_code.
|
|
1334
|
+
* If this value is NULL and err_code is not zero,
|
|
1335
|
+
* the error string will be taken from the default
|
|
1336
|
+
* STUN error message.
|
|
1337
|
+
* @param p_response Pointer to receive the response.
|
|
1338
|
+
*
|
|
1339
|
+
* @return PJ_SUCCESS on success, or the appropriate error.
|
|
1340
|
+
*/
|
|
1341
|
+
PJ_DECL(pj_status_t) pj_stun_msg_create_response(pj_pool_t *pool,
|
|
1342
|
+
const pj_stun_msg *req_msg,
|
|
1343
|
+
unsigned err_code,
|
|
1344
|
+
const pj_str_t *err_msg,
|
|
1345
|
+
pj_stun_msg **p_response);
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Add STUN attribute to STUN message.
|
|
1350
|
+
*
|
|
1351
|
+
* @param msg The STUN message.
|
|
1352
|
+
* @param attr The STUN attribute to be added to the message.
|
|
1353
|
+
*
|
|
1354
|
+
* @return PJ_SUCCESS on success, or PJ_ETOOMANY if there are
|
|
1355
|
+
* already too many attributes in the message.
|
|
1356
|
+
*/
|
|
1357
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_attr(pj_stun_msg *msg,
|
|
1358
|
+
pj_stun_attr_hdr *attr);
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Print the STUN message structure to a packet buffer, ready to be
|
|
1363
|
+
* sent to remote destination. This function will take care about
|
|
1364
|
+
* calculating the MESSAGE-INTEGRITY digest as well as FINGERPRINT
|
|
1365
|
+
* value, if these attributes are present in the message.
|
|
1366
|
+
*
|
|
1367
|
+
* If application wants to apply credential to the message, it MUST
|
|
1368
|
+
* include a blank MESSAGE-INTEGRITY attribute in the message as the
|
|
1369
|
+
* last attribute or the attribute before FINGERPRINT. This function will
|
|
1370
|
+
* calculate the HMAC digest from the message using the supplied key in
|
|
1371
|
+
* the parameter. The key should be set to the password if short term
|
|
1372
|
+
* credential is used, or calculated from the MD5 hash of the realm,
|
|
1373
|
+
* username, and password using #pj_stun_create_key() if long term
|
|
1374
|
+
* credential is used.
|
|
1375
|
+
*
|
|
1376
|
+
* If FINGERPRINT attribute is present, this function will calculate
|
|
1377
|
+
* the FINGERPRINT CRC attribute for the message. The FINGERPRINT MUST
|
|
1378
|
+
* be added as the last attribute of the message.
|
|
1379
|
+
*
|
|
1380
|
+
* @param msg The STUN message to be printed. Upon return,
|
|
1381
|
+
* some fields in the header (such as message
|
|
1382
|
+
* length) will be updated.
|
|
1383
|
+
* @param pkt_buf The buffer to be filled with the packet.
|
|
1384
|
+
* @param buf_size Size of the buffer.
|
|
1385
|
+
* @param options Options, which currently must be zero.
|
|
1386
|
+
* @param key Authentication key to calculate MESSAGE-INTEGRITY
|
|
1387
|
+
* value. Application can create this key by using
|
|
1388
|
+
* #pj_stun_create_key() function.
|
|
1389
|
+
* @param p_msg_len Upon return, it will be filed with the size of
|
|
1390
|
+
* the packet in bytes, or negative value on error.
|
|
1391
|
+
*
|
|
1392
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1393
|
+
*/
|
|
1394
|
+
PJ_DECL(pj_status_t) pj_stun_msg_encode(pj_stun_msg *msg,
|
|
1395
|
+
pj_uint8_t *pkt_buf,
|
|
1396
|
+
pj_size_t buf_size,
|
|
1397
|
+
unsigned options,
|
|
1398
|
+
const pj_str_t *key,
|
|
1399
|
+
pj_size_t *p_msg_len);
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Check that the PDU is potentially a valid STUN message. This function
|
|
1403
|
+
* is useful when application needs to multiplex STUN packets with other
|
|
1404
|
+
* application traffic. When this function returns PJ_SUCCESS, there is a
|
|
1405
|
+
* big chance that the packet is a STUN packet.
|
|
1406
|
+
*
|
|
1407
|
+
* Note that we cannot be sure that the PDU is a really valid STUN message
|
|
1408
|
+
* until we actually parse the PDU.
|
|
1409
|
+
*
|
|
1410
|
+
* @param pdu The packet buffer.
|
|
1411
|
+
* @param pdu_len The length of the packet buffer.
|
|
1412
|
+
* @param options Additional options to be applied in the checking,
|
|
1413
|
+
* which can be taken from pj_stun_decode_options. One
|
|
1414
|
+
* of the useful option is PJ_STUN_IS_DATAGRAM which
|
|
1415
|
+
* means that the pdu represents a whole STUN packet.
|
|
1416
|
+
*
|
|
1417
|
+
* @return PJ_SUCCESS if the PDU is a potentially valid STUN
|
|
1418
|
+
* message.
|
|
1419
|
+
*/
|
|
1420
|
+
PJ_DECL(pj_status_t) pj_stun_msg_check(const pj_uint8_t *pdu,
|
|
1421
|
+
pj_size_t pdu_len, unsigned options);
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Decode incoming packet into STUN message.
|
|
1426
|
+
*
|
|
1427
|
+
* @param pool Pool to allocate the message.
|
|
1428
|
+
* @param pdu The incoming packet to be parsed.
|
|
1429
|
+
* @param pdu_len The length of the incoming packet.
|
|
1430
|
+
* @param options Parsing flags, according to pj_stun_decode_options.
|
|
1431
|
+
* @param p_msg Pointer to receive the parsed message.
|
|
1432
|
+
* @param p_parsed_len Optional pointer to receive how many bytes have
|
|
1433
|
+
* been parsed for the STUN message. This is useful
|
|
1434
|
+
* when the packet is received over stream oriented
|
|
1435
|
+
* transport.
|
|
1436
|
+
* @param p_response Optional pointer to receive an instance of response
|
|
1437
|
+
* message, if one can be created. If the packet being
|
|
1438
|
+
* decoded is a request message, and it contains error,
|
|
1439
|
+
* and a response can be created, then the STUN
|
|
1440
|
+
* response message will be returned on this argument.
|
|
1441
|
+
*
|
|
1442
|
+
* @return PJ_SUCCESS if a STUN message has been successfully
|
|
1443
|
+
* decoded.
|
|
1444
|
+
*/
|
|
1445
|
+
PJ_DECL(pj_status_t) pj_stun_msg_decode(pj_pool_t *pool,
|
|
1446
|
+
const pj_uint8_t *pdu,
|
|
1447
|
+
pj_size_t pdu_len,
|
|
1448
|
+
unsigned options,
|
|
1449
|
+
pj_stun_msg **p_msg,
|
|
1450
|
+
pj_size_t *p_parsed_len,
|
|
1451
|
+
pj_stun_msg **p_response);
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Dump STUN message to a printable string output.
|
|
1455
|
+
*
|
|
1456
|
+
* @param msg The STUN message
|
|
1457
|
+
* @param buffer Buffer where the printable string output will
|
|
1458
|
+
* be printed on.
|
|
1459
|
+
* @param length Specify the maximum length of the buffer.
|
|
1460
|
+
* @param printed_len Optional pointer, which on output will be filled
|
|
1461
|
+
* up with the actual length of the output string.
|
|
1462
|
+
*
|
|
1463
|
+
* @return The message string output.
|
|
1464
|
+
*/
|
|
1465
|
+
#if PJ_LOG_MAX_LEVEL > 0
|
|
1466
|
+
PJ_DECL(char*) pj_stun_msg_dump(const pj_stun_msg *msg,
|
|
1467
|
+
char *buffer,
|
|
1468
|
+
unsigned length,
|
|
1469
|
+
unsigned *printed_len);
|
|
1470
|
+
#else
|
|
1471
|
+
# define pj_stun_msg_dump(msg, buf, length, printed_len) ""
|
|
1472
|
+
#endif
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Find STUN attribute in the STUN message, starting from the specified
|
|
1477
|
+
* index.
|
|
1478
|
+
*
|
|
1479
|
+
* @param msg The STUN message.
|
|
1480
|
+
* @param attr_type The attribute type to be found, from pj_stun_attr_type.
|
|
1481
|
+
* @param start_index The start index of the attribute in the message.
|
|
1482
|
+
* Specify zero to start searching from the first
|
|
1483
|
+
* attribute.
|
|
1484
|
+
*
|
|
1485
|
+
* @return The attribute instance, or NULL if it cannot be
|
|
1486
|
+
* found.
|
|
1487
|
+
*/
|
|
1488
|
+
PJ_DECL(pj_stun_attr_hdr*) pj_stun_msg_find_attr(const pj_stun_msg *msg,
|
|
1489
|
+
int attr_type,
|
|
1490
|
+
unsigned start_index);
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Clone a STUN attribute.
|
|
1495
|
+
*
|
|
1496
|
+
* @param pool Pool to allocate memory.
|
|
1497
|
+
* @param attr Attribute to clone.
|
|
1498
|
+
*
|
|
1499
|
+
* @return Duplicate attribute.
|
|
1500
|
+
*/
|
|
1501
|
+
PJ_DECL(pj_stun_attr_hdr*) pj_stun_attr_clone(pj_pool_t *pool,
|
|
1502
|
+
const pj_stun_attr_hdr *attr);
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Initialize generic STUN IP address attribute. The \a addr_len and
|
|
1507
|
+
* \a addr parameters specify whether the address is IPv4 or IPv4
|
|
1508
|
+
* address.
|
|
1509
|
+
*
|
|
1510
|
+
* @param attr The socket address attribute to initialize.
|
|
1511
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1512
|
+
* @param xor_ed If non-zero, the port and address will be XOR-ed
|
|
1513
|
+
* with magic, to make the XOR-MAPPED-ADDRESS attribute.
|
|
1514
|
+
* @param addr A pj_sockaddr_in or pj_sockaddr_in6 structure.
|
|
1515
|
+
* @param addr_len Length of \a addr parameter.
|
|
1516
|
+
*
|
|
1517
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1518
|
+
*/
|
|
1519
|
+
PJ_DECL(pj_status_t) pj_stun_sockaddr_attr_init(pj_stun_sockaddr_attr *attr,
|
|
1520
|
+
int attr_type,
|
|
1521
|
+
pj_bool_t xor_ed,
|
|
1522
|
+
const pj_sockaddr_t *addr,
|
|
1523
|
+
unsigned addr_len);
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Create a generic STUN IP address attribute. The \a addr_len and
|
|
1527
|
+
* \a addr parameters specify whether the address is IPv4 or IPv4
|
|
1528
|
+
* address.
|
|
1529
|
+
*
|
|
1530
|
+
* @param pool The pool to allocate memory from.
|
|
1531
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1532
|
+
* @param xor_ed If non-zero, the port and address will be XOR-ed
|
|
1533
|
+
* with magic, to make the XOR-MAPPED-ADDRESS attribute.
|
|
1534
|
+
* @param addr A pj_sockaddr_in or pj_sockaddr_in6 structure.
|
|
1535
|
+
* @param addr_len Length of \a addr parameter.
|
|
1536
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1537
|
+
*
|
|
1538
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1539
|
+
*/
|
|
1540
|
+
PJ_DECL(pj_status_t) pj_stun_sockaddr_attr_create(pj_pool_t *pool,
|
|
1541
|
+
int attr_type,
|
|
1542
|
+
pj_bool_t xor_ed,
|
|
1543
|
+
const pj_sockaddr_t *addr,
|
|
1544
|
+
unsigned addr_len,
|
|
1545
|
+
pj_stun_sockaddr_attr **p_attr);
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Create and add generic STUN IP address attribute to a STUN message.
|
|
1550
|
+
* The \a addr_len and \a addr parameters specify whether the address is
|
|
1551
|
+
* IPv4 or IPv4 address.
|
|
1552
|
+
*
|
|
1553
|
+
* @param pool The pool to allocate memory from.
|
|
1554
|
+
* @param msg The STUN message.
|
|
1555
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1556
|
+
* @param xor_ed If non-zero, the port and address will be XOR-ed
|
|
1557
|
+
* with magic, to make the XOR-MAPPED-ADDRESS attribute.
|
|
1558
|
+
* @param addr A pj_sockaddr_in or pj_sockaddr_in6 structure.
|
|
1559
|
+
* @param addr_len Length of \a addr parameter.
|
|
1560
|
+
*
|
|
1561
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1562
|
+
*/
|
|
1563
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_sockaddr_attr(pj_pool_t *pool,
|
|
1564
|
+
pj_stun_msg *msg,
|
|
1565
|
+
int attr_type,
|
|
1566
|
+
pj_bool_t xor_ed,
|
|
1567
|
+
const pj_sockaddr_t *addr,
|
|
1568
|
+
unsigned addr_len);
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Initialize a STUN generic string attribute.
|
|
1572
|
+
*
|
|
1573
|
+
* @param attr The string attribute to be initialized.
|
|
1574
|
+
* @param pool Pool to duplicate the value into the attribute,
|
|
1575
|
+
* if value is not NULL or empty.
|
|
1576
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1577
|
+
* @param value The string value to be assigned to the attribute.
|
|
1578
|
+
*
|
|
1579
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1580
|
+
*/
|
|
1581
|
+
PJ_DECL(pj_status_t) pj_stun_string_attr_init(pj_stun_string_attr *attr,
|
|
1582
|
+
pj_pool_t *pool,
|
|
1583
|
+
int attr_type,
|
|
1584
|
+
const pj_str_t *value);
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Create a STUN generic string attribute.
|
|
1588
|
+
*
|
|
1589
|
+
* @param pool The pool to allocate memory from.
|
|
1590
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1591
|
+
* @param value The string value to be assigned to the attribute.
|
|
1592
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1593
|
+
*
|
|
1594
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1595
|
+
*/
|
|
1596
|
+
PJ_DECL(pj_status_t) pj_stun_string_attr_create(pj_pool_t *pool,
|
|
1597
|
+
int attr_type,
|
|
1598
|
+
const pj_str_t *value,
|
|
1599
|
+
pj_stun_string_attr **p_attr);
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Create and add STUN generic string attribute to the message.
|
|
1603
|
+
*
|
|
1604
|
+
* @param pool The pool to allocate memory from.
|
|
1605
|
+
* @param msg The STUN message.
|
|
1606
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1607
|
+
* @param value The string value to be assigned to the attribute.
|
|
1608
|
+
*
|
|
1609
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1610
|
+
*/
|
|
1611
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_string_attr(pj_pool_t *pool,
|
|
1612
|
+
pj_stun_msg *msg,
|
|
1613
|
+
int attr_type,
|
|
1614
|
+
const pj_str_t *value);
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Create a STUN generic 32bit value attribute.
|
|
1618
|
+
*
|
|
1619
|
+
* @param pool The pool to allocate memory from.
|
|
1620
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1621
|
+
* @param value The 32bit value to be assigned to the attribute.
|
|
1622
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1623
|
+
*
|
|
1624
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1625
|
+
*/
|
|
1626
|
+
PJ_DECL(pj_status_t) pj_stun_uint_attr_create(pj_pool_t *pool,
|
|
1627
|
+
int attr_type,
|
|
1628
|
+
pj_uint32_t value,
|
|
1629
|
+
pj_stun_uint_attr **p_attr);
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Create and add STUN generic 32bit value attribute to the message.
|
|
1633
|
+
*
|
|
1634
|
+
* @param pool The pool to allocate memory from.
|
|
1635
|
+
* @param msg The STUN message
|
|
1636
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1637
|
+
* @param value The 32bit value to be assigned to the attribute.
|
|
1638
|
+
*
|
|
1639
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1640
|
+
*/
|
|
1641
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_uint_attr(pj_pool_t *pool,
|
|
1642
|
+
pj_stun_msg *msg,
|
|
1643
|
+
int attr_type,
|
|
1644
|
+
pj_uint32_t value);
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Create a STUN generic 64bit value attribute.
|
|
1649
|
+
*
|
|
1650
|
+
* @param pool Pool to allocate memory from.
|
|
1651
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1652
|
+
* @param value Optional value to be assigned.
|
|
1653
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1654
|
+
*
|
|
1655
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1656
|
+
*/
|
|
1657
|
+
PJ_DECL(pj_status_t) pj_stun_uint64_attr_create(pj_pool_t *pool,
|
|
1658
|
+
int attr_type,
|
|
1659
|
+
const pj_timestamp *value,
|
|
1660
|
+
pj_stun_uint64_attr **p_attr);
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Create and add STUN generic 64bit value attribute to the message.
|
|
1665
|
+
*
|
|
1666
|
+
* @param pool The pool to allocate memory from.
|
|
1667
|
+
* @param msg The STUN message
|
|
1668
|
+
* @param attr_type Attribute type, from #pj_stun_attr_type.
|
|
1669
|
+
* @param value The 64bit value to be assigned to the attribute.
|
|
1670
|
+
*
|
|
1671
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1672
|
+
*/
|
|
1673
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_uint64_attr(pj_pool_t *pool,
|
|
1674
|
+
pj_stun_msg *msg,
|
|
1675
|
+
int attr_type,
|
|
1676
|
+
const pj_timestamp *value);
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Create a STUN MESSAGE-INTEGRITY attribute.
|
|
1680
|
+
*
|
|
1681
|
+
* @param pool The pool to allocate memory from.
|
|
1682
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1683
|
+
*
|
|
1684
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1685
|
+
*/
|
|
1686
|
+
PJ_DECL(pj_status_t) pj_stun_msgint_attr_create(pj_pool_t *pool,
|
|
1687
|
+
pj_stun_msgint_attr **p_attr);
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* Create and add STUN MESSAGE-INTEGRITY attribute.
|
|
1691
|
+
*
|
|
1692
|
+
* @param pool The pool to allocate memory from.
|
|
1693
|
+
* @param msg The STUN message
|
|
1694
|
+
*
|
|
1695
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1696
|
+
*/
|
|
1697
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_msgint_attr(pj_pool_t *pool,
|
|
1698
|
+
pj_stun_msg *msg);
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* Create a STUN ERROR-CODE attribute.
|
|
1702
|
+
*
|
|
1703
|
+
* @param pool The pool to allocate memory from.
|
|
1704
|
+
* @param err_code STUN error code.
|
|
1705
|
+
* @param err_reason Optional STUN error reason. If NULL is given, the
|
|
1706
|
+
* standard error reason will be given.
|
|
1707
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1708
|
+
*
|
|
1709
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1710
|
+
*/
|
|
1711
|
+
PJ_DECL(pj_status_t) pj_stun_errcode_attr_create(pj_pool_t *pool,
|
|
1712
|
+
int err_code,
|
|
1713
|
+
const pj_str_t *err_reason,
|
|
1714
|
+
pj_stun_errcode_attr **p_attr);
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Create and add STUN ERROR-CODE attribute to the message.
|
|
1719
|
+
*
|
|
1720
|
+
* @param pool The pool to allocate memory from.
|
|
1721
|
+
* @param msg The STUN mesage.
|
|
1722
|
+
* @param err_code STUN error code.
|
|
1723
|
+
* @param err_reason Optional STUN error reason. If NULL is given, the
|
|
1724
|
+
* standard error reason will be given.
|
|
1725
|
+
*
|
|
1726
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1727
|
+
*/
|
|
1728
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_errcode_attr(pj_pool_t *pool,
|
|
1729
|
+
pj_stun_msg *msg,
|
|
1730
|
+
int err_code,
|
|
1731
|
+
const pj_str_t *err_reason);
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Create instance of STUN UNKNOWN-ATTRIBUTES attribute and copy the
|
|
1735
|
+
* unknown attribute array to the attribute.
|
|
1736
|
+
*
|
|
1737
|
+
* @param pool The pool to allocate memory from.
|
|
1738
|
+
* @param attr_cnt Number of attributes in the array (can be zero).
|
|
1739
|
+
* @param attr Optional array of attributes.
|
|
1740
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1741
|
+
*
|
|
1742
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1743
|
+
*/
|
|
1744
|
+
PJ_DECL(pj_status_t) pj_stun_unknown_attr_create(pj_pool_t *pool,
|
|
1745
|
+
unsigned attr_cnt,
|
|
1746
|
+
const pj_uint16_t attr[],
|
|
1747
|
+
pj_stun_unknown_attr **p_attr);
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Create and add STUN UNKNOWN-ATTRIBUTES attribute to the message.
|
|
1751
|
+
*
|
|
1752
|
+
* @param pool The pool to allocate memory from.
|
|
1753
|
+
* @param msg The STUN message.
|
|
1754
|
+
* @param attr_cnt Number of attributes in the array (can be zero).
|
|
1755
|
+
* @param attr Optional array of attribute types.
|
|
1756
|
+
*
|
|
1757
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1758
|
+
*/
|
|
1759
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_unknown_attr(pj_pool_t *pool,
|
|
1760
|
+
pj_stun_msg *msg,
|
|
1761
|
+
unsigned attr_cnt,
|
|
1762
|
+
const pj_uint16_t attr[]);
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Initialize STUN binary attribute.
|
|
1766
|
+
*
|
|
1767
|
+
* @param attr The attribute to be initialized.
|
|
1768
|
+
* @param pool Pool to copy data, if the data and length are set.
|
|
1769
|
+
* @param attr_type The attribute type, from #pj_stun_attr_type.
|
|
1770
|
+
* @param data Data to be coped to the attribute, or NULL
|
|
1771
|
+
* if no data to be copied now.
|
|
1772
|
+
* @param length Length of data, or zero if no data is to be
|
|
1773
|
+
* copied now.
|
|
1774
|
+
*
|
|
1775
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1776
|
+
*/
|
|
1777
|
+
PJ_DECL(pj_status_t) pj_stun_binary_attr_init(pj_stun_binary_attr *attr,
|
|
1778
|
+
pj_pool_t *pool,
|
|
1779
|
+
int attr_type,
|
|
1780
|
+
const pj_uint8_t *data,
|
|
1781
|
+
unsigned length);
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Create STUN binary attribute.
|
|
1785
|
+
*
|
|
1786
|
+
* @param pool The pool to allocate memory from.
|
|
1787
|
+
* @param attr_type The attribute type, from #pj_stun_attr_type.
|
|
1788
|
+
* @param data Data to be coped to the attribute, or NULL
|
|
1789
|
+
* if no data to be copied now.
|
|
1790
|
+
* @param length Length of data, or zero if no data is to be
|
|
1791
|
+
* copied now.
|
|
1792
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1793
|
+
*
|
|
1794
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1795
|
+
*/
|
|
1796
|
+
PJ_DECL(pj_status_t) pj_stun_binary_attr_create(pj_pool_t *pool,
|
|
1797
|
+
int attr_type,
|
|
1798
|
+
const pj_uint8_t *data,
|
|
1799
|
+
unsigned length,
|
|
1800
|
+
pj_stun_binary_attr **p_attr);
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Create STUN binary attribute and add the attribute to the message.
|
|
1804
|
+
*
|
|
1805
|
+
* @param pool The pool to allocate memory from.
|
|
1806
|
+
* @param msg The STUN message.
|
|
1807
|
+
* @param attr_type The attribute type, from #pj_stun_attr_type.
|
|
1808
|
+
* @param data Data to be coped to the attribute, or NULL
|
|
1809
|
+
* if no data to be copied now.
|
|
1810
|
+
* @param length Length of data, or zero if no data is to be
|
|
1811
|
+
* copied now.
|
|
1812
|
+
*
|
|
1813
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1814
|
+
*/
|
|
1815
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_binary_attr(pj_pool_t *pool,
|
|
1816
|
+
pj_stun_msg *msg,
|
|
1817
|
+
int attr_type,
|
|
1818
|
+
const pj_uint8_t *data,
|
|
1819
|
+
unsigned length);
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Create STUN empty attribute.
|
|
1823
|
+
*
|
|
1824
|
+
* @param pool The pool to allocate memory from.
|
|
1825
|
+
* @param attr_type The attribute type, from #pj_stun_attr_type.
|
|
1826
|
+
* @param p_attr Pointer to receive the attribute.
|
|
1827
|
+
*
|
|
1828
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1829
|
+
*/
|
|
1830
|
+
PJ_DECL(pj_status_t) pj_stun_empty_attr_create(pj_pool_t *pool,
|
|
1831
|
+
int attr_type,
|
|
1832
|
+
pj_stun_empty_attr **p_attr);
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Create STUN empty attribute and add the attribute to the message.
|
|
1836
|
+
*
|
|
1837
|
+
* @param pool The pool to allocate memory from.
|
|
1838
|
+
* @param msg The STUN message.
|
|
1839
|
+
* @param attr_type The attribute type, from #pj_stun_attr_type.
|
|
1840
|
+
*
|
|
1841
|
+
* @return PJ_SUCCESS on success or the appropriate error code.
|
|
1842
|
+
*/
|
|
1843
|
+
PJ_DECL(pj_status_t) pj_stun_msg_add_empty_attr(pj_pool_t *pool,
|
|
1844
|
+
pj_stun_msg *msg,
|
|
1845
|
+
int attr_type);
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* @}
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
PJ_END_DECL
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
#endif /* __PJNATH_STUN_MSG_H__ */
|
|
1856
|
+
|