├── .boring ├── AUTHORS ├── LICENSE ├── MANIFEST.in ├── README ├── TODO ├── build_inplace ├── debian ├── changelog ├── compat ├── control ├── copyright ├── docs ├── python-sipsimple.lintian-overrides ├── rules └── source │ └── format ├── deps └── pjsip │ ├── COPYING │ ├── Makefile │ ├── README.txt │ ├── aconfigure │ ├── aconfigure.ac │ ├── base_rev │ ├── build.mak.in │ ├── build │ ├── cc-auto.mak.in │ ├── cc-gcc.mak │ ├── common.mak │ ├── host-mingw.mak │ ├── host-unix.mak │ ├── host-win32.mak │ ├── m-arm.mak │ ├── m-auto.mak │ ├── m-i386.mak │ ├── m-x86_64.mak │ ├── os-auto.mak.in │ └── rules.mak │ ├── config.guess │ ├── config.sub │ ├── configure │ ├── install-sh │ ├── pjlib-util │ ├── build │ │ └── Makefile │ ├── docs │ │ ├── doxygen.cfg │ │ ├── doxygen.css │ │ ├── footer.html │ │ └── header.html │ ├── include │ │ ├── pjlib-util.h │ │ └── pjlib-util │ │ │ ├── base64.h │ │ │ ├── config.h │ │ │ ├── crc32.h │ │ │ ├── dns.h │ │ │ ├── dns_server.h │ │ │ ├── errno.h │ │ │ ├── getopt.h │ │ │ ├── hmac_md5.h │ │ │ ├── hmac_sha1.h │ │ │ ├── http_client.h │ │ │ ├── json.h │ │ │ ├── md5.h │ │ │ ├── pcap.h │ │ │ ├── resolver.h │ │ │ ├── scanner.h │ │ │ ├── scanner_cis_bitwise.h │ │ │ ├── scanner_cis_uint.h │ │ │ ├── sha1.h │ │ │ ├── srv_resolver.h │ │ │ ├── string.h │ │ │ ├── stun_simple.h │ │ │ ├── types.h │ │ │ └── xml.h │ └── src │ │ └── pjlib-util │ │ ├── base64.c │ │ ├── crc32.c │ │ ├── dns.c │ │ ├── dns_dump.c │ │ ├── dns_server.c │ │ ├── errno.c │ │ ├── getopt.c │ │ ├── hmac_md5.c │ │ ├── hmac_sha1.c │ │ ├── http_client.c │ │ ├── json.c │ │ ├── md5.c │ │ ├── pcap.c │ │ ├── resolver.c │ │ ├── resolver_wrap.cpp │ │ ├── scanner.c │ │ ├── scanner_cis_bitwise.c │ │ ├── scanner_cis_uint.c │ │ ├── sha1.c │ │ ├── srv_resolver.c │ │ ├── string.c │ │ ├── stun_simple.c │ │ ├── stun_simple_client.c │ │ ├── symbols.c │ │ ├── xml.c │ │ └── xml_wrap.cpp │ ├── pjlib │ ├── build │ │ ├── Makefile │ │ └── os-auto.mak.in │ ├── docs │ │ ├── doxygen.cfg │ │ ├── doxygen.css │ │ ├── footer.html │ │ └── header.html │ ├── include │ │ ├── pj++ │ │ │ ├── file.hpp │ │ │ ├── hash.hpp │ │ │ ├── list.hpp │ │ │ ├── lock.hpp │ │ │ ├── os.hpp │ │ │ ├── pool.hpp │ │ │ ├── proactor.hpp │ │ │ ├── scanner.hpp │ │ │ ├── sock.hpp │ │ │ ├── string.hpp │ │ │ ├── timer.hpp │ │ │ ├── tree.hpp │ │ │ └── types.hpp │ │ ├── pj │ │ │ ├── activesock.h │ │ │ ├── addr_resolv.h │ │ │ ├── array.h │ │ │ ├── assert.h │ │ │ ├── compat │ │ │ │ ├── assert.h │ │ │ │ ├── cc_armcc.h │ │ │ │ ├── cc_codew.h │ │ │ │ ├── cc_gcc.h │ │ │ │ ├── cc_gcce.h │ │ │ │ ├── cc_msvc.h │ │ │ │ ├── cc_mwcc.h │ │ │ │ ├── ctype.h │ │ │ │ ├── errno.h │ │ │ │ ├── high_precision.h │ │ │ │ ├── m_alpha.h │ │ │ │ ├── m_armv4.h │ │ │ │ ├── m_auto.h.in │ │ │ │ ├── m_i386.h │ │ │ │ ├── m_m68k.h │ │ │ │ ├── m_powerpc.h │ │ │ │ ├── m_sparc.h │ │ │ │ ├── m_x86_64.h │ │ │ │ ├── malloc.h │ │ │ │ ├── os_auto.h.in │ │ │ │ ├── os_darwinos.h │ │ │ │ ├── os_linux.h │ │ │ │ ├── os_linux_kernel.h │ │ │ │ ├── os_palmos.h │ │ │ │ ├── os_rtems.h │ │ │ │ ├── os_sunos.h │ │ │ │ ├── os_symbian.h │ │ │ │ ├── os_win32.h │ │ │ │ ├── os_win32_wince.h │ │ │ │ ├── rand.h │ │ │ │ ├── setjmp.h │ │ │ │ ├── size_t.h │ │ │ │ ├── socket.h │ │ │ │ ├── stdarg.h │ │ │ │ ├── stdfileio.h │ │ │ │ ├── string.h │ │ │ │ └── time.h │ │ │ ├── config.h │ │ │ ├── config_site_sample.h │ │ │ ├── ctype.h │ │ │ ├── doxygen.h │ │ │ ├── errno.h │ │ │ ├── except.h │ │ │ ├── fifobuf.h │ │ │ ├── file_access.h │ │ │ ├── file_io.h │ │ │ ├── guid.h │ │ │ ├── hash.h │ │ │ ├── ioqueue.h │ │ │ ├── ip_helper.h │ │ │ ├── list.h │ │ │ ├── list_i.h │ │ │ ├── lock.h │ │ │ ├── log.h │ │ │ ├── math.h │ │ │ ├── os.h │ │ │ ├── pool.h │ │ │ ├── pool_alt.h │ │ │ ├── pool_buf.h │ │ │ ├── pool_i.h │ │ │ ├── rand.h │ │ │ ├── rbtree.h │ │ │ ├── sock.h │ │ │ ├── sock_qos.h │ │ │ ├── sock_select.h │ │ │ ├── ssl_sock.h │ │ │ ├── string.h │ │ │ ├── string_i.h │ │ │ ├── timer.h │ │ │ ├── types.h │ │ │ └── unicode.h │ │ ├── pjlib++.hpp │ │ └── pjlib.h │ └── src │ │ └── pj │ │ ├── activesock.c │ │ ├── addr_resolv_linux_kernel.c │ │ ├── addr_resolv_sock.c │ │ ├── addr_resolv_symbian.cpp │ │ ├── array.c │ │ ├── compat │ │ ├── longjmp_i386.S │ │ ├── setjmp_i386.S │ │ ├── sigjmp.c │ │ ├── string.c │ │ └── string_compat.c │ │ ├── config.c │ │ ├── ctype.c │ │ ├── errno.c │ │ ├── except.c │ │ ├── exception_symbian.cpp │ │ ├── extra-exports.c │ │ ├── fifobuf.c │ │ ├── file_access_unistd.c │ │ ├── file_access_win32.c │ │ ├── file_io_ansi.c │ │ ├── file_io_win32.c │ │ ├── guid.c │ │ ├── guid_simple.c │ │ ├── guid_uuid.c │ │ ├── guid_win32.c │ │ ├── hash.c │ │ ├── ioqueue_common_abs.c │ │ ├── ioqueue_common_abs.h │ │ ├── ioqueue_dummy.c │ │ ├── ioqueue_epoll.c │ │ ├── ioqueue_linux_kernel.c │ │ ├── ioqueue_select.c │ │ ├── ioqueue_symbian.cpp │ │ ├── ioqueue_winnt.c │ │ ├── ip_helper_generic.c │ │ ├── ip_helper_symbian.cpp │ │ ├── ip_helper_win32.c │ │ ├── list.c │ │ ├── lock.c │ │ ├── log.c │ │ ├── log_writer_printk.c │ │ ├── log_writer_stdout.c │ │ ├── log_writer_symbian_console.cpp │ │ ├── os_core_darwin.m │ │ ├── os_core_linux_kernel.c │ │ ├── os_core_symbian.cpp │ │ ├── os_core_unix.c │ │ ├── os_core_win32.c │ │ ├── os_error_linux_kernel.c │ │ ├── os_error_symbian.cpp │ │ ├── os_error_unix.c │ │ ├── os_error_win32.c │ │ ├── os_info.c │ │ ├── os_info_iphone.m │ │ ├── os_info_symbian.cpp │ │ ├── os_rwmutex.c │ │ ├── os_symbian.h │ │ ├── os_time_bsd.c │ │ ├── os_time_common.c │ │ ├── os_time_linux_kernel.c │ │ ├── os_time_unix.c │ │ ├── os_time_win32.c │ │ ├── os_timestamp_common.c │ │ ├── os_timestamp_linux_kernel.c │ │ ├── os_timestamp_posix.c │ │ ├── os_timestamp_win32.c │ │ ├── pool.c │ │ ├── pool_buf.c │ │ ├── pool_caching.c │ │ ├── pool_dbg.c │ │ ├── pool_policy_kmalloc.c │ │ ├── pool_policy_malloc.c │ │ ├── pool_policy_new.cpp │ │ ├── pool_signature.h │ │ ├── rand.c │ │ ├── rbtree.c │ │ ├── sock_bsd.c │ │ ├── sock_common.c │ │ ├── sock_linux_kernel.c │ │ ├── sock_qos_bsd.c │ │ ├── sock_qos_common.c │ │ ├── sock_qos_dummy.c │ │ ├── sock_qos_symbian.cpp │ │ ├── sock_qos_wm.c │ │ ├── sock_select.c │ │ ├── sock_select_symbian.cpp │ │ ├── sock_symbian.cpp │ │ ├── ssl_sock_common.c │ │ ├── ssl_sock_dump.c │ │ ├── ssl_sock_ossl.c │ │ ├── ssl_sock_symbian.cpp │ │ ├── string.c │ │ ├── symbols.c │ │ ├── timer.c │ │ ├── timer_symbian.cpp │ │ ├── types.c │ │ ├── unicode_symbian.cpp │ │ └── unicode_win32.c │ ├── pjmedia │ ├── README.txt │ ├── build │ │ ├── Makefile │ │ └── os-auto.mak.in │ ├── docs │ │ ├── doxygen.cfg │ │ ├── footer.html │ │ ├── header.html │ │ ├── master-port.jpg │ │ ├── media-flow.jpg │ │ ├── media-flow.vsd │ │ ├── media-srtp-transport.PNG │ │ ├── media-transport.PNG │ │ ├── sample-manual-resampling.jpg │ │ ├── siprtp.jpg │ │ └── sndtest.jpg │ ├── include │ │ ├── pjmedia-audiodev │ │ │ ├── audiodev.h │ │ │ ├── audiodev_imp.h │ │ │ ├── config.h │ │ │ └── errno.h │ │ ├── pjmedia-codec.h │ │ ├── pjmedia-codec │ │ │ ├── audio_codecs.h │ │ │ ├── config.h │ │ │ ├── config_auto.h.in │ │ │ ├── ffmpeg_vid_codecs.h │ │ │ ├── g722.h │ │ │ ├── g7221.h │ │ │ ├── g7221_sdp_match.h │ │ │ ├── gsm.h │ │ │ ├── h263_packetizer.h │ │ │ ├── h264_packetizer.h │ │ │ ├── ilbc.h │ │ │ ├── openh264.h │ │ │ ├── opus.h │ │ │ ├── passthrough.h │ │ │ ├── speex.h │ │ │ ├── types.h │ │ │ └── vpx.h │ │ ├── pjmedia-videodev │ │ │ ├── avi_dev.h │ │ │ ├── config.h │ │ │ ├── errno.h │ │ │ ├── fb_dev.h │ │ │ ├── videodev.h │ │ │ └── videodev_imp.h │ │ ├── pjmedia.h │ │ ├── pjmedia │ │ │ ├── alaw_ulaw.h │ │ │ ├── avi.h │ │ │ ├── avi_stream.h │ │ │ ├── bidirectional.h │ │ │ ├── circbuf.h │ │ │ ├── clock.h │ │ │ ├── codec.h │ │ │ ├── conference.h │ │ │ ├── config.h │ │ │ ├── config_auto.h.in │ │ │ ├── converter.h │ │ │ ├── delaybuf.h │ │ │ ├── doxygen.h │ │ │ ├── echo.h │ │ │ ├── echo_port.h │ │ │ ├── endpoint.h │ │ │ ├── errno.h │ │ │ ├── event.h │ │ │ ├── format.h │ │ │ ├── frame.h │ │ │ ├── g711.h │ │ │ ├── jbuf.h │ │ │ ├── master_port.h │ │ │ ├── mem_port.h │ │ │ ├── mixer_port.h │ │ │ ├── null_port.h │ │ │ ├── plc.h │ │ │ ├── port.h │ │ │ ├── resample.h │ │ │ ├── rtcp.h │ │ │ ├── rtcp_xr.h │ │ │ ├── rtp.h │ │ │ ├── sdp.h │ │ │ ├── sdp_neg.h │ │ │ ├── session.h │ │ │ ├── signatures.h │ │ │ ├── silencedet.h │ │ │ ├── sound.h │ │ │ ├── sound_port.h │ │ │ ├── splitcomb.h │ │ │ ├── stereo.h │ │ │ ├── stream.h │ │ │ ├── stream_common.h │ │ │ ├── symbian_sound_aps.h │ │ │ ├── tonegen.h │ │ │ ├── transport.h │ │ │ ├── transport_adapter_sample.h │ │ │ ├── transport_ice.h │ │ │ ├── transport_loop.h │ │ │ ├── transport_srtp.h │ │ │ ├── transport_udp.h │ │ │ ├── transport_zrtp.h │ │ │ ├── types.h │ │ │ ├── vid_codec.h │ │ │ ├── vid_codec_util.h │ │ │ ├── vid_port.h │ │ │ ├── vid_stream.h │ │ │ ├── vid_tee.h │ │ │ ├── wav_playlist.h │ │ │ ├── wav_port.h │ │ │ ├── wave.h │ │ │ └── wsola.h │ │ ├── pjmedia_audiodev.h │ │ └── pjmedia_videodev.h │ └── src │ │ ├── pjmedia-audiodev │ │ ├── alsa_dev.c │ │ ├── audiodev.c │ │ ├── coreaudio_dev.m │ │ ├── errno.c │ │ ├── null_dev.c │ │ └── wmme_dev.c │ │ ├── pjmedia-codec │ │ ├── audio_codecs.c │ │ ├── ffmpeg_vid_codecs.c │ │ ├── g722.c │ │ ├── g722 │ │ │ ├── g722_dec.c │ │ │ ├── g722_dec.h │ │ │ ├── g722_enc.c │ │ │ └── g722_enc.h │ │ ├── g7221.c │ │ ├── g7221_sdp_match.c │ │ ├── gsm.c │ │ ├── h263_packetizer.c │ │ ├── h264_packetizer.c │ │ ├── ilbc.c │ │ ├── openh264.cpp │ │ ├── opus.c │ │ ├── passthrough.c │ │ ├── speex_codec.c │ │ └── vpx.c │ │ ├── pjmedia-videodev │ │ ├── avf_dev.m │ │ ├── avi_dev.c │ │ ├── colorbar_dev.c │ │ ├── dshow_dev.c │ │ ├── dshow_filter.cpp │ │ ├── errno.c │ │ ├── fb_dev.c │ │ ├── null_dev.c │ │ ├── util.c │ │ ├── util.h │ │ ├── v4l2_dev.c │ │ └── videodev.c │ │ └── pjmedia │ │ ├── alaw_ulaw.c │ │ ├── alaw_ulaw_table.c │ │ ├── avi_player.c │ │ ├── bidirectional.c │ │ ├── clock_thread.c │ │ ├── codec.c │ │ ├── conf_switch.c │ │ ├── conference.c │ │ ├── converter.c │ │ ├── converter_libswscale.c │ │ ├── converter_libyuv.c │ │ ├── delaybuf.c │ │ ├── dummy.c │ │ ├── echo_common.c │ │ ├── echo_internal.h │ │ ├── echo_port.c │ │ ├── echo_speex.c │ │ ├── echo_suppress.c │ │ ├── echo_webrtc_aec.c │ │ ├── endpoint.c │ │ ├── errno.c │ │ ├── event.c │ │ ├── ffmpeg_util.c │ │ ├── ffmpeg_util.h │ │ ├── format.c │ │ ├── g711.c │ │ ├── jbuf.c │ │ ├── master_port.c │ │ ├── mem_capture.c │ │ ├── mem_player.c │ │ ├── mixer_port.c │ │ ├── null_port.c │ │ ├── plc_common.c │ │ ├── port.c │ │ ├── resample_libsamplerate.c │ │ ├── resample_port.c │ │ ├── resample_resample.c │ │ ├── resample_speex.c │ │ ├── rtcp.c │ │ ├── rtcp_xr.c │ │ ├── rtp.c │ │ ├── sdp.c │ │ ├── sdp_cmp.c │ │ ├── sdp_neg.c │ │ ├── sdp_wrap.cpp │ │ ├── session.c │ │ ├── silencedet.c │ │ ├── sound_legacy.c │ │ ├── sound_port.c │ │ ├── splitcomb.c │ │ ├── stereo_port.c │ │ ├── stream.c │ │ ├── stream_common.c │ │ ├── stream_info.c │ │ ├── tonegen.c │ │ ├── transport_adapter_sample.c │ │ ├── transport_ice.c │ │ ├── transport_loop.c │ │ ├── transport_srtp.c │ │ ├── transport_udp.c │ │ ├── transport_zrtp.c │ │ ├── types.c │ │ ├── vid_codec.c │ │ ├── vid_codec_util.c │ │ ├── vid_port.c │ │ ├── vid_stream.c │ │ ├── vid_stream_info.c │ │ ├── vid_tee.c │ │ ├── wav_player.c │ │ ├── wav_playlist.c │ │ ├── wav_writer.c │ │ ├── wave.c │ │ └── wsola.c │ ├── pjnath │ ├── build │ │ └── Makefile │ ├── docs │ │ ├── UML-class-diagram.dia │ │ ├── UML-class-diagram.png │ │ ├── doc_ice.h │ │ ├── doc_mainpage.h │ │ ├── doc_nat.h │ │ ├── doc_samples.h │ │ ├── doc_stun.h │ │ ├── doc_turn.h │ │ ├── doxygen.cfg │ │ ├── doxygen.css │ │ ├── footer.html │ │ ├── header.html │ │ ├── ice-arch.jpg │ │ ├── ice_demo.jpg │ │ ├── pjturn_client.jpg │ │ └── stun-arch.jpg │ ├── include │ │ ├── pjnath.h │ │ └── pjnath │ │ │ ├── config.h │ │ │ ├── errno.h │ │ │ ├── ice_session.h │ │ │ ├── ice_strans.h │ │ │ ├── nat_detect.h │ │ │ ├── stun_auth.h │ │ │ ├── stun_config.h │ │ │ ├── stun_msg.h │ │ │ ├── stun_session.h │ │ │ ├── stun_sock.h │ │ │ ├── stun_transaction.h │ │ │ ├── turn_session.h │ │ │ ├── turn_sock.h │ │ │ └── types.h │ └── src │ │ ├── pjnath │ │ ├── errno.c │ │ ├── ice_session.c │ │ ├── ice_strans.c │ │ ├── nat_detect.c │ │ ├── stun_auth.c │ │ ├── stun_msg.c │ │ ├── stun_msg_dump.c │ │ ├── stun_session.c │ │ ├── stun_sock.c │ │ ├── stun_transaction.c │ │ ├── turn_session.c │ │ └── turn_sock.c │ │ ├── pjturn-client │ │ └── client_main.c │ │ └── pjturn-srv │ │ ├── allocation.c │ │ ├── auth.c │ │ ├── auth.h │ │ ├── listener_tcp.c │ │ ├── listener_udp.c │ │ ├── main.c │ │ ├── server.c │ │ └── turn.h │ ├── pjsip │ ├── build │ │ ├── Makefile │ │ └── os-auto.mak.in │ ├── docs │ │ ├── PJSUA-TESTING.txt │ │ ├── TRANSPORT-PROBLEMS.TXT │ │ ├── doxygen.cfg │ │ ├── doxygen.h │ │ ├── footer.html │ │ ├── header.html │ │ ├── pjsip-arch.jpg │ │ ├── pjsip-perf.jpg │ │ ├── pjsua.jpg │ │ └── siprtp.jpg │ ├── include │ │ ├── pjsip-simple │ │ │ ├── errno.h │ │ │ ├── evsub.h │ │ │ ├── evsub_msg.h │ │ │ ├── iscomposing.h │ │ │ ├── mwi.h │ │ │ ├── pidf.h │ │ │ ├── presence.h │ │ │ ├── publish.h │ │ │ ├── rpid.h │ │ │ ├── types.h │ │ │ └── xpidf.h │ │ ├── pjsip-ua │ │ │ ├── sip_100rel.h │ │ │ ├── sip_inv.h │ │ │ ├── sip_regc.h │ │ │ ├── sip_replaces.h │ │ │ ├── sip_timer.h │ │ │ └── sip_xfer.h │ │ ├── pjsip.h │ │ ├── pjsip │ │ │ ├── print_util.h │ │ │ ├── sip_auth.h │ │ │ ├── sip_auth_aka.h │ │ │ ├── sip_auth_msg.h │ │ │ ├── sip_auth_parser.h │ │ │ ├── sip_autoconf.h.in │ │ │ ├── sip_config.h │ │ │ ├── sip_dialog.h │ │ │ ├── sip_endpoint.h │ │ │ ├── sip_errno.h │ │ │ ├── sip_event.h │ │ │ ├── sip_module.h │ │ │ ├── sip_msg.h │ │ │ ├── sip_multipart.h │ │ │ ├── sip_parser.h │ │ │ ├── sip_private.h │ │ │ ├── sip_resolve.h │ │ │ ├── sip_tel_uri.h │ │ │ ├── sip_transaction.h │ │ │ ├── sip_transport.h │ │ │ ├── sip_transport_loop.h │ │ │ ├── sip_transport_tcp.h │ │ │ ├── sip_transport_tls.h │ │ │ ├── sip_transport_udp.h │ │ │ ├── sip_types.h │ │ │ ├── sip_ua_layer.h │ │ │ ├── sip_uri.h │ │ │ └── sip_util.h │ │ ├── pjsip_auth.h │ │ ├── pjsip_simple.h │ │ └── pjsip_ua.h │ └── src │ │ ├── pjsip-simple │ │ ├── errno.c │ │ ├── evsub.c │ │ ├── evsub_msg.c │ │ ├── iscomposing.c │ │ ├── mwi.c │ │ ├── pidf.c │ │ ├── presence.c │ │ ├── presence_body.c │ │ ├── publishc.c │ │ ├── rpid.c │ │ └── xpidf.c │ │ ├── pjsip-ua │ │ ├── sip_100rel.c │ │ ├── sip_inv.c │ │ ├── sip_reg.c │ │ ├── sip_replaces.c │ │ ├── sip_timer.c │ │ └── sip_xfer.c │ │ └── pjsip │ │ ├── sip_auth_aka.c │ │ ├── sip_auth_client.c │ │ ├── sip_auth_msg.c │ │ ├── sip_auth_parser.c │ │ ├── sip_auth_parser_wrap.cpp │ │ ├── sip_auth_server.c │ │ ├── sip_config.c │ │ ├── sip_dialog.c │ │ ├── sip_dialog_wrap.cpp │ │ ├── sip_endpoint.c │ │ ├── sip_endpoint_wrap.cpp │ │ ├── sip_errno.c │ │ ├── sip_msg.c │ │ ├── sip_multipart.c │ │ ├── sip_parser.c │ │ ├── sip_parser_wrap.cpp │ │ ├── sip_resolve.c │ │ ├── sip_tel_uri.c │ │ ├── sip_tel_uri_wrap.cpp │ │ ├── sip_transaction.c │ │ ├── sip_transport.c │ │ ├── sip_transport_loop.c │ │ ├── sip_transport_tcp.c │ │ ├── sip_transport_tls.c │ │ ├── sip_transport_udp.c │ │ ├── sip_transport_wrap.cpp │ │ ├── sip_ua_layer.c │ │ ├── sip_uri.c │ │ ├── sip_util.c │ │ ├── sip_util_proxy.c │ │ ├── sip_util_proxy_wrap.cpp │ │ ├── sip_util_statefull.c │ │ └── sip_util_wrap.cpp │ ├── third_party │ ├── README.txt │ ├── bdsound │ │ └── include │ │ │ └── bdimad.h │ ├── build │ │ ├── Makefile │ │ ├── g7221 │ │ │ └── Makefile │ │ ├── gsm │ │ │ ├── Makefile │ │ │ └── config.h │ │ ├── ilbc │ │ │ └── Makefile │ │ ├── milenage │ │ │ └── Makefile │ │ ├── opus │ │ │ └── Makefile │ │ ├── os-auto.mak.in │ │ ├── resample │ │ │ ├── Makefile │ │ │ └── config.h │ │ ├── speex │ │ │ ├── Makefile │ │ │ ├── config.h │ │ │ └── speex │ │ │ │ └── speex_config_types.h │ │ ├── srtp │ │ │ ├── Makefile │ │ │ └── srtp_config.h │ │ ├── webrtc │ │ │ ├── Makefile │ │ │ └── os-auto.mak.in │ │ └── zsrtp │ │ │ └── Makefile │ ├── g7221 │ │ ├── common │ │ │ ├── basic_op.c │ │ │ ├── basic_op.h │ │ │ ├── basic_op_i.h │ │ │ ├── common.c │ │ │ ├── config.h │ │ │ ├── count.h │ │ │ ├── defs.h │ │ │ ├── huff_def.h │ │ │ ├── huff_tab.c │ │ │ ├── huff_tab.h │ │ │ ├── tables.c │ │ │ ├── tables.h │ │ │ └── typedef.h │ │ ├── decode │ │ │ ├── coef2sam.c │ │ │ ├── dct4_s.c │ │ │ ├── dct4_s.h │ │ │ └── decoder.c │ │ └── encode │ │ │ ├── dct4_a.c │ │ │ ├── dct4_a.h │ │ │ ├── encoder.c │ │ │ └── sam2coef.c │ ├── gsm │ │ ├── COPYRIGHT │ │ ├── ChangeLog │ │ ├── INSTALL │ │ ├── MACHINES │ │ ├── MANIFEST │ │ ├── Makefile │ │ ├── README │ │ ├── add-test │ │ │ ├── add_test.c │ │ │ └── add_test.dta │ │ ├── inc │ │ │ ├── config.h │ │ │ ├── gsm.h │ │ │ ├── private.h │ │ │ ├── proto.h │ │ │ ├── toast.h │ │ │ └── unproto.h │ │ ├── man │ │ │ ├── bitter.1 │ │ │ ├── gsm.3 │ │ │ ├── gsm_explode.3 │ │ │ ├── gsm_option.3 │ │ │ ├── gsm_print.3 │ │ │ └── toast.1 │ │ ├── src │ │ │ ├── add.c │ │ │ ├── code.c │ │ │ ├── debug.c │ │ │ ├── decode.c │ │ │ ├── gsm_create.c │ │ │ ├── gsm_decode.c │ │ │ ├── gsm_destroy.c │ │ │ ├── gsm_encode.c │ │ │ ├── gsm_explode.c │ │ │ ├── gsm_implode.c │ │ │ ├── gsm_option.c │ │ │ ├── gsm_print.c │ │ │ ├── long_term.c │ │ │ ├── lpc.c │ │ │ ├── preprocess.c │ │ │ ├── rpe.c │ │ │ ├── short_term.c │ │ │ ├── table.c │ │ │ ├── toast.c │ │ │ ├── toast_alaw.c │ │ │ ├── toast_audio.c │ │ │ ├── toast_lin.c │ │ │ └── toast_ulaw.c │ │ ├── tls │ │ │ ├── bitter.c │ │ │ ├── bitter.dta │ │ │ ├── ginger.c │ │ │ ├── sour.c │ │ │ ├── sour1.dta │ │ │ ├── sour2.dta │ │ │ ├── sweet.c │ │ │ ├── taste.c │ │ │ └── taste.h │ │ └── tst │ │ │ ├── cod2lin.c │ │ │ ├── cod2txt.c │ │ │ ├── gsm2cod.c │ │ │ ├── lin2cod.c │ │ │ ├── lin2txt.c │ │ │ └── run │ ├── ilbc │ │ ├── FrameClassify.c │ │ ├── FrameClassify.h │ │ ├── LPCdecode.c │ │ ├── LPCdecode.h │ │ ├── LPCencode.c │ │ ├── LPCencode.h │ │ ├── StateConstructW.c │ │ ├── StateConstructW.h │ │ ├── StateSearchW.c │ │ ├── StateSearchW.h │ │ ├── anaFilter.c │ │ ├── anaFilter.h │ │ ├── constants.c │ │ ├── constants.h │ │ ├── createCB.c │ │ ├── createCB.h │ │ ├── doCPLC.c │ │ ├── doCPLC.h │ │ ├── enhancer.c │ │ ├── enhancer.h │ │ ├── filter.c │ │ ├── filter.h │ │ ├── gainquant.c │ │ ├── gainquant.h │ │ ├── getCBvec.c │ │ ├── getCBvec.h │ │ ├── helpfun.c │ │ ├── helpfun.h │ │ ├── hpInput.c │ │ ├── hpInput.h │ │ ├── hpOutput.c │ │ ├── hpOutput.h │ │ ├── iCBConstruct.c │ │ ├── iCBConstruct.h │ │ ├── iCBSearch.c │ │ ├── iCBSearch.h │ │ ├── iLBC_decode.c │ │ ├── iLBC_decode.h │ │ ├── iLBC_define.h │ │ ├── iLBC_encode.c │ │ ├── iLBC_encode.h │ │ ├── iLBC_test.c │ │ ├── lsf.c │ │ ├── lsf.h │ │ ├── packing.c │ │ ├── packing.h │ │ ├── syntFilter.c │ │ └── syntFilter.h │ ├── milenage │ │ ├── milenage.c │ │ ├── milenage.h │ │ ├── rijndael.c │ │ └── rijndael.h │ ├── mp3 │ │ ├── BladeMP3EncDLL.h │ │ ├── mp3_port.h │ │ └── mp3_writer.c │ ├── opus │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── COPYING │ │ ├── ChangeLog │ │ ├── INSTALL │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── Makefile.mips │ │ ├── Makefile.unix │ │ ├── NEWS │ │ ├── README │ │ ├── aclocal.m4 │ │ ├── celt │ │ │ ├── _kiss_fft_guts.h │ │ │ ├── arch.h │ │ │ ├── arm │ │ │ │ ├── arm2gnu.pl │ │ │ │ ├── arm_celt_map.c │ │ │ │ ├── armcpu.c │ │ │ │ ├── armcpu.h │ │ │ │ ├── armopts.s.in │ │ │ │ ├── celt_ne10_fft.c │ │ │ │ ├── celt_ne10_mdct.c │ │ │ │ ├── celt_neon_intr.c │ │ │ │ ├── celt_pitch_xcorr_arm-gnu.S │ │ │ │ ├── celt_pitch_xcorr_arm.s │ │ │ │ ├── fft_arm.h │ │ │ │ ├── fixed_armv4.h │ │ │ │ ├── fixed_armv5e.h │ │ │ │ ├── kiss_fft_armv4.h │ │ │ │ ├── kiss_fft_armv5e.h │ │ │ │ ├── mdct_arm.h │ │ │ │ └── pitch_arm.h │ │ │ ├── bands.c │ │ │ ├── bands.h │ │ │ ├── celt.c │ │ │ ├── celt.h │ │ │ ├── celt_decoder.c │ │ │ ├── celt_encoder.c │ │ │ ├── celt_lpc.c │ │ │ ├── celt_lpc.h │ │ │ ├── cpu_support.h │ │ │ ├── cwrs.c │ │ │ ├── cwrs.h │ │ │ ├── ecintrin.h │ │ │ ├── entcode.c │ │ │ ├── entcode.h │ │ │ ├── entdec.c │ │ │ ├── entdec.h │ │ │ ├── entenc.c │ │ │ ├── entenc.h │ │ │ ├── fixed_debug.h │ │ │ ├── fixed_generic.h │ │ │ ├── float_cast.h │ │ │ ├── kiss_fft.c │ │ │ ├── kiss_fft.h │ │ │ ├── laplace.c │ │ │ ├── laplace.h │ │ │ ├── mathops.c │ │ │ ├── mathops.h │ │ │ ├── mdct.c │ │ │ ├── mdct.h │ │ │ ├── mfrngcod.h │ │ │ ├── mips │ │ │ │ ├── celt_mipsr1.h │ │ │ │ ├── fixed_generic_mipsr1.h │ │ │ │ ├── kiss_fft_mipsr1.h │ │ │ │ ├── mdct_mipsr1.h │ │ │ │ ├── pitch_mipsr1.h │ │ │ │ └── vq_mipsr1.h │ │ │ ├── modes.c │ │ │ ├── modes.h │ │ │ ├── opus_custom_demo.c │ │ │ ├── os_support.h │ │ │ ├── pitch.c │ │ │ ├── pitch.h │ │ │ ├── quant_bands.c │ │ │ ├── quant_bands.h │ │ │ ├── rate.c │ │ │ ├── rate.h │ │ │ ├── stack_alloc.h │ │ │ ├── static_modes_fixed.h │ │ │ ├── static_modes_fixed_arm_ne10.h │ │ │ ├── static_modes_float.h │ │ │ ├── static_modes_float_arm_ne10.h │ │ │ ├── tests │ │ │ │ ├── test_unit_cwrs32.c │ │ │ │ ├── test_unit_dft.c │ │ │ │ ├── test_unit_entropy.c │ │ │ │ ├── test_unit_laplace.c │ │ │ │ ├── test_unit_mathops.c │ │ │ │ ├── test_unit_mdct.c │ │ │ │ ├── test_unit_rotation.c │ │ │ │ └── test_unit_types.c │ │ │ ├── vq.c │ │ │ ├── vq.h │ │ │ └── x86 │ │ │ │ ├── celt_lpc_sse.c │ │ │ │ ├── celt_lpc_sse.h │ │ │ │ ├── pitch_sse.c │ │ │ │ ├── pitch_sse.h │ │ │ │ ├── pitch_sse2.c │ │ │ │ ├── pitch_sse4_1.c │ │ │ │ ├── x86_celt_map.c │ │ │ │ ├── x86cpu.c │ │ │ │ └── x86cpu.h │ │ ├── celt_headers.mk │ │ ├── celt_sources.mk │ │ ├── compile │ │ ├── config.guess │ │ ├── config.h.in │ │ ├── config.sub │ │ ├── configure │ │ ├── configure.ac │ │ ├── depcomp │ │ ├── doc │ │ │ ├── Doxyfile.in │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── TODO │ │ │ ├── customdoxygen.css │ │ │ ├── footer.html │ │ │ ├── header.html │ │ │ ├── opus_logo.svg │ │ │ └── trivial_example.c │ │ ├── include │ │ │ ├── opus.h │ │ │ ├── opus_custom.h │ │ │ ├── opus_defines.h │ │ │ ├── opus_multistream.h │ │ │ └── opus_types.h │ │ ├── install-sh │ │ ├── ltmain.sh │ │ ├── m4 │ │ │ ├── as-gcc-inline-assembly.m4 │ │ │ ├── libtool.m4 │ │ │ ├── ltoptions.m4 │ │ │ ├── ltsugar.m4 │ │ │ ├── ltversion.m4 │ │ │ ├── lt~obsolete.m4 │ │ │ └── opus-intrinsics.m4 │ │ ├── missing │ │ ├── opus-uninstalled.pc.in │ │ ├── opus.m4 │ │ ├── opus.pc.in │ │ ├── opus_headers.mk │ │ ├── opus_sources.mk │ │ ├── package_version │ │ ├── silk │ │ │ ├── A2NLSF.c │ │ │ ├── API.h │ │ │ ├── CNG.c │ │ │ ├── HP_variable_cutoff.c │ │ │ ├── Inlines.h │ │ │ ├── LPC_analysis_filter.c │ │ │ ├── LPC_inv_pred_gain.c │ │ │ ├── LP_variable_cutoff.c │ │ │ ├── MacroCount.h │ │ │ ├── MacroDebug.h │ │ │ ├── NLSF2A.c │ │ │ ├── NLSF_VQ.c │ │ │ ├── NLSF_VQ_weights_laroia.c │ │ │ ├── NLSF_decode.c │ │ │ ├── NLSF_del_dec_quant.c │ │ │ ├── NLSF_encode.c │ │ │ ├── NLSF_stabilize.c │ │ │ ├── NLSF_unpack.c │ │ │ ├── NSQ.c │ │ │ ├── NSQ_del_dec.c │ │ │ ├── PLC.c │ │ │ ├── PLC.h │ │ │ ├── SigProc_FIX.h │ │ │ ├── VAD.c │ │ │ ├── VQ_WMat_EC.c │ │ │ ├── ana_filt_bank_1.c │ │ │ ├── arm │ │ │ │ ├── SigProc_FIX_armv4.h │ │ │ │ ├── SigProc_FIX_armv5e.h │ │ │ │ ├── macros_armv4.h │ │ │ │ └── macros_armv5e.h │ │ │ ├── biquad_alt.c │ │ │ ├── bwexpander.c │ │ │ ├── bwexpander_32.c │ │ │ ├── check_control_input.c │ │ │ ├── code_signs.c │ │ │ ├── control.h │ │ │ ├── control_SNR.c │ │ │ ├── control_audio_bandwidth.c │ │ │ ├── control_codec.c │ │ │ ├── debug.c │ │ │ ├── debug.h │ │ │ ├── dec_API.c │ │ │ ├── decode_core.c │ │ │ ├── decode_frame.c │ │ │ ├── decode_indices.c │ │ │ ├── decode_parameters.c │ │ │ ├── decode_pitch.c │ │ │ ├── decode_pulses.c │ │ │ ├── decoder_set_fs.c │ │ │ ├── define.h │ │ │ ├── enc_API.c │ │ │ ├── encode_indices.c │ │ │ ├── encode_pulses.c │ │ │ ├── errors.h │ │ │ ├── fixed │ │ │ │ ├── LTP_analysis_filter_FIX.c │ │ │ │ ├── LTP_scale_ctrl_FIX.c │ │ │ │ ├── apply_sine_window_FIX.c │ │ │ │ ├── autocorr_FIX.c │ │ │ │ ├── burg_modified_FIX.c │ │ │ │ ├── corrMatrix_FIX.c │ │ │ │ ├── encode_frame_FIX.c │ │ │ │ ├── find_LPC_FIX.c │ │ │ │ ├── find_LTP_FIX.c │ │ │ │ ├── find_pitch_lags_FIX.c │ │ │ │ ├── find_pred_coefs_FIX.c │ │ │ │ ├── k2a_FIX.c │ │ │ │ ├── k2a_Q16_FIX.c │ │ │ │ ├── main_FIX.h │ │ │ │ ├── mips │ │ │ │ │ ├── noise_shape_analysis_FIX_mipsr1.h │ │ │ │ │ ├── prefilter_FIX_mipsr1.h │ │ │ │ │ └── warped_autocorrelation_FIX_mipsr1.h │ │ │ │ ├── noise_shape_analysis_FIX.c │ │ │ │ ├── pitch_analysis_core_FIX.c │ │ │ │ ├── prefilter_FIX.c │ │ │ │ ├── process_gains_FIX.c │ │ │ │ ├── regularize_correlations_FIX.c │ │ │ │ ├── residual_energy16_FIX.c │ │ │ │ ├── residual_energy_FIX.c │ │ │ │ ├── schur64_FIX.c │ │ │ │ ├── schur_FIX.c │ │ │ │ ├── solve_LS_FIX.c │ │ │ │ ├── structs_FIX.h │ │ │ │ ├── vector_ops_FIX.c │ │ │ │ ├── warped_autocorrelation_FIX.c │ │ │ │ └── x86 │ │ │ │ │ ├── burg_modified_FIX_sse.c │ │ │ │ │ ├── prefilter_FIX_sse.c │ │ │ │ │ └── vector_ops_FIX_sse.c │ │ │ ├── float │ │ │ │ ├── LPC_analysis_filter_FLP.c │ │ │ │ ├── LPC_inv_pred_gain_FLP.c │ │ │ │ ├── LTP_analysis_filter_FLP.c │ │ │ │ ├── LTP_scale_ctrl_FLP.c │ │ │ │ ├── SigProc_FLP.h │ │ │ │ ├── apply_sine_window_FLP.c │ │ │ │ ├── autocorrelation_FLP.c │ │ │ │ ├── burg_modified_FLP.c │ │ │ │ ├── bwexpander_FLP.c │ │ │ │ ├── corrMatrix_FLP.c │ │ │ │ ├── encode_frame_FLP.c │ │ │ │ ├── energy_FLP.c │ │ │ │ ├── find_LPC_FLP.c │ │ │ │ ├── find_LTP_FLP.c │ │ │ │ ├── find_pitch_lags_FLP.c │ │ │ │ ├── find_pred_coefs_FLP.c │ │ │ │ ├── inner_product_FLP.c │ │ │ │ ├── k2a_FLP.c │ │ │ │ ├── levinsondurbin_FLP.c │ │ │ │ ├── main_FLP.h │ │ │ │ ├── noise_shape_analysis_FLP.c │ │ │ │ ├── pitch_analysis_core_FLP.c │ │ │ │ ├── prefilter_FLP.c │ │ │ │ ├── process_gains_FLP.c │ │ │ │ ├── regularize_correlations_FLP.c │ │ │ │ ├── residual_energy_FLP.c │ │ │ │ ├── scale_copy_vector_FLP.c │ │ │ │ ├── scale_vector_FLP.c │ │ │ │ ├── schur_FLP.c │ │ │ │ ├── solve_LS_FLP.c │ │ │ │ ├── sort_FLP.c │ │ │ │ ├── structs_FLP.h │ │ │ │ ├── warped_autocorrelation_FLP.c │ │ │ │ └── wrappers_FLP.c │ │ │ ├── gain_quant.c │ │ │ ├── init_decoder.c │ │ │ ├── init_encoder.c │ │ │ ├── inner_prod_aligned.c │ │ │ ├── interpolate.c │ │ │ ├── lin2log.c │ │ │ ├── log2lin.c │ │ │ ├── macros.h │ │ │ ├── main.h │ │ │ ├── mips │ │ │ │ ├── NSQ_del_dec_mipsr1.h │ │ │ │ ├── macros_mipsr1.h │ │ │ │ └── sigproc_fix_mipsr1.h │ │ │ ├── pitch_est_defines.h │ │ │ ├── pitch_est_tables.c │ │ │ ├── process_NLSFs.c │ │ │ ├── quant_LTP_gains.c │ │ │ ├── resampler.c │ │ │ ├── resampler_down2.c │ │ │ ├── resampler_down2_3.c │ │ │ ├── resampler_private.h │ │ │ ├── resampler_private_AR2.c │ │ │ ├── resampler_private_IIR_FIR.c │ │ │ ├── resampler_private_down_FIR.c │ │ │ ├── resampler_private_up2_HQ.c │ │ │ ├── resampler_rom.c │ │ │ ├── resampler_rom.h │ │ │ ├── resampler_structs.h │ │ │ ├── shell_coder.c │ │ │ ├── sigm_Q15.c │ │ │ ├── sort.c │ │ │ ├── stereo_LR_to_MS.c │ │ │ ├── stereo_MS_to_LR.c │ │ │ ├── stereo_decode_pred.c │ │ │ ├── stereo_encode_pred.c │ │ │ ├── stereo_find_predictor.c │ │ │ ├── stereo_quant_pred.c │ │ │ ├── structs.h │ │ │ ├── sum_sqr_shift.c │ │ │ ├── table_LSF_cos.c │ │ │ ├── tables.h │ │ │ ├── tables_LTP.c │ │ │ ├── tables_NLSF_CB_NB_MB.c │ │ │ ├── tables_NLSF_CB_WB.c │ │ │ ├── tables_gain.c │ │ │ ├── tables_other.c │ │ │ ├── tables_pitch_lag.c │ │ │ ├── tables_pulses_per_block.c │ │ │ ├── tuning_parameters.h │ │ │ ├── typedef.h │ │ │ └── x86 │ │ │ │ ├── NSQ_del_dec_sse.c │ │ │ │ ├── NSQ_sse.c │ │ │ │ ├── SigProc_FIX_sse.h │ │ │ │ ├── VAD_sse.c │ │ │ │ ├── VQ_WMat_EC_sse.c │ │ │ │ ├── main_sse.h │ │ │ │ └── x86_silk_map.c │ │ ├── silk_headers.mk │ │ ├── silk_sources.mk │ │ ├── src │ │ │ ├── analysis.c │ │ │ ├── analysis.h │ │ │ ├── mlp.c │ │ │ ├── mlp.h │ │ │ ├── mlp_data.c │ │ │ ├── opus.c │ │ │ ├── opus_compare.c │ │ │ ├── opus_decoder.c │ │ │ ├── opus_demo.c │ │ │ ├── opus_encoder.c │ │ │ ├── opus_multistream.c │ │ │ ├── opus_multistream_decoder.c │ │ │ ├── opus_multistream_encoder.c │ │ │ ├── opus_private.h │ │ │ ├── repacketizer.c │ │ │ ├── repacketizer_demo.c │ │ │ └── tansig_table.h │ │ ├── test-driver │ │ ├── tests │ │ │ ├── run_vectors.sh │ │ │ ├── test_opus_api.c │ │ │ ├── test_opus_common.h │ │ │ ├── test_opus_decode.c │ │ │ ├── test_opus_encode.c │ │ │ └── test_opus_padding.c │ │ ├── version.mk │ │ └── win32 │ │ │ ├── VS2010 │ │ │ ├── celt.vcxproj │ │ │ ├── celt.vcxproj.filters │ │ │ ├── opus.sln │ │ │ ├── opus.vcxproj │ │ │ ├── opus.vcxproj.filters │ │ │ ├── opus_demo.vcxproj │ │ │ ├── opus_demo.vcxproj.filters │ │ │ ├── silk_common.vcxproj │ │ │ ├── silk_common.vcxproj.filters │ │ │ ├── silk_fixed.vcxproj │ │ │ ├── silk_fixed.vcxproj.filters │ │ │ ├── silk_float.vcxproj │ │ │ ├── silk_float.vcxproj.filters │ │ │ ├── test_opus_api.vcxproj │ │ │ ├── test_opus_api.vcxproj.filters │ │ │ ├── test_opus_decode.vcxproj │ │ │ ├── test_opus_decode.vcxproj.filters │ │ │ ├── test_opus_encode.vcxproj │ │ │ └── test_opus_encode.vcxproj.filters │ │ │ ├── config.h │ │ │ └── genversion.bat │ ├── resample │ │ ├── COPYING │ │ ├── README.resample │ │ ├── include │ │ │ └── resamplesubs.h │ │ └── src │ │ │ ├── largefilter.h │ │ │ ├── libresample_dll.c │ │ │ ├── resample.h │ │ │ ├── resamplesubs.c │ │ │ ├── smallfilter.h │ │ │ └── stddefs.h │ ├── speex │ │ ├── AUTHORS │ │ ├── COPYING │ │ ├── include │ │ │ └── speex │ │ │ │ ├── speex.h │ │ │ │ ├── speex_bits.h │ │ │ │ ├── speex_buffer.h │ │ │ │ ├── speex_callbacks.h │ │ │ │ ├── speex_config_types.h.in │ │ │ │ ├── speex_echo.h │ │ │ │ ├── speex_header.h │ │ │ │ ├── speex_jitter.h │ │ │ │ ├── speex_preprocess.h │ │ │ │ ├── speex_resampler.h │ │ │ │ ├── speex_stereo.h │ │ │ │ └── speex_types.h │ │ ├── libspeex │ │ │ ├── _kiss_fft_guts.h │ │ │ ├── arch.h │ │ │ ├── bits.c │ │ │ ├── buffer.c │ │ │ ├── cb_search.c │ │ │ ├── cb_search.h │ │ │ ├── cb_search_arm4.h │ │ │ ├── cb_search_bfin.h │ │ │ ├── cb_search_sse.h │ │ │ ├── echo_diagnostic.m │ │ │ ├── exc_10_16_table.c │ │ │ ├── exc_10_32_table.c │ │ │ ├── exc_20_32_table.c │ │ │ ├── exc_5_256_table.c │ │ │ ├── exc_5_64_table.c │ │ │ ├── exc_8_128_table.c │ │ │ ├── fftwrap.c │ │ │ ├── fftwrap.h │ │ │ ├── filterbank.c │ │ │ ├── filterbank.h │ │ │ ├── filters.c │ │ │ ├── filters.h │ │ │ ├── filters_arm4.h │ │ │ ├── filters_bfin.h │ │ │ ├── filters_sse.h │ │ │ ├── fixed_arm4.h │ │ │ ├── fixed_arm5e.h │ │ │ ├── fixed_bfin.h │ │ │ ├── fixed_debug.h │ │ │ ├── fixed_generic.h │ │ │ ├── gain_table.c │ │ │ ├── gain_table_lbr.c │ │ │ ├── hexc_10_32_table.c │ │ │ ├── hexc_table.c │ │ │ ├── high_lsp_tables.c │ │ │ ├── jitter.c │ │ │ ├── kiss_fft.c │ │ │ ├── kiss_fft.h │ │ │ ├── kiss_fftr.c │ │ │ ├── kiss_fftr.h │ │ │ ├── lpc.c │ │ │ ├── lpc.h │ │ │ ├── lpc_bfin.h │ │ │ ├── lsp.c │ │ │ ├── lsp.h │ │ │ ├── lsp_bfin.h │ │ │ ├── lsp_tables_nb.c │ │ │ ├── ltp.c │ │ │ ├── ltp.h │ │ │ ├── ltp_arm4.h │ │ │ ├── ltp_bfin.h │ │ │ ├── ltp_sse.h │ │ │ ├── math_approx.h │ │ │ ├── mdf.c │ │ │ ├── misc_bfin.h │ │ │ ├── modes.c │ │ │ ├── modes.h │ │ │ ├── modes_wb.c │ │ │ ├── nb_celp.c │ │ │ ├── nb_celp.h │ │ │ ├── os_support.h │ │ │ ├── preprocess.c │ │ │ ├── pseudofloat.h │ │ │ ├── quant_lsp.c │ │ │ ├── quant_lsp.h │ │ │ ├── quant_lsp_bfin.h │ │ │ ├── resample.c │ │ │ ├── resample_sse.h │ │ │ ├── sb_celp.c │ │ │ ├── sb_celp.h │ │ │ ├── scal.c │ │ │ ├── smallft.c │ │ │ ├── smallft.h │ │ │ ├── speex.c │ │ │ ├── speex_callbacks.c │ │ │ ├── speex_header.c │ │ │ ├── stack_alloc.h │ │ │ ├── stereo.c │ │ │ ├── testdenoise.c │ │ │ ├── testecho.c │ │ │ ├── testenc.c │ │ │ ├── testenc_uwb.c │ │ │ ├── testenc_wb.c │ │ │ ├── testjitter.c │ │ │ ├── testresample.c │ │ │ ├── vbr.c │ │ │ ├── vbr.h │ │ │ ├── vorbis_psy.c │ │ │ ├── vorbis_psy.h │ │ │ ├── vq.c │ │ │ ├── vq.h │ │ │ ├── vq_arm4.h │ │ │ ├── vq_bfin.h │ │ │ ├── vq_sse.h │ │ │ └── window.c │ │ ├── symbian │ │ │ └── config.h │ │ └── win32 │ │ │ └── config.h │ ├── srtp │ │ ├── CHANGES │ │ ├── LICENSE │ │ ├── Makefile.in │ │ ├── README │ │ ├── TODO │ │ ├── VERSION │ │ ├── config.h_win32vc7 │ │ ├── config.hw │ │ ├── config_in.h │ │ ├── configure │ │ ├── configure.in │ │ ├── crypto │ │ │ ├── Makefile │ │ │ ├── Makefile.in │ │ │ ├── VERSION │ │ │ ├── ae_xfm │ │ │ │ └── xfm.c │ │ │ ├── cipher │ │ │ │ ├── aes.c │ │ │ │ ├── aes_cbc.c │ │ │ │ ├── aes_icm.c │ │ │ │ ├── cipher.c │ │ │ │ └── null_cipher.c │ │ │ ├── hash │ │ │ │ ├── auth.c │ │ │ │ ├── hmac.c │ │ │ │ ├── null_auth.c │ │ │ │ └── sha1.c │ │ │ ├── include │ │ │ │ ├── aes.h │ │ │ │ ├── aes_cbc.h │ │ │ │ ├── aes_icm.h │ │ │ │ ├── alloc.h │ │ │ │ ├── auth.h │ │ │ │ ├── cipher.h │ │ │ │ ├── crypto.h │ │ │ │ ├── crypto_kernel.h │ │ │ │ ├── crypto_math.h │ │ │ │ ├── crypto_types.h │ │ │ │ ├── cryptoalg.h │ │ │ │ ├── datatypes.h │ │ │ │ ├── err.h │ │ │ │ ├── gf2_8.h │ │ │ │ ├── hmac.h │ │ │ │ ├── integers.h │ │ │ │ ├── kernel_compat.h │ │ │ │ ├── key.h │ │ │ │ ├── null_auth.h │ │ │ │ ├── null_cipher.h │ │ │ │ ├── prng.h │ │ │ │ ├── rand_source.h │ │ │ │ ├── rdb.h │ │ │ │ ├── rdbx.h │ │ │ │ ├── sha1.h │ │ │ │ ├── stat.h │ │ │ │ └── xfm.h │ │ │ ├── kernel │ │ │ │ ├── alloc.c │ │ │ │ ├── crypto_kernel.c │ │ │ │ ├── err.c │ │ │ │ └── key.c │ │ │ ├── math │ │ │ │ ├── datatypes.c │ │ │ │ ├── gf2_8.c │ │ │ │ ├── math.c │ │ │ │ └── stat.c │ │ │ ├── replay │ │ │ │ ├── rdb.c │ │ │ │ ├── rdbx.c │ │ │ │ └── ut_sim.c │ │ │ └── rng │ │ │ │ ├── ctr_prng.c │ │ │ │ ├── prng.c │ │ │ │ ├── rand_linux_kernel.c │ │ │ │ └── rand_source.c │ │ ├── doc │ │ │ ├── Doxyfile │ │ │ ├── Makefile │ │ │ ├── Makefile.in │ │ │ ├── crypto_kernel.txt │ │ │ ├── header.template │ │ │ ├── intro.txt │ │ │ └── references.txt │ │ ├── include │ │ │ ├── getopt_s.h │ │ │ ├── rtp.h │ │ │ ├── rtp_priv.h │ │ │ ├── srtp.h │ │ │ ├── srtp_priv.h │ │ │ └── ut_sim.h │ │ ├── install-sh │ │ ├── pjlib │ │ │ └── srtp_err.c │ │ ├── srtp.def │ │ ├── srtp │ │ │ └── srtp.c │ │ ├── srtp7.sln │ │ ├── tables │ │ │ └── aes_tables.c │ │ ├── timing │ │ ├── undos.sh │ │ └── update.sh │ ├── webrtc │ │ └── src │ │ │ ├── common_audio │ │ │ └── signal_processing_library │ │ │ │ ├── OWNERS │ │ │ │ └── main │ │ │ │ ├── interface │ │ │ │ ├── signal_processing_library.h │ │ │ │ ├── spl_inl.h │ │ │ │ └── spl_inl_armv7.h │ │ │ │ └── source │ │ │ │ ├── auto_corr_to_refl_coef.c │ │ │ │ ├── auto_correlation.c │ │ │ │ ├── complex_bit_reverse.c │ │ │ │ ├── complex_fft.c │ │ │ │ ├── complex_ifft.c │ │ │ │ ├── copy_set_operations.c │ │ │ │ ├── cos_table.c │ │ │ │ ├── cross_correlation.c │ │ │ │ ├── division_operations.c │ │ │ │ ├── dot_product_with_scale.c │ │ │ │ ├── downsample_fast.c │ │ │ │ ├── energy.c │ │ │ │ ├── filter_ar.c │ │ │ │ ├── filter_ar_fast_q12.c │ │ │ │ ├── filter_ma_fast_q12.c │ │ │ │ ├── get_hanning_window.c │ │ │ │ ├── get_scaling_square.c │ │ │ │ ├── hanning_table.c │ │ │ │ ├── ilbc_specific_functions.c │ │ │ │ ├── levinson_durbin.c │ │ │ │ ├── lpc_to_refl_coef.c │ │ │ │ ├── min_max_operations.c │ │ │ │ ├── min_max_operations_neon.c │ │ │ │ ├── randn_table.c │ │ │ │ ├── randomization_functions.c │ │ │ │ ├── refl_coef_to_lpc.c │ │ │ │ ├── resample.c │ │ │ │ ├── resample_48khz.c │ │ │ │ ├── resample_by_2.c │ │ │ │ ├── resample_by_2_internal.c │ │ │ │ ├── resample_by_2_internal.h │ │ │ │ ├── resample_fractional.c │ │ │ │ ├── sin_table.c │ │ │ │ ├── sin_table_1024.c │ │ │ │ ├── spl_sqrt.c │ │ │ │ ├── spl_sqrt_floor.c │ │ │ │ ├── spl_version.c │ │ │ │ ├── splitting_filter.c │ │ │ │ ├── sqrt_of_one_minus_x_squared.c │ │ │ │ ├── vector_scaling_operations.c │ │ │ │ ├── webrtc_fft_t_1024_8.c │ │ │ │ └── webrtc_fft_t_rad.c │ │ │ ├── common_types.h │ │ │ ├── engine_configurations.h │ │ │ ├── modules │ │ │ └── audio_processing │ │ │ │ ├── aec │ │ │ │ └── main │ │ │ │ │ ├── interface │ │ │ │ │ └── echo_cancellation.h │ │ │ │ │ ├── matlab │ │ │ │ │ └── fullaec.m │ │ │ │ │ └── source │ │ │ │ │ ├── aec_core.c │ │ │ │ │ ├── aec_core.h │ │ │ │ │ ├── aec_core_sse2.c │ │ │ │ │ ├── aec_rdft.c │ │ │ │ │ ├── aec_rdft.h │ │ │ │ │ ├── aec_rdft_sse2.c │ │ │ │ │ ├── echo_cancellation.c │ │ │ │ │ ├── resampler.c │ │ │ │ │ └── resampler.h │ │ │ │ ├── agc │ │ │ │ └── main │ │ │ │ │ ├── interface │ │ │ │ │ └── gain_control.h │ │ │ │ │ └── source │ │ │ │ │ ├── analog_agc.c │ │ │ │ │ ├── analog_agc.h │ │ │ │ │ ├── digital_agc.c │ │ │ │ │ └── digital_agc.h │ │ │ │ ├── ns │ │ │ │ └── main │ │ │ │ │ ├── interface │ │ │ │ │ ├── noise_suppression.h │ │ │ │ │ └── noise_suppression_x.h │ │ │ │ │ └── source │ │ │ │ │ ├── defines.h │ │ │ │ │ ├── noise_suppression.c │ │ │ │ │ ├── noise_suppression_x.c │ │ │ │ │ ├── ns_core.c │ │ │ │ │ ├── ns_core.h │ │ │ │ │ ├── nsx_core.c │ │ │ │ │ ├── nsx_core.h │ │ │ │ │ ├── nsx_core_neon.c │ │ │ │ │ ├── nsx_defines.h │ │ │ │ │ └── windows_private.h │ │ │ │ └── utility │ │ │ │ ├── fft4g.c │ │ │ │ ├── fft4g.h │ │ │ │ ├── ring_buffer.c │ │ │ │ └── ring_buffer.h │ │ │ ├── system_wrappers │ │ │ ├── OWNERS │ │ │ ├── interface │ │ │ │ ├── aligned_malloc.h │ │ │ │ ├── atomic32_wrapper.h │ │ │ │ ├── condition_variable_wrapper.h │ │ │ │ ├── constructor_magic.h │ │ │ │ ├── cpu_features_wrapper.h │ │ │ │ ├── cpu_wrapper.h │ │ │ │ ├── critical_section_wrapper.h │ │ │ │ ├── data_log.h │ │ │ │ ├── data_log_impl.h │ │ │ │ ├── event_wrapper.h │ │ │ │ ├── file_wrapper.h │ │ │ │ ├── fix_interlocked_exchange_pointer_windows.h │ │ │ │ ├── list_wrapper.h │ │ │ │ ├── map_wrapper.h │ │ │ │ ├── ref_count.h │ │ │ │ ├── rpcsal.h │ │ │ │ ├── rw_lock_wrapper.h │ │ │ │ ├── scoped_ptr.h │ │ │ │ ├── sort.h │ │ │ │ ├── thread_wrapper.h │ │ │ │ ├── tick_util.h │ │ │ │ └── trace.h │ │ │ └── source │ │ │ │ ├── aligned_malloc.cc │ │ │ │ ├── atomic32.cc │ │ │ │ ├── atomic32_linux.h │ │ │ │ ├── atomic32_mac.h │ │ │ │ ├── atomic32_windows.h │ │ │ │ ├── condition_variable.cc │ │ │ │ ├── condition_variable_posix.cc │ │ │ │ ├── condition_variable_posix.h │ │ │ │ ├── condition_variable_windows.cc │ │ │ │ ├── condition_variable_windows.h │ │ │ │ ├── cpu.cc │ │ │ │ ├── cpu_features.cc │ │ │ │ ├── cpu_linux.cc │ │ │ │ ├── cpu_linux.h │ │ │ │ ├── cpu_mac.cc │ │ │ │ ├── cpu_mac.h │ │ │ │ ├── cpu_windows.cc │ │ │ │ ├── cpu_windows.h │ │ │ │ ├── critical_section.cc │ │ │ │ ├── critical_section_posix.cc │ │ │ │ ├── critical_section_posix.h │ │ │ │ ├── critical_section_windows.cc │ │ │ │ ├── critical_section_windows.h │ │ │ │ ├── data_log.cc │ │ │ │ ├── data_log_dummy.cc │ │ │ │ ├── data_log_helpers_unittest.cc │ │ │ │ ├── data_log_unittest.cc │ │ │ │ ├── event.cc │ │ │ │ ├── event_posix.cc │ │ │ │ ├── event_posix.h │ │ │ │ ├── event_windows.cc │ │ │ │ ├── event_windows.h │ │ │ │ ├── file_impl.cc │ │ │ │ ├── file_impl.h │ │ │ │ ├── list_no_stl.cc │ │ │ │ ├── list_no_stl.h │ │ │ │ ├── list_stl.cc │ │ │ │ ├── list_stl.h │ │ │ │ ├── list_unittest.cc │ │ │ │ ├── map.cc │ │ │ │ ├── map_no_stl.cc │ │ │ │ ├── map_no_stl.h │ │ │ │ ├── map_unittest.cc │ │ │ │ ├── rw_lock.cc │ │ │ │ ├── rw_lock_generic.cc │ │ │ │ ├── rw_lock_generic.h │ │ │ │ ├── rw_lock_posix.cc │ │ │ │ ├── rw_lock_posix.h │ │ │ │ ├── rw_lock_windows.cc │ │ │ │ ├── rw_lock_windows.h │ │ │ │ ├── sort.cc │ │ │ │ ├── spreadsortlib │ │ │ │ ├── constants.hpp │ │ │ │ └── spreadsort.hpp │ │ │ │ ├── thread.cc │ │ │ │ ├── thread_posix.cc │ │ │ │ ├── thread_posix.h │ │ │ │ ├── thread_windows.cc │ │ │ │ ├── thread_windows.h │ │ │ │ ├── thread_windows_set_name.h │ │ │ │ ├── trace_impl.cc │ │ │ │ ├── trace_impl.h │ │ │ │ ├── trace_posix.cc │ │ │ │ ├── trace_posix.h │ │ │ │ ├── trace_windows.cc │ │ │ │ └── trace_windows.h │ │ │ └── typedefs.h │ └── zsrtp │ │ ├── include │ │ ├── ZsrtpCWrapper.h │ │ └── openssl_compat.h │ │ ├── srtp │ │ └── ZsrtpCWrapper.cpp │ │ └── zrtp │ │ ├── COPYING │ │ ├── README.md │ │ ├── base_version │ │ ├── common │ │ ├── EventClass.cpp │ │ ├── EventClass.h │ │ ├── MutexClass.cpp │ │ ├── MutexClass.h │ │ ├── Thread.cpp │ │ ├── Thread.h │ │ ├── osSpecifics.c │ │ └── osSpecifics.h │ │ ├── cryptcommon │ │ ├── ZrtpRandom.cpp │ │ ├── ZrtpRandom.h │ │ ├── aes.h │ │ ├── aes_modes.c │ │ ├── aescpp.h │ │ ├── aescrypt.c │ │ ├── aeskey.c │ │ ├── aesopt.h │ │ ├── aestab.c │ │ ├── aestab.h │ │ ├── brg_endian.h │ │ ├── brg_types.h │ │ ├── macSkein.cpp │ │ ├── macSkein.h │ │ ├── skein.c │ │ ├── skein.h │ │ ├── skeinApi.c │ │ ├── skeinApi.h │ │ ├── skein_block.c │ │ ├── skein_iv.h │ │ ├── skein_port.h │ │ ├── twofish.c │ │ ├── twofish.h │ │ └── twofish_cfb.c │ │ ├── srtp │ │ ├── CryptoContext.cpp │ │ ├── CryptoContext.h │ │ ├── CryptoContextCtrl.cpp │ │ ├── CryptoContextCtrl.h │ │ ├── SrtpHandler.cpp │ │ ├── SrtpHandler.h │ │ └── crypto │ │ │ ├── SrtpSymCrypto.cpp │ │ │ ├── SrtpSymCrypto.h │ │ │ ├── gcrypt │ │ │ ├── InitializeGcrypt.cpp │ │ │ ├── gcryptSrtpSymCrypto.cpp │ │ │ └── gcrypthmac.cpp │ │ │ ├── hmac.cpp │ │ │ ├── hmac.h │ │ │ ├── openssl │ │ │ ├── SrtpSymCrypto.cpp │ │ │ └── hmac.cpp │ │ │ ├── sha1.c │ │ │ └── sha1.h │ │ └── zrtp │ │ ├── Base32.cpp │ │ ├── ZIDCacheDb.cpp │ │ ├── ZIDCacheFile.cpp │ │ ├── ZIDRecordDb.cpp │ │ ├── ZIDRecordFile.cpp │ │ ├── ZRtp.cpp │ │ ├── ZrtpCWrapper.cpp │ │ ├── ZrtpCallbackWrapper.cpp │ │ ├── ZrtpConfigure.cpp │ │ ├── ZrtpCrc32.cpp │ │ ├── ZrtpPacketClearAck.cpp │ │ ├── ZrtpPacketCommit.cpp │ │ ├── ZrtpPacketConf2Ack.cpp │ │ ├── ZrtpPacketConfirm.cpp │ │ ├── ZrtpPacketDHPart.cpp │ │ ├── ZrtpPacketError.cpp │ │ ├── ZrtpPacketErrorAck.cpp │ │ ├── ZrtpPacketGoClear.cpp │ │ ├── ZrtpPacketHello.cpp │ │ ├── ZrtpPacketHelloAck.cpp │ │ ├── ZrtpPacketPing.cpp │ │ ├── ZrtpPacketPingAck.cpp │ │ ├── ZrtpPacketRelayAck.cpp │ │ ├── ZrtpPacketSASrelay.cpp │ │ ├── ZrtpSdesStream.cpp │ │ ├── ZrtpStateClass.cpp │ │ ├── ZrtpTextData.cpp │ │ ├── crypto │ │ ├── aesCFB.cpp │ │ ├── aesCFB.h │ │ ├── gcrypt │ │ │ ├── InitializeGcrypt.cpp │ │ │ ├── gcryptAesCFB.cpp │ │ │ ├── gcryptZrtpDH.cpp │ │ │ ├── gcrypthmac256.cpp │ │ │ ├── gcrypthmac384.cpp │ │ │ ├── gcryptsha256.cpp │ │ │ └── gcryptsha384.cpp │ │ ├── hmac256.cpp │ │ ├── hmac256.h │ │ ├── hmac384.cpp │ │ ├── hmac384.h │ │ ├── openssl │ │ │ ├── InitializeOpenSSL.cpp │ │ │ ├── aesCFB.cpp │ │ │ ├── hmac256.cpp │ │ │ ├── hmac384.cpp │ │ │ ├── sha256.cpp │ │ │ ├── sha384.cpp │ │ │ └── zrtpDH.cpp │ │ ├── sha2.c │ │ ├── sha2.h │ │ ├── sha256.cpp │ │ ├── sha256.h │ │ ├── sha384.cpp │ │ ├── sha384.h │ │ ├── skein256.cpp │ │ ├── skein256.h │ │ ├── skein384.cpp │ │ ├── skein384.h │ │ ├── skeinMac256.cpp │ │ ├── skeinMac256.h │ │ ├── skeinMac384.cpp │ │ ├── skeinMac384.h │ │ ├── twoCFB.cpp │ │ ├── twoCFB.h │ │ ├── zrtpDH.cpp │ │ └── zrtpDH.h │ │ ├── libzrtpcpp │ │ ├── Base32.h │ │ ├── ZIDCache.h │ │ ├── ZIDCacheDb.h │ │ ├── ZIDCacheFile.h │ │ ├── ZIDRecord.h │ │ ├── ZIDRecordDb.h │ │ ├── ZIDRecordFile.h │ │ ├── ZRtp.h │ │ ├── ZrtpCWrapper.h │ │ ├── ZrtpCallback.h │ │ ├── ZrtpCallbackWrapper.h │ │ ├── ZrtpCodes.h │ │ ├── ZrtpConfigure.h │ │ ├── ZrtpCrc32.h │ │ ├── ZrtpPacketBase.h │ │ ├── ZrtpPacketClearAck.h │ │ ├── ZrtpPacketCommit.h │ │ ├── ZrtpPacketConf2Ack.h │ │ ├── ZrtpPacketConfirm.h │ │ ├── ZrtpPacketDHPart.h │ │ ├── ZrtpPacketError.h │ │ ├── ZrtpPacketErrorAck.h │ │ ├── ZrtpPacketGoClear.h │ │ ├── ZrtpPacketHello.h │ │ ├── ZrtpPacketHelloAck.h │ │ ├── ZrtpPacketPing.h │ │ ├── ZrtpPacketPingAck.h │ │ ├── ZrtpPacketRelayAck.h │ │ ├── ZrtpPacketSASrelay.h │ │ ├── ZrtpSdesStream.h │ │ ├── ZrtpStateClass.h │ │ ├── ZrtpStates.h │ │ ├── ZrtpTextData.h │ │ ├── ZrtpUserCallback.h │ │ ├── zrtpB64Decode.h │ │ ├── zrtpB64Encode.h │ │ ├── zrtpCacheDbBackend.h │ │ └── zrtpPacket.h │ │ ├── zrtpB64Decode.c │ │ ├── zrtpB64Encode.c │ │ └── zrtpCacheSqliteBackend.c │ └── version.mak ├── docs ├── Dependencies.txt ├── DeveloperGuide.txt ├── Install.debian ├── Install.linux ├── Install.osx ├── Install.rasbian ├── Install.ubuntu ├── Install.windows ├── Licenses.txt └── Uninstall.txt ├── setup.py ├── setup_pjsip.py └── sipsimple ├── __info__.py ├── __init__.py ├── account ├── __init__.py ├── bonjour │ ├── __init__.py │ └── _bonjour.py ├── publication.py ├── registration.py ├── subscription.py └── xcap │ ├── __init__.py │ └── storage │ ├── __init__.py │ ├── file.py │ └── memory.py ├── addressbook.py ├── application.py ├── audio.py ├── configuration ├── __init__.py ├── backend │ ├── __init__.py │ ├── file.py │ └── memory.py ├── datatypes.py └── settings.py ├── core ├── __init__.py ├── _core.error.pxi ├── _core.event.pxi ├── _core.headers.pxi ├── _core.helper.pxi ├── _core.invitation.pxi ├── _core.lib.pxi ├── _core.mediatransport.pxi ├── _core.pxd ├── _core.pyx ├── _core.referral.pxi ├── _core.request.pxi ├── _core.sdp.pxi ├── _core.sound.pxi ├── _core.subscription.pxi ├── _core.ua.pxi ├── _core.util.pxi ├── _core.video.pxi ├── _engine.py ├── _helpers.py └── _primitives.py ├── logging.py ├── lookup.py ├── payloads ├── README.txt ├── __init__.py ├── addressbook.py ├── caps.py ├── cipid.py ├── commonpolicy.py ├── conference.py ├── datatypes.py ├── dialoginfo.py ├── dialogrules.py ├── directory.py ├── imdn.py ├── iscomposing.py ├── messagesummary.py ├── omapolicy.py ├── pidf.py ├── prescontent.py ├── presrules.py ├── resourcelists.py ├── rlmi.py ├── rlsnotify.py ├── rlsservices.py ├── rpid.py ├── watcherinfo.py ├── xcapcaps.py ├── xcapdiff.py └── xml-schemas │ ├── addressbook.xsd │ ├── caps.xsd │ ├── cipid.xsd │ ├── common-policy.xsd │ ├── common-schema.xsd │ ├── conference.xsd │ ├── data-model.xsd │ ├── dialog-info.xsd │ ├── dialog-rules.xsd │ ├── im-iscomposing.xsd │ ├── imdn.xsd │ ├── oma-common-policy.xsd │ ├── oma-pres-content.xsd │ ├── patchops.xsd │ ├── pidf.xsd │ ├── pres-rules.xsd │ ├── resourcelists.xsd │ ├── rlmi.xsd │ ├── rlsservices.xsd │ ├── rpid.xsd │ ├── watcherinfo.xsd │ ├── xcap-caps.xsd │ ├── xcap-directory.xsd │ ├── xcapdiff.xsd │ └── xml.xsd ├── session.py ├── storage.py ├── streams ├── __init__.py ├── msrp │ ├── __init__.py │ ├── chat.py │ ├── filetransfer.py │ └── screensharing.py └── rtp │ ├── __init__.py │ ├── audio.py │ └── video.py ├── threading ├── __init__.py └── green.py ├── util ├── __init__.py ├── _sha1.h └── _sha1.pyx └── video.py /.boring: -------------------------------------------------------------------------------- 1 | # 2 | # Boring file regular expresions 3 | # 4 | 5 | ~$ 6 | \# 7 | (^|/)\.DS_Store$ 8 | (^|/)Thumbs\.db$ 9 | (^|/)core(\.[0-9]+)?$ 10 | \.(pyc|pyo|o|so|orig|rej|prof|bak|BAK|tmp|wpr|wpu|swp|swo|komodoproject)$ 11 | 12 | (^|/)\.idea($|/) 13 | (^|/)\.komodotools($|/) 14 | (^|/)_darcs($|/) 15 | (^|/)autom4te.cache($|/) 16 | (^|/)tags($|/) 17 | 18 | ^MANIFEST$ 19 | ^build($|/) 20 | ^dist($|/) 21 | ^test($|/) 22 | ^sipsimple/core/_core.c$ 23 | ^sipsimple/util/_sha1.c$ 24 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Adrian Georgescu 2 | Dan Pascu 3 | Ruud Klaver 4 | Denis Bilenko 5 | Lucian Stanescu 6 | Saúl Ibarra 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright: 2008-2020 AG Projects 2 | 3 | License: GPL-3+ 4 | 5 | This package is free software; you can redistribute it and/or modify it 6 | under the terms of the GNU General Public License as published by the 7 | Free Software Foundation; either version 3 of the License, or (at your 8 | option) any later version. 9 | 10 | This package 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 | For a copy of the license see https://www.gnu.org/licenses/gpl.html 16 | 17 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include AUTHORS 2 | include LICENSE 3 | include README 4 | include MANIFEST.in 5 | 6 | include build_inplace 7 | include setup_pjsip.py 8 | 9 | include sipsimple/payloads/xml-schemas/*.xsd 10 | include sipsimple/util/_sha1.h 11 | 12 | include debian/changelog 13 | include debian/compat 14 | include debian/control 15 | include debian/copyright 16 | include debian/dirs 17 | include debian/docs 18 | include debian/pycompat 19 | include debian/pyversions 20 | include debian/python-sipsimple.lintian-overrides 21 | include debian/python-sipsimple-dbg.lintian-overrides 22 | include debian/rules 23 | include debian/source/format 24 | 25 | recursive-include docs * 26 | recursive-include deps * 27 | -------------------------------------------------------------------------------- /build_inplace: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | python setup.py build_ext --inplace "$@" 4 | test -d build && python setup.py clean 5 | 6 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Copyright: 2008-2020 AG Projects 2 | 3 | License: GPL-3+ 4 | 5 | This package is free software; you can redistribute it and/or modify it 6 | under the terms of the GNU General Public License as published by the 7 | Free Software Foundation; either version 3 of the License, or (at your 8 | option) any later version. 9 | 10 | This package 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 | For a copy of the license see /usr/share/common-licenses/GPL-3 16 | 17 | -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | docs/DeveloperGuide.txt 2 | -------------------------------------------------------------------------------- /debian/python-sipsimple.lintian-overrides: -------------------------------------------------------------------------------- 1 | binary: possible-gpl-code-linked-with-openssl 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | export DEB_BUILD_HARDENING = 1 4 | export PYBUILD_NAME = sipsimple 5 | 6 | %: 7 | dh $@ --with python2 --buildsystem=pybuild 8 | 9 | override_dh_clean: 10 | dh_clean 11 | rm -rf build dist MANIFEST 12 | 13 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /deps/pjsip/base_rev: -------------------------------------------------------------------------------- 1 | 5249 2 | -------------------------------------------------------------------------------- /deps/pjsip/build/cc-auto.mak.in: -------------------------------------------------------------------------------- 1 | export CC = @CC@ -c 2 | export CXX = @CXX@ -c 3 | export AR = @AR@ 4 | export AR_FLAGS = @AR_FLAGS@ 5 | export LD = @LD@ 6 | export LDOUT = -o 7 | export RANLIB = @RANLIB@ 8 | 9 | export OBJEXT := .@OBJEXT@ 10 | export LIBEXT := .@LIBEXT@ 11 | export LIBEXT2 := @LIBEXT2@ 12 | 13 | export CC_OUT := @CC_OUT@ 14 | export CC_INC := @CC_INC@ 15 | export CC_DEF := @CC_DEF@ 16 | export CC_OPTIMIZE := @CC_OPTIMIZE@ 17 | export CC_LIB := -l 18 | 19 | export CC_SOURCES := 20 | export CC_CFLAGS := @CC_CFLAGS@ 21 | export CC_LDFLAGS := 22 | 23 | -------------------------------------------------------------------------------- /deps/pjsip/build/cc-gcc.mak: -------------------------------------------------------------------------------- 1 | export CC = $(CROSS_COMPILE)gcc -c 2 | export AR = $(CROSS_COMPILE)ar rv 3 | export LD = $(CROSS_COMPILE)gcc 4 | export LDOUT = -o 5 | export RANLIB = $(CROSS_COMPILE)ranlib 6 | 7 | export OBJEXT := .o 8 | export LIBEXT := .a 9 | export LIBEXT2 := 10 | 11 | export CC_OUT := -o 12 | export CC_INC := -I 13 | export CC_DEF := -D 14 | export CC_OPTIMIZE := -O2 15 | export CC_LIB := -l 16 | 17 | export CC_SOURCES := 18 | export CC_CFLAGS := -Wall 19 | #export CC_CFLAGS += -Wdeclaration-after-statement 20 | #export CC_CXXFLAGS := -Wdeclaration-after-statement 21 | export CC_LDFLAGS := 22 | 23 | -------------------------------------------------------------------------------- /deps/pjsip/build/host-mingw.mak: -------------------------------------------------------------------------------- 1 | export HOST_MV := mv 2 | export HOST_RM := rm -f @@ 3 | export HOST_RMR := rm -rf @@ 4 | export HOST_RMDIR := rm -rf @@ 5 | export HOST_MKDIR := mkdir @@ 6 | export HOST_EXE := .exe 7 | export HOST_PSEP := / 8 | 9 | export HOST_SOURCES := 10 | export HOST_CFLAGS := 11 | export HOST_CXXFLAGS := 12 | export HOST_LDFLAGS := $(CC_LIB)stdc++$(LIBEXT2) 13 | 14 | -------------------------------------------------------------------------------- /deps/pjsip/build/host-unix.mak: -------------------------------------------------------------------------------- 1 | export HOST_MV := mv 2 | export HOST_RM := rm -f @@ 3 | export HOST_RMR := rm -rf @@ 4 | export HOST_RMDIR := rm -rf @@ 5 | export HOST_MKDIR := mkdir -p @@ 6 | export HOST_EXE := $(HOST_EXE) 7 | export HOST_PSEP := / 8 | 9 | export HOST_SOURCES := 10 | export HOST_CFLAGS := 11 | export HOST_CXXFLAGS := 12 | export HOST_LDFLAGS := 13 | 14 | -------------------------------------------------------------------------------- /deps/pjsip/build/host-win32.mak: -------------------------------------------------------------------------------- 1 | export HOST_MV := ren 2 | export HOST_RM := if exist @@; del /F /Q @@ 3 | export HOST_RMR := if exist @@; del /F /Q @@ 4 | export HOST_RMDIR := if exist @@; rmdir @@ 5 | export HOST_MKDIR := if not exist @@; mkdir @@ 6 | export HOST_EXE := .exe 7 | export HOST_PSEP := \\ 8 | 9 | export HOST_SOURCES := 10 | export HOST_CFLAGS := 11 | export HOST_CXXFLAGS := 12 | export HOST_LDFLAGS := 13 | -------------------------------------------------------------------------------- /deps/pjsip/build/m-arm.mak: -------------------------------------------------------------------------------- 1 | export M_CFLAGS := $(CC_DEF)PJ_M_ARMV4=1 2 | export M_CXXFLAGS := 3 | export M_LDFLAGS := 4 | export M_SOURCES := 5 | -------------------------------------------------------------------------------- /deps/pjsip/build/m-auto.mak: -------------------------------------------------------------------------------- 1 | # Nothing needs to be defined here 2 | -------------------------------------------------------------------------------- /deps/pjsip/build/m-i386.mak: -------------------------------------------------------------------------------- 1 | export M_CFLAGS := $(CC_DEF)PJ_M_I386=1 2 | export M_CXXFLAGS := 3 | export M_LDFLAGS := 4 | export M_SOURCES := 5 | -------------------------------------------------------------------------------- /deps/pjsip/build/m-x86_64.mak: -------------------------------------------------------------------------------- 1 | export M_CFLAGS := $(CC_DEF)PJ_M_X86_64=1 2 | export M_CXXFLAGS := 3 | export M_LDFLAGS := 4 | export M_SOURCES := 5 | -------------------------------------------------------------------------------- /deps/pjsip/build/os-auto.mak.in: -------------------------------------------------------------------------------- 1 | # @configure_input@ 2 | 3 | export OS_CFLAGS := $(CC_DEF)PJ_AUTOCONF=1 @CFLAGS@ 4 | 5 | export OS_CXXFLAGS := $(CC_DEF)PJ_AUTOCONF=1 @CXXFLAGS@ 6 | 7 | export OS_LDFLAGS := @LDFLAGS@ @LIBS@ 8 | 9 | export OS_SOURCES := 10 | 11 | 12 | -------------------------------------------------------------------------------- /deps/pjsip/configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ./aconfigure "$@" 4 | 5 | # Note: 6 | # if you're looking for the old configure script, it has been renamed 7 | # to configure-legacy 8 | 9 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib-util/docs/footer.html: -------------------------------------------------------------------------------- 1 |

 

2 |
3 | PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
4 | Copyright (C) 2006-2009 Teluu Inc. 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib-util/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title ($projectnumber) 4 | 5 | 6 | 7 |

Home --> Documentations --> PJLIB-UTIL Reference

8 | 9 | 10 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib-util/src/pjlib-util/resolver_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: resolver_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "resolver.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib-util/src/pjlib-util/xml_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: xml_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "xml.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/build/os-auto.mak.in: -------------------------------------------------------------------------------- 1 | # @configure_input@ 2 | 3 | # Determine OS specific files 4 | AC_OS_OBJS=@ac_os_objs@ 5 | 6 | # 7 | # PJLIB_OBJS specified here are object files to be included in PJLIB 8 | # (the library) for this specific operating system. Object files common 9 | # to all operating systems should go in Makefile instead. 10 | # 11 | export PJLIB_OBJS += $(AC_OS_OBJS) \ 12 | addr_resolv_sock.o \ 13 | log_writer_stdout.o \ 14 | os_timestamp_common.o \ 15 | pool_policy_malloc.o sock_bsd.o sock_select.o 16 | 17 | # 18 | # TEST_OBJS are operating system specific object files to be included in 19 | # the test application. 20 | # 21 | export TEST_OBJS += @ac_main_obj@ 22 | 23 | # 24 | # Additional LDFLAGS for pjlib-test 25 | # 26 | export TEST_LDFLAGS += @LDFLAGS@ @LIBS@ 27 | 28 | # 29 | # TARGETS are make targets in the Makefile, to be executed for this given 30 | # operating system. 31 | # 32 | export TARGETS = pjlib 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/docs/footer.html: -------------------------------------------------------------------------------- 1 |

 

2 |
3 | PJLIB Open Source, high performance, small footprint, and very very portable framework
4 | Copyright (C) 2006-2009 Teluu Inc. 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title ($projectnumber) 4 | 5 | 6 | 7 |

Home --> Documentations --> PJLIB Reference

8 | 9 | 10 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_alpha.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_alpha.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_ALPHA_H__ 21 | #define __PJ_COMPAT_M_ALPHA_H__ 22 | 23 | /** 24 | * @file m_alpha.h 25 | * @brief Describes Alpha processor family specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "alpha" 29 | 30 | #define PJ_HAS_PENTIUM 0 31 | #define PJ_IS_LITTLE_ENDIAN 1 32 | #define PJ_IS_BIG_ENDIAN 0 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_ALPHA_H__ */ 36 | 37 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_armv4.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_armv4.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_ARMV4_H__ 21 | #define __PJ_COMPAT_M_ARMV4_H__ 22 | 23 | /** 24 | * @file m_armv4.h 25 | * @brief Describes ARM family processor specifics. 26 | */ 27 | 28 | /* 29 | * This file covers PJ_M_ARMV4 etc. 30 | */ 31 | 32 | #define PJ_M_NAME "armv4" 33 | 34 | #define PJ_HAS_PENTIUM 0 35 | #define PJ_IS_LITTLE_ENDIAN 1 36 | #define PJ_IS_BIG_ENDIAN 0 37 | 38 | 39 | #endif /* __PJ_COMPAT_M_ARMV4_H__ */ 40 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_i386.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_i386.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_i386_H__ 21 | #define __PJ_COMPAT_M_i386_H__ 22 | 23 | /** 24 | * @file m_i386.h 25 | * @brief Describes Intel i386 family processor specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "i386" 29 | 30 | #define PJ_HAS_PENTIUM 1 31 | #define PJ_IS_LITTLE_ENDIAN 1 32 | #define PJ_IS_BIG_ENDIAN 0 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_i386_H__ */ 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_m68k.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_m68k.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_M68K_H__ 21 | #define __PJ_COMPAT_M_M68K_H__ 22 | 23 | /** 24 | * @file m_m68k.h 25 | * @brief Describes Motorola m68k family processor specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "m68k" 29 | 30 | #define PJ_HAS_PENTIUM 0 31 | #define PJ_IS_LITTLE_ENDIAN 1 32 | #define PJ_IS_BIG_ENDIAN 0 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_M68K_H__ */ 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_powerpc.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_powerpc.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_POWERPC_H__ 21 | #define __PJ_COMPAT_M_POWERPC_H__ 22 | 23 | /** 24 | * @file m_ppc.h 25 | * @brief Describes PowerPC family processor specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "powerpc" 29 | 30 | #define PJ_HAS_PENTIUM 0 31 | #define PJ_IS_LITTLE_ENDIAN 0 32 | #define PJ_IS_BIG_ENDIAN 1 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_POWERPC_H__ */ 36 | 37 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_sparc.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_sparc.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_SPARC_H__ 21 | #define __PJ_COMPAT_M_SPARC_H__ 22 | 23 | /** 24 | * @file m_sparc.h 25 | * @brief Describes SPARC family processor specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "sparc" 29 | 30 | #define PJ_HAS_PENTIUM 0 31 | #define PJ_IS_LITTLE_ENDIAN 0 32 | #define PJ_IS_BIG_ENDIAN 1 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_SPARC_H__ */ 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/m_x86_64.h: -------------------------------------------------------------------------------- 1 | /* $Id: m_x86_64.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_M_x86_64_H__ 21 | #define __PJ_COMPAT_M_x86_64_H__ 22 | 23 | /** 24 | * @file m_i386.h 25 | * @brief Describes 64bit x86 Intel/AMD family processor specifics. 26 | */ 27 | 28 | #define PJ_M_NAME "x86_64" 29 | 30 | #define PJ_HAS_PENTIUM 1 31 | #define PJ_IS_LITTLE_ENDIAN 1 32 | #define PJ_IS_BIG_ENDIAN 0 33 | 34 | 35 | #endif /* __PJ_COMPAT_M_x86_64_H__ */ 36 | 37 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/malloc.h: -------------------------------------------------------------------------------- 1 | /* $Id: malloc.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_MALLOC_H__ 21 | #define __PJ_COMPAT_MALLOC_H__ 22 | 23 | /** 24 | * @file malloc.h 25 | * @brief Provides malloc() and free() functions. 26 | */ 27 | 28 | #if defined(PJ_HAS_MALLOC_H) && PJ_HAS_MALLOC_H != 0 29 | # include 30 | #elif defined(PJ_HAS_STDLIB_H) && PJ_HAS_STDLIB_H != 0 31 | # include 32 | #endif 33 | 34 | #endif /* __PJ_COMPAT_MALLOC_H__ */ 35 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/size_t.h: -------------------------------------------------------------------------------- 1 | /* $Id: size_t.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_SIZE_T_H__ 21 | #define __PJ_COMPAT_SIZE_T_H__ 22 | 23 | /** 24 | * @file size_t.h 25 | * @brief Provides size_t type. 26 | */ 27 | #if PJ_HAS_STDDEF_H 28 | # include 29 | #endif 30 | 31 | #endif /* __PJ_COMPAT_SIZE_T_H__ */ 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/stdarg.h: -------------------------------------------------------------------------------- 1 | /* $Id: stdarg.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_STDARG_H__ 21 | #define __PJ_COMPAT_STDARG_H__ 22 | 23 | /** 24 | * @file stdarg.h 25 | * @brief Provides stdarg functionality. 26 | */ 27 | 28 | #if defined(PJ_HAS_STDARG_H) && PJ_HAS_STDARG_H != 0 29 | # include 30 | #endif 31 | 32 | #endif /* __PJ_COMPAT_STDARG_H__ */ 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/stdfileio.h: -------------------------------------------------------------------------------- 1 | /* $Id: stdfileio.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_STDFILEIO_H__ 21 | #define __PJ_COMPAT_STDFILEIO_H__ 22 | 23 | /** 24 | * @file stdfileio.h 25 | * @brief Compatibility for ANSI file I/O like fputs, fflush, etc. 26 | */ 27 | 28 | #if defined(PJ_HAS_STDIO_H) && PJ_HAS_STDIO_H != 0 29 | # include 30 | #endif 31 | 32 | #endif /* __PJ_COMPAT_STDFILEIO_H__ */ 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pj/compat/time.h: -------------------------------------------------------------------------------- 1 | /* $Id: time.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJ_COMPAT_TIME_H__ 21 | #define __PJ_COMPAT_TIME_H__ 22 | 23 | /** 24 | * @file time.h 25 | * @brief Provides ftime() and localtime() etc functions. 26 | */ 27 | 28 | #if defined(PJ_HAS_TIME_H) && PJ_HAS_TIME_H != 0 29 | # include 30 | #endif 31 | 32 | #if defined(PJ_HAS_SYS_TIME_H) && PJ_HAS_SYS_TIME_H != 0 33 | # include 34 | #endif 35 | 36 | #if defined(PJ_HAS_SYS_TIMEB_H) && PJ_HAS_SYS_TIMEB_H != 0 37 | # include 38 | #endif 39 | 40 | 41 | #endif /* __PJ_COMPAT_TIME_H__ */ 42 | 43 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/include/pjlib++.hpp: -------------------------------------------------------------------------------- 1 | /* $Id: pjlib++.hpp 2394 2008-12-23 17:27:53Z bennylp $ */ 2 | /* 3 | * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJLIBPP_H__ 21 | #define __PJLIBPP_H__ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | 35 | #endif /* __PJLIBPP_H__ */ 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/addr_resolv_linux_kernel.c: -------------------------------------------------------------------------------- 1 | /* $Id: addr_resolv_linux_kernel.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | 22 | PJ_DEF(pj_status_t) pj_gethostbyname(const pj_str_t *hostname, pj_hostent *phe) 23 | { 24 | return -1; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/compat/sigjmp.c: -------------------------------------------------------------------------------- 1 | /* $Id: sigjmp.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | #include 22 | 23 | int __sigjmp_save(sigjmp_buf env, int savemask) 24 | { 25 | return 0; 26 | } 27 | 28 | extern int __sigsetjmp(pj_jmp_buf env, int savemask); 29 | extern void __longjmp(pj_jmp_buf env, int val) __attribute__((noreturn)); 30 | 31 | PJ_DEF(int) pj_setjmp(pj_jmp_buf env) 32 | { 33 | return __sigsetjmp(env, 0); 34 | } 35 | 36 | PJ_DEF(void) pj_longjmp(pj_jmp_buf env, int val) 37 | { 38 | __longjmp(env, val); 39 | } 40 | 41 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/ctype.c: -------------------------------------------------------------------------------- 1 | /* $Id: ctype.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | 22 | /* 23 | char pj_hex_digits[] = {'0', '1', '2', '3', '4', '5', '6', '7', 24 | '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; 25 | */ 26 | 27 | int pjlib_ctype_c_dummy_symbol; 28 | 29 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/list.c: -------------------------------------------------------------------------------- 1 | /* $Id: list.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | 22 | #if !PJ_FUNCTIONS_ARE_INLINED 23 | # include 24 | #endif 25 | 26 | 27 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/log_writer_printk.c: -------------------------------------------------------------------------------- 1 | /* $Id: log_writer_printk.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | #include 22 | 23 | PJ_DEF(void) pj_log_write(int level, const char *buffer, int len) 24 | { 25 | PJ_CHECK_STACK(); 26 | printk(KERN_INFO "%s", buffer); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/os_info_symbian.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjlib/src/pj/os_info_symbian.cpp -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/os_time_bsd.c: -------------------------------------------------------------------------------- 1 | /* $Id: os_time_bsd.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | #include 22 | 23 | /////////////////////////////////////////////////////////////////////////////// 24 | 25 | PJ_DEF(pj_status_t) pj_gettimeofday(pj_time_val *tv) 26 | { 27 | struct timeb tb; 28 | 29 | PJ_CHECK_STACK(); 30 | 31 | ftime(&tb); 32 | tv->sec = tb.time; 33 | tv->msec = tb.millitm; 34 | return PJ_SUCCESS; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/rand.c: -------------------------------------------------------------------------------- 1 | /* $Id: rand.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | #include 22 | #include 23 | 24 | PJ_DEF(void) pj_srand(unsigned int seed) 25 | { 26 | PJ_CHECK_STACK(); 27 | platform_srand(seed); 28 | } 29 | 30 | PJ_DEF(int) pj_rand(void) 31 | { 32 | PJ_CHECK_STACK(); 33 | return platform_rand(); 34 | } 35 | 36 | -------------------------------------------------------------------------------- /deps/pjsip/pjlib/src/pj/types.c: -------------------------------------------------------------------------------- 1 | /* $Id: types.c 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #include 21 | #include 22 | 23 | PJ_DEF(void) pj_time_val_normalize(pj_time_val *t) 24 | { 25 | PJ_CHECK_STACK(); 26 | 27 | if (t->msec >= 1000) { 28 | t->sec += (t->msec / 1000); 29 | t->msec = (t->msec % 1000); 30 | } 31 | else if (t->msec <= -1000) { 32 | do { 33 | t->sec--; 34 | t->msec += 1000; 35 | } while (t->msec <= -1000); 36 | } 37 | 38 | if (t->sec >= 1 && t->msec < 0) { 39 | t->sec--; 40 | t->msec += 1000; 41 | 42 | } else if (t->sec < 0 && t->msec > 0) { 43 | t->sec++; 44 | t->msec -= 1000; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/README.txt: -------------------------------------------------------------------------------- 1 | [Last Update: 2006/03/04] 2 | 3 | This directory contains two static libraries: 4 | - pjmedia 5 | The multimedia framework. 6 | 7 | - pjmedia-codec 8 | Codec collections. 9 | 10 | pjmedia has G711 codecs (Alaw and ULaw). 11 | 12 | pjmedia-codec has: 13 | - GSM-FR implementation 14 | Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 15 | Universitaet Berlin 16 | 17 | - Speex 1.1.12 18 | http://www.speex.org 19 | 20 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/footer.html: -------------------------------------------------------------------------------- 1 |

 

2 |
3 | PJMEDIA small footprint Open Source media stack
4 | Copyright (C) 2006-2008 Teluu Inc. 5 |
6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title ($projectnumber) 4 | 5 | 6 | 7 | 8 |

Home --> Documentations --> PJMEDIA Reference

9 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/master-port.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/master-port.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/media-flow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/media-flow.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/media-flow.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/media-flow.vsd -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/media-srtp-transport.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/media-srtp-transport.PNG -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/media-transport.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/media-transport.PNG -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/sample-manual-resampling.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/sample-manual-resampling.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/siprtp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/siprtp.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/docs/sndtest.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/docs/sndtest.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia-codec/g7221.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjmedia/include/pjmedia-codec/g7221.h -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia-codec/opus.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __PJMEDIA_CODEC_OPUS_CODEC_H__ 3 | #define __PJMEDIA_CODEC_OPUS_CODEC_H__ 4 | 5 | /** 6 | * @file pj_opus.h 7 | * @brief OPUS codec. 8 | */ 9 | 10 | #include 11 | 12 | 13 | PJ_BEGIN_DECL 14 | 15 | PJ_DECL(pj_status_t) pjmedia_codec_opus_init( pjmedia_endpt *endpt); 16 | PJ_DECL(pj_status_t) pjmedia_codec_opus_deinit(void); 17 | 18 | PJ_END_DECL 19 | 20 | 21 | /** 22 | * @} 23 | */ 24 | 25 | #endif /* __PJMEDIA_CODEC_OPUS_CODEC_H__ */ 26 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia-videodev/fb_dev.h: -------------------------------------------------------------------------------- 1 | /* $Id$ */ 2 | /* 3 | * Copyright (C) 2014-present AG Projects 4 | * Copyright (C) 2013-2014 Teluu Inc. (http://www.teluu.com) 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef PJMEDIA_VIDEODEV_FB_DEV_H__ 21 | #define PJMEDIA_VIDEODEV_FB_DEV_H__ 22 | 23 | #include 24 | 25 | typedef void (*pjmedia_vid_dev_fb_frame_cb)(const pjmedia_frame *frame, const pjmedia_rect_size size, void *user_data); 26 | 27 | pj_status_t 28 | pjmedia_vid_dev_fb_set_callback(pjmedia_vid_dev_stream *strm, 29 | pjmedia_vid_dev_fb_frame_cb cb, 30 | void *user_data); 31 | 32 | #endif /* PJMEDIA_VIDEODEV_FB_DEV_H__ */ 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia/config_auto.h.in: -------------------------------------------------------------------------------- 1 | /* $Id: config_auto.h.in 3295 2010-08-25 12:51:29Z bennylp $ */ 2 | /* 3 | * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJMEDIA_CONFIG_AUTO_H_ 21 | #define __PJMEDIA_CONFIG_AUTO_H_ 22 | 23 | /** 24 | * @file config_auto.h 25 | * @brief PJMEDIA configuration as set by autoconf script 26 | */ 27 | 28 | /* 29 | * Note: 30 | * The configuration in config_site.h overrides any other settings, 31 | * including the setting as detected by autoconf. 32 | */ 33 | 34 | /* G711 codec */ 35 | #ifndef PJMEDIA_HAS_G711_CODEC 36 | #undef PJMEDIA_HAS_G711_CODEC 37 | #endif 38 | 39 | 40 | #endif /* __PJMEDIA_CONFIG_AUTO_H_ */ 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia_audiodev.h: -------------------------------------------------------------------------------- 1 | /* $Id: pjmedia_audiodev.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJMEDIA_AUDIODEV_H__ 21 | #define __PJMEDIA_AUDIODEV_H__ 22 | 23 | /** 24 | * @file pjmedia_audiodev.h 25 | * @brief PJMEDIA main header file. 26 | */ 27 | 28 | #include 29 | #include 30 | 31 | #endif /* __PJMEDIA_AUDIODEV_H__ */ 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/include/pjmedia_videodev.h: -------------------------------------------------------------------------------- 1 | /* $Id: pjmedia_videodev.h 4016 2012-04-04 05:05:50Z bennylp $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 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 __PJMEDIA_VIDEODEV_H__ 20 | #define __PJMEDIA_VIDEODEV_H__ 21 | 22 | /** 23 | * @file pjmedia_videodev.h 24 | * @brief PJMEDIA main header file. 25 | */ 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | #endif /* __PJMEDIA_VIDEODEV_H__ */ 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/src/pjmedia/dummy.c: -------------------------------------------------------------------------------- 1 | /* $Id: dummy.c 3715 2011-08-19 09:35:25Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | 21 | #include 22 | #include 23 | #include 24 | 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjmedia/src/pjmedia/sdp_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sdp_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sdp.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/UML-class-diagram.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/UML-class-diagram.dia -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/UML-class-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/UML-class-diagram.png -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/doc_nat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/doc_nat.h -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/footer.html: -------------------------------------------------------------------------------- 1 | 2 |

 

3 |
4 | PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
5 | Copyright (C) 2006-2009 Teluu Inc. 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title ($projectnumber) 4 | 5 | 6 | 7 |
8 |

Home --> Documentations --> PJNATH Reference

9 | 10 | 11 | -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/ice-arch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/ice-arch.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/ice_demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/ice_demo.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/pjturn_client.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/pjturn_client.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjnath/docs/stun-arch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjnath/docs/stun-arch.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjsip/build/os-auto.mak.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjsip/build/os-auto.mak.in -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/PJSUA-TESTING.txt: -------------------------------------------------------------------------------- 1 | TESTING 2 | 3 | SANITY CHECKS: 4 | - Do pjlib-test 5 | - Do pjsip-test 6 | 7 | BASIC FLOW TEST (compaq1.cfg, compaq2.cfg); 8 | - with other pjsua 9 | - with EyeBeam 10 | - Register 11 | - with Route 12 | - without Route 13 | - with TCP 14 | - Presence (client and server) 15 | - Call (UAC and UAS) 16 | - hold and being held 17 | - DTMF send/receive 18 | - IM and typing 19 | - Call transfer (with and without norefersub) 20 | - Call Hold 21 | - Re-Invite 22 | - DTMF 23 | - RTCP 24 | - TCP (if there's UDP route, then Contact will be UDP) 25 | 26 | - Repeat basic flow test without Route set (to wheter TCP is correctly specified in the contact etc) 27 | 28 | 29 | - STUN test (fwd1.cfg) 30 | 31 | COMPATIBILITY WITH FWD 32 | - presence (xpidf) 33 | 34 | 35 | MULTIPLE ACCOUNTS (combo.cfg) 36 | 37 | DIGEST with qop=auth (sipcenter?) 38 | 39 | AUDIO QUALITY 40 | - call to another pjsua that loops incoming call 41 | 42 | TEST THE SAMPLES 43 | 44 | LINUX TEST 45 | 46 | UPDATE DOCUMENTATION 47 | 48 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/footer.html: -------------------------------------------------------------------------------- 1 |

 

2 |
3 | PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
4 | Copyright (C) 2006-2008 Teluu Inc. 5 |
6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title ($projectnumber) 4 | 5 | 6 | 7 |

Home --> Documentations --> PJSIP Reference

8 | 9 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/pjsip-arch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjsip/docs/pjsip-arch.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/pjsip-perf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjsip/docs/pjsip-perf.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/pjsua.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjsip/docs/pjsua.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjsip/docs/siprtp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/pjsip/docs/siprtp.jpg -------------------------------------------------------------------------------- /deps/pjsip/pjsip/include/pjsip-simple/types.h: -------------------------------------------------------------------------------- 1 | /* $Id: types.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJSIP_SIMPLE_TYPES_H__ 21 | #define __PJSIP_SIMPLE_TYPES_H__ 22 | 23 | #include 24 | 25 | 26 | #define PJSIP_EVSUB_POOL_LEN 4000 27 | #define PJSIP_EVSUB_POOL_INC 4000 28 | 29 | 30 | #endif /* __PJSIP_SIMPLE_TYPES_H__ */ 31 | 32 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/include/pjsip/sip_private.h: -------------------------------------------------------------------------------- 1 | /* $Id: sip_private.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJSIP_SIP_PRIVATE_H__ 21 | #define __PJSIP_SIP_PRIVATE_H__ 22 | 23 | /** 24 | * @file sip_private.h 25 | * @brief Private structures and functions for PJSIP Library. 26 | */ 27 | 28 | #include 29 | 30 | 31 | #endif /* __PJSIP_PRIVATE_I_H__ */ 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/include/pjsip_auth.h: -------------------------------------------------------------------------------- 1 | /* $Id: pjsip_auth.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJSIP_AUTH_H__ 21 | #define __PJSIP_AUTH_H__ 22 | 23 | /** 24 | * @defgroup PJSIP_AUTH SIP Authorization module 25 | */ 26 | 27 | /** 28 | * @file pjsip_auth.h 29 | * @brief SIP Authorization Module. 30 | */ 31 | 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | #endif /* __PJSIP_AUTH_H__ */ 38 | 39 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/include/pjsip_ua.h: -------------------------------------------------------------------------------- 1 | /* $Id: pjsip_ua.h 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 | * Copyright (C) 2003-2008 Benny Prijono 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | */ 20 | #ifndef __PJSIP_UA_H__ 21 | #define __PJSIP_UA_H__ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | 31 | #endif /* __PJSIP_UA_H__ */ 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_auth_parser_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_auth_parser_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_auth_parser.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_dialog_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_dialog_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_dialog.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_endpoint_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_endpoint_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_endpoint.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_parser_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_parser_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_parser.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_tel_uri_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_tel_uri_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_tel_uri.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_transport_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_transport_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_transport.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_util_proxy_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_util_proxy_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_util_proxy.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/pjsip/src/pjsip/sip_util_wrap.cpp: -------------------------------------------------------------------------------- 1 | /* $Id: sip_util_wrap.cpp 3553 2011-05-05 06:14:19Z nanang $ */ 2 | /* 3 | * Copyright (C) 2009-2011 Teluu Inc. (http://www.teluu.com) 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 | 20 | /* 21 | * This file is a C++ wrapper, see ticket #886 for details. 22 | */ 23 | 24 | #include "sip_util.c" 25 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/README.txt: -------------------------------------------------------------------------------- 1 | Third Party Software 2 | 3 | This directory contains third party software that is 4 | used by PJ project. 5 | 6 | = Building the third party libraries = 7 | 8 | Go to build directory, rather than building the library 9 | using the project files/Makefiles provided by the software. 10 | 11 | 12 | = Versions = 13 | 14 | speex: SVN -r12832 15 | portaudio: SVN -r1186 16 | gsm: gsm-1.0.12 17 | ilbc: from RFC 18 | resample: lib-resample, I think version 1.7 19 | srtp libsrtp-1.4.4 20 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/build/Makefile: -------------------------------------------------------------------------------- 1 | DIRS = resample milenage srtp 2 | 3 | include ../../build.mak 4 | include $(PJDIR)/build/common.mak 5 | 6 | all clean dep depend distclean realclean: 7 | for dir in $(DIRS); do \ 8 | if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \ 9 | true; \ 10 | else \ 11 | exit 1; \ 12 | fi; \ 13 | done 14 | 15 | doc: 16 | 17 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/build/gsm/config.h: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | # pragma warning(disable: 4100) // unreferenced formal parameter 3 | # pragma warning(disable: 4101) // unreferenced local variable 4 | # pragma warning(disable: 4244) // conversion from 'double ' to 'float ' 5 | # pragma warning(disable: 4305) // truncation from 'const double ' to 'float ' 6 | # pragma warning(disable: 4018) // signed/unsigned mismatch 7 | //# pragma warning(disable: 4701) // local variable used without initialized 8 | #endif 9 | 10 | #if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402 11 | # pragma GCC diagnostic ignored "-Wpragmas" 12 | # pragma GCC diagnostic ignored "-Wunused-const-variable" 13 | #endif 14 | 15 | #include 16 | #include "../../gsm/inc/config.h" 17 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/build/os-auto.mak.in: -------------------------------------------------------------------------------- 1 | 2 | ifneq (@ac_no_gsm_codec@,1) 3 | ifeq (@ac_external_gsm@,1) 4 | # External 5 | else 6 | DIRS += gsm 7 | endif 8 | endif 9 | 10 | ifneq (@ac_no_ilbc_codec@,1) 11 | DIRS += ilbc 12 | endif 13 | 14 | ifneq (@ac_no_speex_codec@,1) 15 | ifeq (@ac_external_speex@,1) 16 | # External speex 17 | else 18 | DIRS += speex 19 | endif 20 | endif 21 | 22 | ifneq (@ac_no_g7221_codec@,1) 23 | DIRS += g7221 24 | endif 25 | 26 | ifneq ($(findstring webrtc,@ac_webrtc_platform@),) 27 | DIRS += webrtc 28 | endif 29 | 30 | DIRS += opus 31 | 32 | DIRS += zsrtp 33 | 34 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/build/resample/config.h: -------------------------------------------------------------------------------- 1 | #ifndef RESAMPLE_HAS_SMALL_FILTER 2 | # define RESAMPLE_HAS_SMALL_FILTER 1 3 | #endif 4 | 5 | #ifndef RESAMPLE_HAS_LARGE_FILTER 6 | # define RESAMPLE_HAS_LARGE_FILTER 1 7 | #endif 8 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/build/speex/speex/speex_config_types.h: -------------------------------------------------------------------------------- 1 | #include 2 | typedef pj_int16_t spx_int16_t; 3 | typedef pj_uint16_t spx_uint16_t; 4 | typedef pj_int32_t spx_int32_t; 5 | typedef pj_uint32_t spx_uint32_t; 6 | 7 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/common.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/common.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/config.h: -------------------------------------------------------------------------------- 1 | #ifndef __LIBG7221_CONFIG_H__ 2 | #define __LIBG7221_CONFIG_H__ 3 | 4 | #include 5 | 6 | /** 7 | * Expand all basic operation functions as inline. Even if this is set to 8 | * zero, some critical functions would still be expanded as inline. Note 9 | * also that enabling this may generate some warning messages about functions 10 | * not being referenced (with gcc). 11 | * 12 | * Default: 0 (no) 13 | */ 14 | #ifndef PJMEDIA_LIBG7221_FUNCS_INLINED 15 | # define PJMEDIA_LIBG7221_FUNCS_INLINED 0 16 | #endif 17 | 18 | /* Declare/define a function that may be expanded as inline. */ 19 | #if PJMEDIA_LIBG7221_FUNCS_INLINED 20 | # define LIBG7221_DECL(type) PJ_INLINE(type) 21 | # define LIBG7221_DEF(type) PJ_INLINE(type) 22 | #else 23 | # define LIBG7221_DECL(type) PJ_DECL(type) 24 | # define LIBG7221_DEF(type) PJ_DEF(type) 25 | #endif 26 | 27 | #endif /* __LIBG7221_CONFIG_H__ */ 28 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/count.h: -------------------------------------------------------------------------------- 1 | /* $Id: count.h 2623 2009-04-20 18:38:15Z bennylp $ */ 2 | /* 3 | * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 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 COUNT_H 20 | #define COUNT_H 21 | 22 | #define move16() 23 | #define move32() 24 | #define logic16() 25 | #define logic32() 26 | #define test() 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/defs.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/huff_def.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/huff_def.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/huff_tab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/huff_tab.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/huff_tab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/huff_tab.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/tables.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/tables.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/tables.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/common/tables.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/common/typedef.h: -------------------------------------------------------------------------------- 1 | /* $Id: typedef.h 2623 2009-04-20 18:38:15Z bennylp $ */ 2 | /* 3 | * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 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 TYPEDEF_H 20 | #define TYPEDEF_H 21 | 22 | #include 23 | 24 | typedef pj_int8_t Word8; 25 | typedef pj_int16_t Word16; 26 | typedef pj_int32_t Word32; 27 | typedef pj_uint16_t UWord16; 28 | typedef pj_uint32_t UWord32; 29 | typedef int Flag; 30 | 31 | #endif /* TYPEDEF_H */ 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/decode/coef2sam.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/decode/coef2sam.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/decode/dct4_s.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/decode/dct4_s.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/decode/dct4_s.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/decode/dct4_s.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/decode/decoder.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/decode/decoder.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/encode/dct4_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/encode/dct4_a.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/encode/dct4_a.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/encode/dct4_a.h -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/encode/encoder.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/encode/encoder.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/g7221/encode/sam2coef.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/g7221/encode/sam2coef.c -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann, 2 | Technische Universitaet Berlin 3 | 4 | Any use of this software is permitted provided that this notice is not 5 | removed and that neither the authors nor the Technische Universitaet Berlin 6 | are deemed to have made any representations as to the suitability of this 7 | software for any purpose nor are held responsible for any defects of 8 | this software. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 9 | 10 | As a matter of courtesy, the authors request to be informed about uses 11 | this software has found, about bugs in this software, and about any 12 | improvements that may be of general interest. 13 | 14 | Berlin, 28.11.1994 15 | Jutta Degener 16 | Carsten Bormann 17 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/MACHINES: -------------------------------------------------------------------------------- 1 | The gsm library has been tested successfully on the following platforms: 2 | 3 | - Various Sun4s running SunOS 4.1.2 4 | - SPARC1 (SunOS 4.1.1) 5 | - Integrated Solutions 68k Optimum running 4.3BSD UNIX with a Green Hills cc 6 | - NeXTstation running NeXT-OS/Mach 3.0 7 | - No-name AT/386 with Xenix 2.3.2 (using -DSTUPID_COMPILER) 8 | - RS/6000-350 running AIX 3.2.0 9 | - RS/6000-320 running AIX 3.1.5 10 | - Alliant FX80 (Concentrix 5.7) 11 | - SGI Indigo XS4000 (IRIX 4.0.5F) 12 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/MANIFEST: -------------------------------------------------------------------------------- 1 | gsm-1.0/COPYRIGHT 2 | gsm-1.0/ChangeLog 3 | gsm-1.0/INSTALL 4 | gsm-1.0/MACHINES 5 | gsm-1.0/MANIFEST 6 | gsm-1.0/Makefile 7 | gsm-1.0/README 8 | gsm-1.0/add-test/add_test.c 9 | gsm-1.0/add-test/add_test.dta 10 | gsm-1.0/inc/gsm.h 11 | gsm-1.0/inc/proto.h 12 | gsm-1.0/inc/unproto.h 13 | gsm-1.0/inc/config.h 14 | gsm-1.0/inc/private.h 15 | gsm-1.0/inc/toast.h 16 | gsm-1.0/man/bitter.1 17 | gsm-1.0/man/gsm.3 18 | gsm-1.0/man/gsm_explode.3 19 | gsm-1.0/man/gsm_print.3 20 | gsm-1.0/man/gsm_option.3 21 | gsm-1.0/man/toast.1 22 | gsm-1.0/src/add.c 23 | gsm-1.0/src/code.c 24 | gsm-1.0/src/debug.c 25 | gsm-1.0/src/decode.c 26 | gsm-1.0/src/gsm_destroy.c 27 | gsm-1.0/src/gsm_decode.c 28 | gsm-1.0/src/gsm_encode.c 29 | gsm-1.0/src/gsm_explode.c 30 | gsm-1.0/src/gsm_implode.c 31 | gsm-1.0/src/gsm_create.c 32 | gsm-1.0/src/gsm_print.c 33 | gsm-1.0/src/gsm_option.c 34 | gsm-1.0/src/long_term.c 35 | gsm-1.0/src/lpc.c 36 | gsm-1.0/src/preprocess.c 37 | gsm-1.0/src/rpe.c 38 | gsm-1.0/src/short_term.c 39 | gsm-1.0/src/table.c 40 | gsm-1.0/src/toast.c 41 | gsm-1.0/src/toast_alaw.c 42 | gsm-1.0/src/toast_audio.c 43 | gsm-1.0/src/toast_lin.c 44 | gsm-1.0/src/toast_ulaw.c 45 | gsm-1.0/tls/bitter.c 46 | gsm-1.0/tls/bitter.dta 47 | gsm-1.0/tls/taste.c 48 | gsm-1.0/tls/taste.h 49 | gsm-1.0/tls/sweet.c 50 | gsm-1.0/tls/sour.c 51 | gsm-1.0/tls/sour1.dta 52 | gsm-1.0/tls/sour2.dta 53 | gsm-1.0/tls/ginger.c 54 | gsm-1.0/tst/cod2lin.c 55 | gsm-1.0/tst/cod2txt.c 56 | gsm-1.0/tst/gsm2cod.c 57 | gsm-1.0/tst/lin2cod.c 58 | gsm-1.0/tst/lin2txt.c 59 | gsm-1.0/tst/run 60 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/inc/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /*$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/config.h,v 1.5 1996/07/02 11:26:20 jutta Exp $*/ 8 | 9 | #ifndef CONFIG_H 10 | #define CONFIG_H 11 | 12 | /*efine SIGHANDLER_T int * signal handlers are void */ 13 | /*efine HAS_SYSV_SIGNAL 1 * sigs not blocked/reset? */ 14 | 15 | #define HAS_STDLIB_H 1 /* /usr/include/stdlib.h */ 16 | #define HAS_LIMITS_H 1 /* /usr/include/limits.h */ 17 | #define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */ 18 | #define HAS_ERRNO_DECL 1 /* errno.h declares errno */ 19 | 20 | #define HAS_FSTAT 1 /* fstat syscall */ 21 | #define HAS_FCHMOD 1 /* fchmod syscall */ 22 | #define HAS_CHMOD 1 /* chmod syscall */ 23 | #define HAS_FCHOWN 1 /* fchown syscall */ 24 | #define HAS_CHOWN 1 /* chown syscall */ 25 | /*efine HAS__FSETMODE 1 * _fsetmode -- set file mode */ 26 | 27 | #define HAS_STRING_H 1 /* /usr/include/string.h */ 28 | /*efine HAS_STRINGS_H 1 * /usr/include/strings.h */ 29 | 30 | #define HAS_UNISTD_H 1 /* /usr/include/unistd.h */ 31 | #define HAS_UTIME 1 /* POSIX utime(path, times) */ 32 | /*efine HAS_UTIMES 1 * use utimes() syscall instead */ 33 | #define HAS_UTIME_H 1 /* UTIME header file */ 34 | #define HAS_UTIMBUF 1 /* struct utimbuf */ 35 | /*efine HAS_UTIMEUSEC 1 * microseconds in utimbuf? */ 36 | 37 | #endif /* CONFIG_H */ 38 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/inc/unproto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /*$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/unproto.h,v 1.1 1992/10/28 00:11:08 jutta Exp $*/ 8 | 9 | #ifdef PROTO_H /* sic */ 10 | #undef PROTO_H 11 | 12 | #undef P 13 | #undef P0 14 | #undef P1 15 | #undef P2 16 | #undef P3 17 | #undef P4 18 | #undef P5 19 | #undef P6 20 | #undef P7 21 | #undef P8 22 | 23 | #endif /* PROTO_H */ 24 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/man/gsm_explode.3: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | .\" Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | .\" details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | .\" 6 | .PU 7 | .TH GSM_EXPLODE 3 8 | .SH NAME 9 | gsm_explode, gsm_implode \(em GSM\ 06.10 supplementary 10 | functions for testing 11 | .SH SYNOPSIS 12 | #include "gsm.h" 13 | .PP 14 | void gsm_explode(g, frame, xframe) 15 | .br 16 | gsm g; 17 | .br 18 | gsm_frame frame; 19 | .br 20 | gsm_signal xframe[ 76 ]; 21 | .PP 22 | void gsm_implode(g, xframe, frame) 23 | .br 24 | gsm g; 25 | .br 26 | gsm_signal xframe[ 76 ]; 27 | .br 28 | gsm_frame frame; 29 | .SH "DESCRIPTION" 30 | Gsm is an implementation of the final draft GSM 06.10 31 | standard for full-rate speech transcoding. 32 | Test data for implementations of this particular document 33 | can be bought and used to verify an implementation. 34 | .PP 35 | The encoded test data uses a format different from what 36 | one would use to transmit frames with the least number 37 | of bits. 38 | Gsm_explode() and gsm_implode() convert between the 39 | internal, small, 33-byte format and the 76-word format 40 | used by the test data. 41 | .PP 42 | .SH "RETURN VALUE" 43 | gsm_explode() returns -1 if the passed frame is invalid, else 0. 44 | .SH BUGS 45 | Please direct bug reports to jutta@cs.tu-berlin.de and cabo@cs.tu-berlin.de. 46 | .SH "SEE ALSO" 47 | gsm(3) 48 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/src/gsm_create.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | #include "config.h" 8 | 9 | static char const ident[] = "$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_create.c,v 1.4 1996/07/02 09:59:05 jutta Exp $"; 10 | 11 | #ifdef HAS_STRING_H 12 | #include 13 | #else 14 | # include "proto.h" 15 | extern char * memset P((char *, int, int)); 16 | #endif 17 | 18 | #ifdef HAS_STDLIB_H 19 | # include 20 | #else 21 | # ifdef HAS_MALLOC_H 22 | # include 23 | # else 24 | extern char * malloc(); 25 | # endif 26 | #endif 27 | 28 | #include 29 | 30 | #include "gsm.h" 31 | #include "private.h" 32 | #include "proto.h" 33 | 34 | gsm gsm_create P0() 35 | { 36 | gsm r; 37 | 38 | r = (gsm)malloc(sizeof(struct gsm_state)); 39 | if (!r) return r; 40 | 41 | memset((char *)r, 0, sizeof(*r)); 42 | r->nrp = 40; 43 | 44 | return r; 45 | } 46 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/src/gsm_destroy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_destroy.c,v 1.3 1994/11/28 19:52:25 jutta Exp $ */ 8 | 9 | #include "gsm.h" 10 | #include "config.h" 11 | #include "proto.h" 12 | 13 | #ifdef HAS_STDLIB_H 14 | # include 15 | #else 16 | # ifdef HAS_MALLOC_H 17 | # include 18 | # else 19 | extern void free(); 20 | # endif 21 | #endif 22 | 23 | void gsm_destroy P1((S), gsm S) 24 | { 25 | if (S) free((char *)S); 26 | } 27 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/src/gsm_option.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_option.c,v 1.3 1996/07/02 09:59:05 jutta Exp $ */ 8 | 9 | #include "private.h" 10 | 11 | #include "gsm.h" 12 | #include "proto.h" 13 | 14 | int gsm_option P3((r, opt, val), gsm r, int opt, int * val) 15 | { 16 | int result = -1; 17 | 18 | switch (opt) { 19 | case GSM_OPT_LTP_CUT: 20 | #ifdef LTP_CUT 21 | result = r->ltp_cut; 22 | if (val) r->ltp_cut = *val; 23 | #endif 24 | break; 25 | 26 | case GSM_OPT_VERBOSE: 27 | #ifndef NDEBUG 28 | result = r->verbose; 29 | if (val) r->verbose = *val; 30 | #endif 31 | break; 32 | 33 | case GSM_OPT_FAST: 34 | 35 | #if defined(FAST) && defined(USE_FLOAT_MUL) 36 | result = r->fast; 37 | if (val) r->fast = !!*val; 38 | #endif 39 | break; 40 | 41 | case GSM_OPT_FRAME_CHAIN: 42 | 43 | #ifdef WAV49 44 | result = r->frame_chain; 45 | if (val) r->frame_chain = *val; 46 | #endif 47 | break; 48 | 49 | case GSM_OPT_FRAME_INDEX: 50 | 51 | #ifdef WAV49 52 | result = r->frame_index; 53 | if (val) r->frame_index = *val; 54 | #endif 55 | break; 56 | 57 | case GSM_OPT_WAV49: 58 | 59 | #ifdef WAV49 60 | result = r->wav_fmt; 61 | if (val) r->wav_fmt = !!*val; 62 | #endif 63 | break; 64 | 65 | default: 66 | break; 67 | } 68 | return result; 69 | } 70 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/src/toast_lin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/toast_lin.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */ 8 | 9 | #include "toast.h" 10 | 11 | /* toast_linear.c -- read and write 16 bit linear sound in host byte order. 12 | */ 13 | 14 | extern FILE *in, *out; 15 | 16 | int linear_input (buf) gsm_signal * buf; 17 | { 18 | return fread( (char *)buf, sizeof(*buf), 160, in ); 19 | } 20 | 21 | int linear_output P1((buf), gsm_signal * buf) 22 | { 23 | return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 ); 24 | } 25 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/tls/bitter.dta: -------------------------------------------------------------------------------- 1 | ; 2 | ; Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | ; Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | ; details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | ; 6 | ; 7 | ; Variable Size 8 | 9 | GSM_MAGIC 4 10 | 11 | LARc[0] 6 12 | LARc[1] 6 13 | LARc[2] 5 14 | LARc[3] 5 15 | LARc[4] 4 16 | LARc[5] 4 17 | LARc[6] 3 18 | LARc[7] 3 19 | 20 | Nc[0] 7 21 | bc[0] 2 22 | Mc[0] 2 23 | xmaxc[0] 6 24 | xmc[0] 3 25 | xmc[1] 3 26 | xmc[2] 3 27 | xmc[3] 3 28 | xmc[4] 3 29 | xmc[5] 3 30 | xmc[6] 3 31 | xmc[7] 3 32 | xmc[8] 3 33 | xmc[9] 3 34 | xmc[10] 3 35 | xmc[11] 3 36 | xmc[12] 3 37 | 38 | Nc[1] 7 39 | bc[1] 2 40 | Mc[1] 2 41 | xmaxc[1] 6 42 | xmc[13] 3 43 | xmc[14] 3 44 | xmc[15] 3 45 | xmc[16] 3 46 | xmc[17] 3 47 | xmc[18] 3 48 | xmc[19] 3 49 | xmc[20] 3 50 | xmc[21] 3 51 | xmc[22] 3 52 | xmc[23] 3 53 | xmc[24] 3 54 | xmc[25] 3 55 | 56 | Nc[2] 7 57 | bc[2] 2 58 | Mc[2] 2 59 | xmaxc[2] 6 60 | xmc[26] 3 61 | xmc[27] 3 62 | xmc[28] 3 63 | xmc[29] 3 64 | xmc[30] 3 65 | xmc[31] 3 66 | xmc[32] 3 67 | xmc[33] 3 68 | xmc[34] 3 69 | xmc[35] 3 70 | xmc[36] 3 71 | xmc[37] 3 72 | xmc[38] 3 73 | 74 | Nc[3] 7 75 | bc[3] 2 76 | Mc[3] 2 77 | xmaxc[3] 6 78 | xmc[39] 3 79 | xmc[40] 3 80 | xmc[41] 3 81 | xmc[42] 3 82 | xmc[43] 3 83 | xmc[44] 3 84 | xmc[45] 3 85 | xmc[46] 3 86 | xmc[47] 3 87 | xmc[48] 3 88 | xmc[49] 3 89 | xmc[50] 3 90 | xmc[51] 3 91 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/tls/sour1.dta: -------------------------------------------------------------------------------- 1 | ; 2 | ; Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | ; Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | ; details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | ; 6 | ; 7 | ; Variable Size 8 | 9 | LARc[0] 6 10 | LARc[1] 6 11 | LARc[2] 5 12 | LARc[3] 5 13 | LARc[4] 4 14 | LARc[5] 4 15 | LARc[6] 3 16 | LARc[7] 3 17 | 18 | Nc[0] 7 19 | bc[0] 2 20 | Mc[0] 2 21 | xmaxc[0] 6 22 | xmc[0] 3 23 | xmc[1] 3 24 | xmc[2] 3 25 | xmc[3] 3 26 | xmc[4] 3 27 | xmc[5] 3 28 | xmc[6] 3 29 | xmc[7] 3 30 | xmc[8] 3 31 | xmc[9] 3 32 | xmc[10] 3 33 | xmc[11] 3 34 | xmc[12] 3 35 | 36 | Nc[1] 7 37 | bc[1] 2 38 | Mc[1] 2 39 | xmaxc[1] 6 40 | xmc[13] 3 41 | xmc[14] 3 42 | xmc[15] 3 43 | xmc[16] 3 44 | xmc[17] 3 45 | xmc[18] 3 46 | xmc[19] 3 47 | xmc[20] 3 48 | xmc[21] 3 49 | xmc[22] 3 50 | xmc[23] 3 51 | xmc[24] 3 52 | xmc[25] 3 53 | 54 | Nc[2] 7 55 | bc[2] 2 56 | Mc[2] 2 57 | xmaxc[2] 6 58 | xmc[26] 3 59 | xmc[27] 3 60 | xmc[28] 3 61 | xmc[29] 3 62 | xmc[30] 3 63 | xmc[31] 3 64 | xmc[32] 3 65 | xmc[33] 3 66 | xmc[34] 3 67 | xmc[35] 3 68 | xmc[36] 3 69 | xmc[37] 3 70 | xmc[38] 3 71 | 72 | Nc[3] 7 73 | bc[3] 2 74 | Mc[3] 2 75 | xmaxc[3] 6 76 | xmc[39] 3 77 | xmc[40] 3 78 | xmc[41] 3 79 | xmc[42] 3 80 | xmc[43] 3 81 | xmc[44] 3 82 | xmc[45] 3 83 | xmc[46] 3 84 | xmc[47] 3 85 | xmc[48] 3 86 | xmc[49] 3 87 | xmc[50] 3 88 | xmc[51] 3 89 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/tls/sour2.dta: -------------------------------------------------------------------------------- 1 | ; 2 | ; Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | ; Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | ; details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | ; 6 | ; 7 | ; Variable Size 8 | 9 | g->chain 4 10 | 11 | LARc[0] 6 12 | LARc[1] 6 13 | LARc[2] 5 14 | LARc[3] 5 15 | LARc[4] 4 16 | LARc[5] 4 17 | LARc[6] 3 18 | LARc[7] 3 19 | 20 | Nc[0] 7 21 | bc[0] 2 22 | Mc[0] 2 23 | xmaxc[0] 6 24 | xmc[0] 3 25 | xmc[1] 3 26 | xmc[2] 3 27 | xmc[3] 3 28 | xmc[4] 3 29 | xmc[5] 3 30 | xmc[6] 3 31 | xmc[7] 3 32 | xmc[8] 3 33 | xmc[9] 3 34 | xmc[10] 3 35 | xmc[11] 3 36 | xmc[12] 3 37 | 38 | Nc[1] 7 39 | bc[1] 2 40 | Mc[1] 2 41 | xmaxc[1] 6 42 | xmc[13] 3 43 | xmc[14] 3 44 | xmc[15] 3 45 | xmc[16] 3 46 | xmc[17] 3 47 | xmc[18] 3 48 | xmc[19] 3 49 | xmc[20] 3 50 | xmc[21] 3 51 | xmc[22] 3 52 | xmc[23] 3 53 | xmc[24] 3 54 | xmc[25] 3 55 | 56 | Nc[2] 7 57 | bc[2] 2 58 | Mc[2] 2 59 | xmaxc[2] 6 60 | xmc[26] 3 61 | xmc[27] 3 62 | xmc[28] 3 63 | xmc[29] 3 64 | xmc[30] 3 65 | xmc[31] 3 66 | xmc[32] 3 67 | xmc[33] 3 68 | xmc[34] 3 69 | xmc[35] 3 70 | xmc[36] 3 71 | xmc[37] 3 72 | xmc[38] 3 73 | 74 | Nc[3] 7 75 | bc[3] 2 76 | Mc[3] 2 77 | xmaxc[3] 6 78 | xmc[39] 3 79 | xmc[40] 3 80 | xmc[41] 3 81 | xmc[42] 3 82 | xmc[43] 3 83 | xmc[44] 3 84 | xmc[45] 3 85 | xmc[46] 3 86 | xmc[47] 3 87 | xmc[48] 3 88 | xmc[49] 3 89 | xmc[50] 3 90 | xmc[51] 3 91 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/tls/taste.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 3 | * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 4 | * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 5 | */ 6 | 7 | /* 8 | * common code to sweet.c and bitter.c 9 | */ 10 | 11 | #ifndef TASTE_H 12 | #define TASTE_H 13 | 14 | struct spex { 15 | 16 | char * var; 17 | int varsize; 18 | } ; 19 | 20 | #endif /* TASTE_H */ 21 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/gsm/tst/run: -------------------------------------------------------------------------------- 1 | : 2 | # 3 | # Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 4 | # Universitaet Berlin. See the accompanying file "COPYRIGHT" for 5 | # details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 6 | # 7 | if [ ! -f 1.inp ] ; then 8 | echo Sorry, but we cannot provide the test data with this release. 9 | exit 10 | fi 11 | 12 | echo -n 'Linear to code: ' 13 | for i in 1 2 3 4 14 | do 15 | echo -n $i.. 16 | ./lin2cod < $i.inp | cmp - $i.cod 17 | done 18 | echo "" 19 | 20 | echo -n 'Code to linear: ' 21 | for i in 1 2 3 4 22 | do 23 | echo -n $i.. 24 | ./cod2lin < $i.cod | cmp - $i.out 25 | done 26 | echo "" 27 | 28 | echo -n 'Toast: ' 29 | for i in 1 2 3 4 30 | do 31 | echo -n $i.. 32 | ../bin/toast -l < $i.inp | ../bin/toast -dl | cmp - $i.out 33 | done 34 | echo "" 35 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/FrameClassify.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | FrameClassify.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_FRAMECLASSIFY_H 14 | #define __iLBC_FRAMECLASSIFY_H 15 | 16 | int FrameClassify( /* index to the max-energy sub-frame */ 17 | iLBC_Enc_Inst_t *iLBCenc_inst, 18 | /* (i/o) the encoder state structure */ 19 | float *residual /* (i) lpc residual signal */ 20 | ); 21 | 22 | 23 | 24 | 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/LPCencode.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | LPCencode.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_LPCENCOD_H 14 | #define __iLBC_LPCENCOD_H 15 | 16 | void LPCencode( 17 | float *syntdenum, /* (i/o) synthesis filter coefficients 18 | before/after encoding */ 19 | float *weightdenum, /* (i/o) weighting denumerator coefficients 20 | before/after encoding */ 21 | int *lsf_index, /* (o) lsf quantization index */ 22 | float *data, /* (i) lsf coefficients to quantize */ 23 | iLBC_Enc_Inst_t *iLBCenc_inst 24 | /* (i/o) the encoder state structure */ 25 | ); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/StateConstructW.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | StateConstructW.h 7 | 8 | 9 | 10 | 11 | 12 | 13 | Copyright (C) The Internet Society (2004). 14 | All Rights Reserved. 15 | 16 | ******************************************************************/ 17 | 18 | #ifndef __iLBC_STATECONSTRUCTW_H 19 | #define __iLBC_STATECONSTRUCTW_H 20 | 21 | void StateConstructW( 22 | int idxForMax, /* (i) 6-bit index for the quantization of 23 | max amplitude */ 24 | int *idxVec, /* (i) vector of quantization indexes */ 25 | float *syntDenum, /* (i) synthesis filter denumerator */ 26 | float *out, /* (o) the decoded state vector */ 27 | int len /* (i) length of a state vector */ 28 | ); 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/anaFilter.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | anaFilter.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_ANAFILTER_H 14 | #define __iLBC_ANAFILTER_H 15 | 16 | void anaFilter( 17 | 18 | 19 | 20 | 21 | 22 | float *In, /* (i) Signal to be filtered */ 23 | float *a, /* (i) LP parameters */ 24 | int len,/* (i) Length of signal */ 25 | float *Out, /* (o) Filtered signal */ 26 | float *mem /* (i/o) Filter state */ 27 | ); 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/doCPLC.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | doCPLC.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_DOLPC_H 14 | #define __iLBC_DOLPC_H 15 | 16 | void doThePLC( 17 | float *PLCresidual, /* (o) concealed residual */ 18 | float *PLClpc, /* (o) concealed LP parameters */ 19 | int PLI, /* (i) packet loss indicator 20 | 0 - no PL, 1 = PL */ 21 | float *decresidual, /* (i) decoded residual */ 22 | float *lpc, /* (i) decoded LPC (only used for no PL) */ 23 | int inlag, /* (i) pitch lag */ 24 | iLBC_Dec_Inst_t *iLBCdec_inst 25 | /* (i/o) decoder instance */ 26 | ); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/enhancer.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | enhancer.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | 12 | 13 | 14 | 15 | ******************************************************************/ 16 | 17 | #ifndef __ENHANCER_H 18 | #define __ENHANCER_H 19 | 20 | #include "iLBC_define.h" 21 | 22 | float xCorrCoef( 23 | float *target, /* (i) first array */ 24 | float *regressor, /* (i) second array */ 25 | int subl /* (i) dimension arrays */ 26 | ); 27 | 28 | int enhancerInterface( 29 | float *out, /* (o) the enhanced recidual signal */ 30 | float *in, /* (i) the recidual signal to enhance */ 31 | iLBC_Dec_Inst_t *iLBCdec_inst 32 | /* (i/o) the decoder state structure */ 33 | ); 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/gainquant.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | gainquant.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_GAINQUANT_H 14 | #define __iLBC_GAINQUANT_H 15 | 16 | float gainquant(/* (o) quantized gain value */ 17 | float in, /* (i) gain value */ 18 | float maxIn,/* (i) maximum of gain value */ 19 | int cblen, /* (i) number of quantization indices */ 20 | int *index /* (o) quantization index */ 21 | ); 22 | 23 | float gaindequant( /* (o) quantized gain value */ 24 | int index, /* (i) quantization index */ 25 | float maxIn,/* (i) maximum of unquantized gain */ 26 | int cblen /* (i) number of quantization indices */ 27 | ); 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/getCBvec.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | getCBvec.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_GETCBVEC_H 14 | #define __iLBC_GETCBVEC_H 15 | 16 | void getCBvec( 17 | float *cbvec, /* (o) Constructed codebook vector */ 18 | float *mem, /* (i) Codebook buffer */ 19 | int index, /* (i) Codebook index */ 20 | int lMem, /* (i) Length of codebook buffer */ 21 | int cbveclen/* (i) Codebook vector length */ 22 | ); 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/hpInput.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | hpInput.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_HPINPUT_H 14 | #define __iLBC_HPINPUT_H 15 | 16 | void hpInput( 17 | float *In, /* (i) vector to filter */ 18 | int len, /* (i) length of vector to filter */ 19 | float *Out, /* (o) the resulting filtered vector */ 20 | float *mem /* (i/o) the filter state */ 21 | ); 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/hpOutput.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | hpOutput.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_HPOUTPUT_H 14 | #define __iLBC_HPOUTPUT_H 15 | 16 | void hpOutput( 17 | float *In, /* (i) vector to filter */ 18 | int len,/* (i) length of vector to filter */ 19 | float *Out, /* (o) the resulting filtered vector */ 20 | float *mem /* (i/o) the filter state */ 21 | ); 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/iCBConstruct.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | iCBConstruct.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | 12 | 13 | 14 | 15 | 16 | ******************************************************************/ 17 | 18 | #ifndef __iLBC_ICBCONSTRUCT_H 19 | #define __iLBC_ICBCONSTRUCT_H 20 | 21 | void index_conv_enc( 22 | int *index /* (i/o) Codebook indexes */ 23 | ); 24 | 25 | void index_conv_dec( 26 | int *index /* (i/o) Codebook indexes */ 27 | ); 28 | 29 | void iCBConstruct( 30 | float *decvector, /* (o) Decoded vector */ 31 | int *index, /* (i) Codebook indices */ 32 | int *gain_index,/* (i) Gain quantization indices */ 33 | float *mem, /* (i) Buffer for codevector construction */ 34 | int lMem, /* (i) Length of buffer */ 35 | int veclen, /* (i) Length of vector */ 36 | int nStages /* (i) Number of codebook stages */ 37 | ); 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/iCBSearch.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | iCBSearch.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_ICBSEARCH_H 14 | #define __iLBC_ICBSEARCH_H 15 | 16 | 17 | 18 | 19 | 20 | 21 | void iCBSearch( 22 | iLBC_Enc_Inst_t *iLBCenc_inst, 23 | /* (i) the encoder state structure */ 24 | int *index, /* (o) Codebook indices */ 25 | int *gain_index,/* (o) Gain quantization indices */ 26 | float *intarget,/* (i) Target vector for encoding */ 27 | float *mem, /* (i) Buffer for codebook construction */ 28 | int lMem, /* (i) Length of buffer */ 29 | int lTarget, /* (i) Length of vector */ 30 | int nStages, /* (i) Number of codebook stages */ 31 | float *weightDenum, /* (i) weighting filter coefficients */ 32 | float *weightState, /* (i) weighting filter state */ 33 | int block /* (i) the sub-block number */ 34 | ); 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/iLBC_decode.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | iLBC_decode.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_ILBCDECODE_H 14 | #define __iLBC_ILBCDECODE_H 15 | 16 | #include "iLBC_define.h" 17 | 18 | short initDecode( /* (o) Number of decoded 19 | samples */ 20 | iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) Decoder instance */ 21 | int mode, /* (i) frame size mode */ 22 | int use_enhancer /* (i) 1 to use enhancer 23 | 0 to run without 24 | enhancer */ 25 | ); 26 | 27 | void iLBC_decode( 28 | float *decblock, /* (o) decoded signal block */ 29 | unsigned char *bytes, /* (i) encoded signal bits */ 30 | iLBC_Dec_Inst_t *iLBCdec_inst, /* (i/o) the decoder state 31 | structure */ 32 | int mode /* (i) 0: bad packet, PLC, 33 | 1: normal */ 34 | 35 | 36 | 37 | 38 | 39 | ); 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/iLBC_encode.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | iLBC_encode.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_ILBCENCODE_H 14 | #define __iLBC_ILBCENCODE_H 15 | 16 | #include "iLBC_define.h" 17 | 18 | short initEncode( /* (o) Number of bytes 19 | encoded */ 20 | iLBC_Enc_Inst_t *iLBCenc_inst, /* (i/o) Encoder instance */ 21 | int mode /* (i) frame size mode */ 22 | ); 23 | 24 | void iLBC_encode( 25 | 26 | unsigned char *bytes, /* (o) encoded data bits iLBC */ 27 | float *block, /* (o) speech vector to 28 | encode */ 29 | iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder 30 | state */ 31 | ); 32 | 33 | #endif 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/lsf.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | lsf.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_LSF_H 14 | #define __iLBC_LSF_H 15 | 16 | void a2lsf( 17 | float *freq,/* (o) lsf coefficients */ 18 | float *a /* (i) lpc coefficients */ 19 | ); 20 | 21 | void lsf2a( 22 | float *a_coef, /* (o) lpc coefficients */ 23 | float *freq /* (i) lsf coefficients */ 24 | ); 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/ilbc/syntFilter.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************** 3 | 4 | iLBC Speech Coder ANSI-C Source Code 5 | 6 | syntFilter.h 7 | 8 | Copyright (C) The Internet Society (2004). 9 | All Rights Reserved. 10 | 11 | ******************************************************************/ 12 | 13 | #ifndef __iLBC_SYNTFILTER_H 14 | #define __iLBC_SYNTFILTER_H 15 | 16 | void syntFilter( 17 | float *Out, /* (i/o) Signal to be filtered */ 18 | float *a, /* (i) LP parameters */ 19 | int len, /* (i) Length of signal */ 20 | float *mem /* (i/o) Filter state */ 21 | ); 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/milenage/milenage.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------- 2 | * Example algorithms f1, f1*, f2, f3, f4, f5, f5* 3 | *------------------------------------------------------------------- 4 | * 5 | * A sample implementation of the example 3GPP authentication and 6 | * key agreement functions f1, f1*, f2, f3, f4, f5 and f5*. This is 7 | * a byte-oriented implementation of the functions, and of the block 8 | * cipher kernel function Rijndael. 9 | * 10 | * This has been coded for clarity, not necessarily for efficiency. 11 | * 12 | * The functions f2, f3, f4 and f5 share the same inputs and have 13 | * been coded together as a single function. f1, f1* and f5* are 14 | * all coded separately. 15 | * 16 | *-----------------------------------------------------------------*/ 17 | 18 | #ifndef MILENAGE_H 19 | #define MILENAGE_H 20 | 21 | typedef unsigned char u8; 22 | 23 | 24 | void f1 ( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], 25 | u8 mac_a[8], u8 op[16] ); 26 | void f2345 ( u8 k[16], u8 rand[16], 27 | u8 res[8], u8 ck[16], u8 ik[16], u8 ak[6], u8 op[16] ); 28 | void f1star( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], 29 | u8 mac_s[8], u8 op[16] ); 30 | void f5star( u8 k[16], u8 rand[16], 31 | u8 ak[6], u8 op[16] ); 32 | void ComputeOPc( u8 op_c[16], u8 op[16] ); 33 | 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/milenage/rijndael.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------- 2 | * Example algorithms f1, f1*, f2, f3, f4, f5, f5* 3 | *------------------------------------------------------------------- 4 | * 5 | * A sample implementation of the example 3GPP authentication and 6 | * key agreement functions f1, f1*, f2, f3, f4, f5 and f5*. This is 7 | * a byte-oriented implementation of the functions, and of the block 8 | * cipher kernel function Rijndael. 9 | * 10 | * This has been coded for clarity, not necessarily for efficiency. 11 | * 12 | * The functions f2, f3, f4 and f5 share the same inputs and have 13 | * been coded together as a single function. f1, f1* and f5* are 14 | * all coded separately. 15 | * 16 | *-----------------------------------------------------------------*/ 17 | 18 | #ifndef RIJNDAEL_H 19 | #define RIJNDAEL_H 20 | 21 | 22 | void RijndaelKeySchedule( u8 key[16] ); 23 | void RijndaelEncrypt( u8 input[16], u8 output[16] ); 24 | 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | aclocal.m4 4 | autom4te.cache 5 | *.kdevelop.pcs 6 | *.kdevses 7 | compile 8 | config.guess 9 | config.h 10 | config.h.in 11 | config.log 12 | config.status 13 | config.sub 14 | configure 15 | depcomp 16 | install-sh 17 | .deps 18 | .libs 19 | *.la 20 | testcelt 21 | libtool 22 | ltmain.sh 23 | missing 24 | stamp-h1 25 | *.sw 26 | *.o 27 | *.lo 28 | *~ 29 | tests/*test 30 | tools/celtdec 31 | tools/celtenc 32 | celt.pc 33 | celt.spec 34 | celt/dump_modes/dump_modes 35 | *.vcxproj.user 36 | opus.sdf 37 | opus.suo 38 | version.h 39 | celt/Debug 40 | celt/Release 41 | celt/x64 42 | silk/Debug 43 | silk/Release 44 | silk/x64 45 | silk/fixed/Debug 46 | silk/fixed/Release 47 | silk/fixed/x64 48 | silk/float/Debug 49 | silk/float/Release 50 | silk/float/x64 51 | src/Debug 52 | src/Release 53 | src/x64 54 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/AUTHORS: -------------------------------------------------------------------------------- 1 | Jean-Marc Valin (jmvalin@jmvalin.ca) 2 | Koen Vos (koenvos74@gmail.com) 3 | Timothy Terriberry (tterribe@xiph.org) 4 | Karsten Vandborg Sorensen (karsten.vandborg.sorensen@skype.net) 5 | Soren Skak Jensen (ssjensen@gn.com) 6 | Gregory Maxwell (greg@xiph.org) 7 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/opus/ChangeLog -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AGProjects/python-sipsimple/a644f25948de1f9b190844d04384159f20738c1e/deps/pjsip/third_party/opus/NEWS -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/celt_headers.mk: -------------------------------------------------------------------------------- 1 | CELT_HEAD = \ 2 | celt/arch.h \ 3 | celt/bands.h \ 4 | celt/celt.h \ 5 | celt/cpu_support.h \ 6 | include/opus_types.h \ 7 | include/opus_defines.h \ 8 | include/opus_custom.h \ 9 | celt/cwrs.h \ 10 | celt/ecintrin.h \ 11 | celt/entcode.h \ 12 | celt/entdec.h \ 13 | celt/entenc.h \ 14 | celt/fixed_debug.h \ 15 | celt/fixed_generic.h \ 16 | celt/float_cast.h \ 17 | celt/_kiss_fft_guts.h \ 18 | celt/kiss_fft.h \ 19 | celt/laplace.h \ 20 | celt/mathops.h \ 21 | celt/mdct.h \ 22 | celt/mfrngcod.h \ 23 | celt/modes.h \ 24 | celt/os_support.h \ 25 | celt/pitch.h \ 26 | celt/celt_lpc.h \ 27 | celt/x86/celt_lpc_sse.h \ 28 | celt/quant_bands.h \ 29 | celt/rate.h \ 30 | celt/stack_alloc.h \ 31 | celt/vq.h \ 32 | celt/static_modes_float.h \ 33 | celt/static_modes_fixed.h \ 34 | celt/static_modes_float_arm_ne10.h \ 35 | celt/static_modes_fixed_arm_ne10.h \ 36 | celt/arm/armcpu.h \ 37 | celt/arm/fixed_armv4.h \ 38 | celt/arm/fixed_armv5e.h \ 39 | celt/arm/kiss_fft_armv4.h \ 40 | celt/arm/kiss_fft_armv5e.h \ 41 | celt/arm/pitch_arm.h \ 42 | celt/arm/fft_arm.h \ 43 | celt/arm/mdct_arm.h \ 44 | celt/mips/celt_mipsr1.h \ 45 | celt/mips/fixed_generic_mipsr1.h \ 46 | celt/mips/kiss_fft_mipsr1.h \ 47 | celt/mips/mdct_mipsr1.h \ 48 | celt/mips/pitch_mipsr1.h \ 49 | celt/mips/vq_mipsr1.h \ 50 | celt/x86/pitch_sse.h \ 51 | celt/x86/x86cpu.h 52 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/celt_sources.mk: -------------------------------------------------------------------------------- 1 | CELT_SOURCES = celt/bands.c \ 2 | celt/celt.c \ 3 | celt/celt_encoder.c \ 4 | celt/celt_decoder.c \ 5 | celt/cwrs.c \ 6 | celt/entcode.c \ 7 | celt/entdec.c \ 8 | celt/entenc.c \ 9 | celt/kiss_fft.c \ 10 | celt/laplace.c \ 11 | celt/mathops.c \ 12 | celt/mdct.c \ 13 | celt/modes.c \ 14 | celt/pitch.c \ 15 | celt/celt_lpc.c \ 16 | celt/quant_bands.c \ 17 | celt/rate.c \ 18 | celt/vq.c 19 | 20 | CELT_SOURCES_SSE = celt/x86/x86cpu.c \ 21 | celt/x86/x86_celt_map.c \ 22 | celt/x86/pitch_sse.c 23 | 24 | CELT_SOURCES_SSE2 = celt/x86/pitch_sse2.c 25 | 26 | CELT_SOURCES_SSE4_1 = celt/x86/celt_lpc_sse.c \ 27 | celt/x86/pitch_sse4_1.c 28 | 29 | CELT_SOURCES_ARM = \ 30 | celt/arm/armcpu.c \ 31 | celt/arm/arm_celt_map.c 32 | 33 | CELT_SOURCES_ARM_ASM = \ 34 | celt/arm/celt_pitch_xcorr_arm.s 35 | 36 | CELT_AM_SOURCES_ARM_ASM = \ 37 | celt/arm/armopts.s.in 38 | 39 | CELT_SOURCES_ARM_NEON_INTR = \ 40 | celt/arm/celt_neon_intr.c 41 | 42 | CELT_SOURCES_ARM_NE10= \ 43 | celt/arm/celt_ne10_fft.c \ 44 | celt/arm/celt_ne10_mdct.c 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/doc/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | 3 | DOCINPUTS = $(top_srcdir)/include/opus.h \ 4 | $(top_srcdir)/include/opus_multistream.h \ 5 | $(top_srcdir)/include/opus_defines.h \ 6 | $(top_srcdir)/include/opus_types.h \ 7 | $(top_srcdir)/include/opus_custom.h \ 8 | $(top_srcdir)/doc/header.html \ 9 | $(top_srcdir)/doc/footer.html \ 10 | $(top_srcdir)/doc/customdoxygen.css 11 | 12 | EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \ 13 | opus_logo.svg trivial_example.c 14 | 15 | 16 | if HAVE_DOXYGEN 17 | 18 | all-local: doxygen-build.stamp 19 | 20 | doxygen-build.stamp: Doxyfile $(DOCINPUTS) 21 | doxygen 22 | touch $@ 23 | 24 | install-data-local: 25 | $(INSTALL) -d $(DESTDIR)$(docdir)/html/search 26 | for f in `find html -type f \! -name "installdox"`; do \ 27 | $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \ 28 | done 29 | 30 | $(INSTALL) -d $(DESTDIR)$(mandir)/man3 31 | cd man && find man3 -type f -name opus_*.3 \ 32 | -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \; 33 | 34 | clean-local: 35 | $(RM) -r html 36 | $(RM) -r latex 37 | $(RM) -r man 38 | $(RM) doxygen-build.stamp 39 | 40 | uninstall-local: 41 | $(RM) -r $(DESTDIR)$(docdir)/html 42 | $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3 43 | 44 | endif 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/doc/TODO: -------------------------------------------------------------------------------- 1 | define audio bandwidth as frequency range 2 | 3 | repeat padding recommendation 4 | 5 | ptime: refer to RFC 6 | 7 | Opus does not provide any confidentiality or integrity protection 8 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/doc/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | For more information visit the Opus Website. 12 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3337 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.2' 20 | macro_revision='1.3337' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/m4/opus-intrinsics.m4: -------------------------------------------------------------------------------- 1 | dnl opus-intrinsics.m4 2 | dnl macro for testing for support for compiler intrinsics, either by default or with a compiler flag 3 | 4 | dnl OPUS_CHECK_INTRINSICS(NAME-OF-INTRINSICS, COMPILER-FLAG-FOR-INTRINSICS, VAR-IF-PRESENT, VAR-IF-DEFAULT, TEST-PROGRAM-HEADER, TEST-PROGRAM-BODY) 5 | AC_DEFUN([OPUS_CHECK_INTRINSICS], 6 | [ 7 | AC_MSG_CHECKING([if compiler supports $1 intrinsics]) 8 | AC_LINK_IFELSE( 9 | [AC_LANG_PROGRAM($5, $6)], 10 | [ 11 | $3=1 12 | $4=1 13 | AC_MSG_RESULT([yes]) 14 | ],[ 15 | $4=0 16 | AC_MSG_RESULT([no]) 17 | AC_MSG_CHECKING([if compiler supports $1 intrinsics with $2]) 18 | save_CFLAGS="$CFLAGS"; CFLAGS="$2 $CFLAGS" 19 | AC_LINK_IFELSE([AC_LANG_PROGRAM($5, $6)], 20 | [ 21 | AC_MSG_RESULT([yes]) 22 | $3=1 23 | ],[ 24 | AC_MSG_RESULT([no]) 25 | $3=0 26 | ]) 27 | CFLAGS="$save_CFLAGS" 28 | ]) 29 | ]) 30 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/opus-uninstalled.pc.in: -------------------------------------------------------------------------------- 1 | # Opus codec reference implementation uninstalled pkg-config file 2 | 3 | libdir=${pcfiledir}/.libs 4 | includedir=${pcfiledir} 5 | 6 | Name: opus uninstalled 7 | Description: Opus IETF audio codec (not installed, @PC_BUILD@) 8 | Version: @VERSION@ 9 | Requires: 10 | Conflicts: 11 | Libs: ${libdir}/libopus.a @LIBM@ 12 | Cflags: -I${pcfiledir}/@top_srcdir@/include 13 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/opus.pc.in: -------------------------------------------------------------------------------- 1 | # Opus codec reference implementation pkg-config file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: Opus 9 | Description: Opus IETF audio codec (@PC_BUILD@ build) 10 | URL: http://opus-codec.org/ 11 | Version: @VERSION@ 12 | Requires: 13 | Conflicts: 14 | Libs: -L${libdir} -lopus 15 | Libs.private: @LIBM@ 16 | Cflags: -I${includedir}/opus 17 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/opus_headers.mk: -------------------------------------------------------------------------------- 1 | OPUS_HEAD = \ 2 | include/opus.h \ 3 | include/opus_multistream.h \ 4 | src/opus_private.h \ 5 | src/analysis.h \ 6 | src/mlp.h \ 7 | src/tansig_table.h 8 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/opus_sources.mk: -------------------------------------------------------------------------------- 1 | OPUS_SOURCES = src/opus.c \ 2 | src/opus_decoder.c \ 3 | src/opus_encoder.c \ 4 | src/opus_multistream.c \ 5 | src/opus_multistream_encoder.c \ 6 | src/opus_multistream_decoder.c \ 7 | src/repacketizer.c 8 | 9 | OPUS_SOURCES_FLOAT = \ 10 | src/analysis.c \ 11 | src/mlp.c \ 12 | src/mlp_data.c 13 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/package_version: -------------------------------------------------------------------------------- 1 | PACKAGE_VERSION="1.1.2" 2 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/silk_headers.mk: -------------------------------------------------------------------------------- 1 | SILK_HEAD = \ 2 | silk/debug.h \ 3 | silk/control.h \ 4 | silk/errors.h \ 5 | silk/API.h \ 6 | silk/typedef.h \ 7 | silk/define.h \ 8 | silk/main.h \ 9 | silk/x86/main_sse.h \ 10 | silk/PLC.h \ 11 | silk/structs.h \ 12 | silk/tables.h \ 13 | silk/tuning_parameters.h \ 14 | silk/Inlines.h \ 15 | silk/MacroCount.h \ 16 | silk/MacroDebug.h \ 17 | silk/macros.h \ 18 | silk/pitch_est_defines.h \ 19 | silk/resampler_private.h \ 20 | silk/resampler_rom.h \ 21 | silk/resampler_structs.h \ 22 | silk/SigProc_FIX.h \ 23 | silk/x86/SigProc_FIX_sse.h \ 24 | silk/arm/macros_armv4.h \ 25 | silk/arm/macros_armv5e.h \ 26 | silk/arm/SigProc_FIX_armv4.h \ 27 | silk/arm/SigProc_FIX_armv5e.h \ 28 | silk/fixed/main_FIX.h \ 29 | silk/fixed/structs_FIX.h \ 30 | silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h \ 31 | silk/fixed/mips/prefilter_FIX_mipsr1.h \ 32 | silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h \ 33 | silk/float/main_FLP.h \ 34 | silk/float/structs_FLP.h \ 35 | silk/float/SigProc_FLP.h \ 36 | silk/mips/macros_mipsr1.h \ 37 | silk/mips/NSQ_del_dec_mipsr1.h \ 38 | silk/mips/sigproc_fix_mipsr1.h 39 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/version.mk: -------------------------------------------------------------------------------- 1 | # static version string; update manually every release. 2 | PACKAGE_VERSION = "1.1.2" 3 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/win32/VS2010/opus_demo.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/win32/VS2010/test_opus_api.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/win32/VS2010/test_opus_decode.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4a0dd677-931f-4728-afe5-b761149fc7eb} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/win32/VS2010/test_opus_encode.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {546c8d9a-103e-4f78-972b-b44e8d3c8aba} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/opus/win32/genversion.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | setlocal enableextensions enabledelayedexpansion 4 | 5 | for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*"') do set version=%%v 6 | 7 | if not "%version%"=="" goto :gotversion 8 | 9 | if exist "%~dp0..\version.mk" goto :getversion 10 | 11 | echo Git cannot be found, nor can version.mk. Generating unknown version. 12 | 13 | set version=unknown 14 | 15 | goto :gotversion 16 | 17 | :getversion 18 | 19 | for /f "delims== tokens=2" %%v in (%~dps0..\version.mk) do set version=%%v 20 | 21 | set version=!version:^"=! 22 | set version=!version: =! 23 | 24 | :gotversion 25 | 26 | set version_out=#define %~2 "%version%" 27 | set version_mk=%~2 = "%version%" 28 | 29 | echo %version_out%> "%~1_temp" 30 | 31 | if %version%==unknown goto :skipgenerate 32 | 33 | echo # static version string; update manually every release.> "%~dp0..\version.mk" 34 | echo %version_mk%>> "%~dp0..\version.mk" 35 | 36 | :skipgenerate 37 | 38 | echo n | comp "%~1_temp" "%~1" > NUL 2> NUL 39 | 40 | if not errorlevel 1 goto exit 41 | 42 | copy /y "%~1_temp" "%~1" 43 | 44 | :exit 45 | 46 | del "%~1_temp" 47 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/resample/include/resamplesubs.h: -------------------------------------------------------------------------------- 1 | #ifndef __RESAMPLESUBS_H__ 2 | #define __RESAMPLESUBS_H__ 3 | 4 | typedef char RES_BOOL; 5 | typedef short RES_HWORD; 6 | typedef int RES_WORD; 7 | typedef unsigned short RES_UHWORD; 8 | typedef unsigned int RES_UWORD; 9 | 10 | #ifdef _USRDLL 11 | # define DECL(T) __declspec(dllexport) T 12 | #else 13 | # define DECL(T) T 14 | #endif 15 | 16 | #ifdef __cplusplus 17 | extern "C" 18 | { 19 | #endif 20 | 21 | DECL(int) res_SrcLinear(const RES_HWORD X[], RES_HWORD Y[], 22 | double pFactor, RES_UHWORD nx); 23 | DECL(int) res_Resample(const RES_HWORD X[], RES_HWORD Y[], double pFactor, 24 | RES_UHWORD nx, RES_BOOL LargeF, RES_BOOL Interp); 25 | DECL(int) res_GetXOFF(double pFactor, RES_BOOL LargeF); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/resample/src/libresample_dll.c: -------------------------------------------------------------------------------- 1 | // libresample_dll.cpp : Defines the entry point for the DLL application. 2 | // 3 | #include 4 | 5 | BOOL APIENTRY DllMain( HANDLE hModule, 6 | DWORD ul_reason_for_call, 7 | LPVOID lpReserved 8 | ) 9 | { 10 | return TRUE; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/resample/src/stddefs.h: -------------------------------------------------------------------------------- 1 | #ifndef PI 2 | #define PI (3.14159265358979232846) 3 | #endif 4 | 5 | #ifndef PI2 6 | #define PI2 (6.28318530717958465692) 7 | #endif 8 | 9 | #define D2R (0.01745329348) /* (2*pi)/360 */ 10 | #define R2D (57.29577951) /* 360/(2*pi) */ 11 | 12 | #ifndef MAX 13 | #define MAX(x,y) ((x)>(y) ?(x):(y)) 14 | #endif 15 | #ifndef MIN 16 | #define MIN(x,y) ((x)<(y) ?(x):(y)) 17 | #endif 18 | 19 | #ifndef ABS 20 | #define ABS(x) ((x)<0 ?(-(x)):(x)) 21 | #endif 22 | 23 | #ifndef SGN 24 | #define SGN(x) ((x)<0 ?(-1):((x)==0?(0):(1))) 25 | #endif 26 | 27 | #define MAX_HWORD (32767) 28 | #define MIN_HWORD (-32768) 29 | 30 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/speex/AUTHORS: -------------------------------------------------------------------------------- 1 | Jean-Marc Valin 2 | All the code except the following 3 | 4 | David Rowe 5 | lsp.c lsp.h 6 | Also ideas and feedback 7 | 8 | John Francis Edwards 9 | wave_out.[ch], some #ifdefs for windows port and MSVC project files 10 | 11 | Segher Boessenkool 12 | Misc. optimizations (for QMF in particular) 13 | 14 | Atsuhiko Yamanaka : 15 | Patch to speexenc.c to add Vorbis comment format 16 | 17 | Radim Kolar : 18 | Patch to speexenc.c for supporting more input formats 19 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/speex/include/speex/speex_config_types.h.in: -------------------------------------------------------------------------------- 1 | #ifndef __SPEEX_TYPES_H__ 2 | #define __SPEEX_TYPES_H__ 3 | 4 | /* these are filled in by configure */ 5 | typedef @SIZE16@ spx_int16_t; 6 | typedef unsigned @SIZE16@ spx_uint16_t; 7 | typedef @SIZE32@ spx_int32_t; 8 | typedef unsigned @SIZE32@ spx_uint32_t; 9 | 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/speex/libspeex/kiss_fftr.h: -------------------------------------------------------------------------------- 1 | #ifndef KISS_FTR_H 2 | #define KISS_FTR_H 3 | 4 | #include "kiss_fft.h" 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | 10 | /* 11 | 12 | Real optimized version can save about 45% cpu time vs. complex fft of a real seq. 13 | 14 | 15 | 16 | */ 17 | 18 | typedef struct kiss_fftr_state *kiss_fftr_cfg; 19 | 20 | 21 | kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem); 22 | /* 23 | nfft must be even 24 | 25 | If you don't care to allocate space, use mem = lenmem = NULL 26 | */ 27 | 28 | 29 | void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata); 30 | /* 31 | input timedata has nfft scalar points 32 | output freqdata has nfft/2+1 complex points 33 | */ 34 | 35 | void kiss_fftr2(kiss_fftr_cfg st,const kiss_fft_scalar *timedata,kiss_fft_scalar *freqdata); 36 | 37 | void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata); 38 | 39 | void kiss_fftri2(kiss_fftr_cfg st,const kiss_fft_scalar *freqdata, kiss_fft_scalar *timedata); 40 | 41 | /* 42 | input freqdata has nfft/2+1 complex points 43 | output timedata has nfft scalar points 44 | */ 45 | 46 | #define kiss_fftr_free speex_free 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | #endif 52 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/speex/libspeex/testdenoise.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | 5 | #include 6 | #include 7 | 8 | #define NN 160 9 | 10 | int main() 11 | { 12 | short in[NN]; 13 | int i; 14 | SpeexPreprocessState *st; 15 | int count=0; 16 | float f; 17 | 18 | st = speex_preprocess_state_init(NN, 8000); 19 | i=1; 20 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DENOISE, &i); 21 | i=0; 22 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC, &i); 23 | i=8000; 24 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_AGC_LEVEL, &i); 25 | i=0; 26 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB, &i); 27 | f=.0; 28 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_DECAY, &f); 29 | f=.0; 30 | speex_preprocess_ctl(st, SPEEX_PREPROCESS_SET_DEREVERB_LEVEL, &f); 31 | while (1) 32 | { 33 | int vad; 34 | fread(in, sizeof(short), NN, stdin); 35 | if (feof(stdin)) 36 | break; 37 | vad = speex_preprocess_run(st, in); 38 | /*fprintf (stderr, "%d\n", vad);*/ 39 | fwrite(in, sizeof(short), NN, stdout); 40 | count++; 41 | } 42 | speex_preprocess_state_destroy(st); 43 | return 0; 44 | } 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/speex/win32/config.h: -------------------------------------------------------------------------------- 1 | // Microsoft version of 'inline' 2 | #define inline __inline 3 | 4 | // Visual Studio support alloca(), but it always align variables to 16-bit 5 | // boundary, while SSE need 128-bit alignment. So we disable alloca() when 6 | // SSE is enabled. 7 | #ifndef _USE_SSE 8 | # define USE_ALLOCA 9 | #endif 10 | 11 | /* Default to floating point */ 12 | #ifndef FIXED_POINT 13 | # define USE_SMALLFT 14 | #else 15 | # define USE_KISS_FFT 16 | #endif 17 | 18 | /* We don't support visibility on Win32 */ 19 | #define EXPORT 20 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/VERSION: -------------------------------------------------------------------------------- 1 | 1.4.4 2 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/crypto/VERSION: -------------------------------------------------------------------------------- 1 | 1.0.0 2 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/crypto/include/aes_cbc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * aes_cbc.h 3 | * 4 | * Header for AES Cipher Blobk Chaining Mode. 5 | * 6 | * David A. McGrew 7 | * Cisco Systems, Inc. 8 | * 9 | */ 10 | 11 | #ifndef AES_CBC_H 12 | #define AES_CBC_H 13 | 14 | #include "aes.h" 15 | #include "cipher.h" 16 | 17 | typedef struct { 18 | v128_t state; /* cipher chaining state */ 19 | v128_t previous; /* previous ciphertext block */ 20 | aes_expanded_key_t expanded_key; /* the cipher key */ 21 | } aes_cbc_ctx_t; 22 | 23 | err_status_t 24 | aes_cbc_set_key(aes_cbc_ctx_t *c, 25 | const unsigned char *key); 26 | 27 | err_status_t 28 | aes_cbc_encrypt(aes_cbc_ctx_t *c, 29 | unsigned char *buf, 30 | unsigned int *bytes_in_data); 31 | 32 | err_status_t 33 | aes_cbc_context_init(aes_cbc_ctx_t *c, const uint8_t *key, 34 | cipher_direction_t dir); 35 | 36 | err_status_t 37 | aes_cbc_set_iv(aes_cbc_ctx_t *c, void *iv); 38 | 39 | err_status_t 40 | aes_cbc_nist_encrypt(aes_cbc_ctx_t *c, 41 | unsigned char *data, 42 | unsigned int *bytes_in_data); 43 | 44 | err_status_t 45 | aes_cbc_nist_decrypt(aes_cbc_ctx_t *c, 46 | unsigned char *data, 47 | unsigned int *bytes_in_data); 48 | 49 | #endif /* AES_CBC_H */ 50 | 51 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/crypto/include/aes_icm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * aes_icm.h 3 | * 4 | * Header for AES Integer Counter Mode. 5 | * 6 | * David A. McGrew 7 | * Cisco Systems, Inc. 8 | * 9 | */ 10 | 11 | #ifndef AES_ICM_H 12 | #define AES_ICM_H 13 | 14 | #include "aes.h" 15 | #include "cipher.h" 16 | 17 | typedef struct { 18 | v128_t counter; /* holds the counter value */ 19 | v128_t offset; /* initial offset value */ 20 | v128_t keystream_buffer; /* buffers bytes of keystream */ 21 | aes_expanded_key_t expanded_key; /* the cipher key */ 22 | int bytes_in_buffer; /* number of unused bytes in buffer */ 23 | } aes_icm_ctx_t; 24 | 25 | 26 | err_status_t 27 | aes_icm_context_init(aes_icm_ctx_t *c, 28 | const unsigned char *key); 29 | 30 | err_status_t 31 | aes_icm_set_iv(aes_icm_ctx_t *c, void *iv); 32 | 33 | err_status_t 34 | aes_icm_encrypt(aes_icm_ctx_t *c, 35 | unsigned char *buf, unsigned int *bytes_to_encr); 36 | 37 | err_status_t 38 | aes_icm_output(aes_icm_ctx_t *c, 39 | unsigned char *buf, int bytes_to_output); 40 | 41 | err_status_t 42 | aes_icm_dealloc(cipher_t *c); 43 | 44 | err_status_t 45 | aes_icm_encrypt_ismacryp(aes_icm_ctx_t *c, 46 | unsigned char *buf, 47 | unsigned int *enc_len, 48 | int forIsmacryp); 49 | 50 | err_status_t 51 | aes_icm_alloc_ismacryp(cipher_t **c, 52 | int key_len, 53 | int forIsmacryp); 54 | 55 | #endif /* AES_ICM_H */ 56 | 57 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/crypto/include/crypto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * crypto.h 3 | * 4 | * API for libcrypto 5 | * 6 | * David A. McGrew 7 | * Cisco Systems, Inc. 8 | */ 9 | 10 | #ifndef CRYPTO_H 11 | #define CRYPTO_H 12 | 13 | /** 14 | * @brief A cipher_type_id_t is an identifier for a particular cipher 15 | * type. 16 | * 17 | * A cipher_type_id_t is an integer that represents a particular 18 | * cipher type, e.g. the Advanced Encryption Standard (AES). A 19 | * NULL_CIPHER is avaliable; this cipher leaves the data unchanged, 20 | * and can be selected to indicate that no encryption is to take 21 | * place. 22 | * 23 | * @ingroup Ciphers 24 | */ 25 | typedef uint32_t cipher_type_id_t; 26 | 27 | /** 28 | * @brief An auth_type_id_t is an identifier for a particular authentication 29 | * function. 30 | * 31 | * An auth_type_id_t is an integer that represents a particular 32 | * authentication function type, e.g. HMAC-SHA1. A NULL_AUTH is 33 | * avaliable; this authentication function performs no computation, 34 | * and can be selected to indicate that no authentication is to take 35 | * place. 36 | * 37 | * @ingroup Authentication 38 | */ 39 | typedef uint32_t auth_type_id_t; 40 | 41 | #endif /* CRYPTO_H */ 42 | 43 | 44 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/crypto/include/prng.h: -------------------------------------------------------------------------------- 1 | /* 2 | * prng.h 3 | * 4 | * pseudorandom source 5 | * 6 | * David A. McGrew 7 | * Cisco Systems, Inc. 8 | */ 9 | 10 | #ifndef PRNG_H 11 | #define PRNG_H 12 | 13 | #include "rand_source.h" /* for rand_source_func_t definition */ 14 | #include "aes.h" /* for aes */ 15 | #include "aes_icm.h" /* for aes ctr */ 16 | 17 | #define MAX_PRNG_OUT_LEN 0xffffffffU 18 | 19 | /* 20 | * x917_prng is an ANSI X9.17-like AES-based PRNG 21 | */ 22 | 23 | typedef struct { 24 | v128_t state; /* state data */ 25 | aes_expanded_key_t key; /* secret key */ 26 | uint32_t octet_count; /* number of octets output since last init */ 27 | rand_source_func_t rand; /* random source for re-initialization */ 28 | } x917_prng_t; 29 | 30 | err_status_t 31 | x917_prng_init(rand_source_func_t random_source); 32 | 33 | err_status_t 34 | x917_prng_get_octet_string(uint8_t *dest, uint32_t len); 35 | 36 | 37 | /* 38 | * ctr_prng is an AES-CTR based PRNG 39 | */ 40 | 41 | typedef struct { 42 | uint32_t octet_count; /* number of octets output since last init */ 43 | aes_icm_ctx_t state; /* state data */ 44 | rand_source_func_t rand; /* random source for re-initialization */ 45 | } ctr_prng_t; 46 | 47 | err_status_t 48 | ctr_prng_init(rand_source_func_t random_source); 49 | 50 | err_status_t 51 | ctr_prng_get_octet_string(void *dest, uint32_t len); 52 | 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/doc/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for libSRTP documentation 2 | # 3 | # David A. McGrew 4 | # Cisco Systems, Inc. 5 | # 6 | # This makefile does not use the autoconf system; we don't really need 7 | # it. We just run doxygen then latex. If you don't have either of 8 | # these, then there is no way that you can make your own 9 | # documentation. Of course, you can just go online at pick up the 10 | # documentation from http://srtp.sourceforge.net. 11 | 12 | srcdir = . 13 | top_srcdir = .. 14 | top_builddir = ../ 15 | 16 | 17 | # Determine the version of the library 18 | 19 | version = $(shell cat $(top_srcdir)/VERSION) 20 | 21 | 22 | .PHONY: libsrtpdoc cryptodoc clean 23 | libsrtpdoc: 24 | @if test ! -e Doxyfile; then \ 25 | echo "*** Sorry, can't build doc outside source dir"; exit 1; \ 26 | fi 27 | sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex 28 | doxygen 29 | sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp 30 | mv latex/index.tmp latex/index.tex 31 | cd latex; make 32 | cp latex/refman.pdf libsrtp.pdf 33 | 34 | 35 | cryptodoc: clean 36 | doxygen crypto.dox 37 | cd latex; make 38 | cp latex/refman.pdf crypto.pdf 39 | 40 | clean: 41 | rm -rf latex/ header.tex 42 | for a in * ; do \ 43 | if [ -f "$$a~" ] ; then rm -f $$a~; fi; \ 44 | done; 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/doc/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile for libSRTP documentation 2 | # 3 | # David A. McGrew 4 | # Cisco Systems, Inc. 5 | # 6 | # This makefile does not use the autoconf system; we don't really need 7 | # it. We just run doxygen then latex. If you don't have either of 8 | # these, then there is no way that you can make your own 9 | # documentation. Of course, you can just go online at pick up the 10 | # documentation from http://srtp.sourceforge.net. 11 | 12 | srcdir = @srcdir@ 13 | top_srcdir = @top_srcdir@ 14 | top_builddir = @top_builddir@ 15 | VPATH = @srcdir@ 16 | 17 | # Determine the version of the library 18 | 19 | version = $(shell cat $(top_srcdir)/VERSION) 20 | 21 | 22 | .PHONY: libsrtpdoc cryptodoc clean 23 | libsrtpdoc: 24 | @if test ! -e Doxyfile; then \ 25 | echo "*** Sorry, can't build doc outside source dir"; exit 1; \ 26 | fi 27 | sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex 28 | doxygen 29 | sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp 30 | mv latex/index.tmp latex/index.tex 31 | cd latex; make 32 | cp latex/refman.pdf libsrtp.pdf 33 | 34 | 35 | cryptodoc: clean 36 | doxygen crypto.dox 37 | cd latex; make 38 | cp latex/refman.pdf crypto.pdf 39 | 40 | clean: 41 | rm -rf latex/ header.tex 42 | for a in * ; do \ 43 | if [ -f "$$a~" ] ; then rm -f $$a~; fi; \ 44 | done; 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/doc/references.txt: -------------------------------------------------------------------------------- 1 | SRTP and ICM References 2 | September, 2005 3 | 4 | This document provides references for the various cryptographic 5 | functions used in libSRTP and libaesicm. 6 | 7 | Secure RTP is defined in RFC 3711, which is included in this 8 | distribution for convenience. The counter mode definition is in 9 | Section 4.1.1 of the SRTP draft. 10 | 11 | SHA-1 is defined in FIPS-180-1, available online at the NIST website. 12 | 13 | HMAC is defined in RFC2104, and HMAC-SHA1 test vectors are available 14 | in RFC2202, which are available online at http://www.ietf.org/rfc/ 15 | 16 | ICM is defined by draft-irtf-cfrg-icm-00.txt, and its application in 17 | ISMAcryp (the Internet Streaming Media Alliance 1.0 Encryption and 18 | Authentication) is defined in that specification. It is available 19 | from http://www.isma.tv/. 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/srtp7.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSRTP", "srtp7.vcproj", "{7E1E1308-F82E-4DD3-B25C-CD12756A1DD9}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {7E1E1308-F82E-4DD3-B25C-CD12756A1DD9}.Debug.ActiveCfg = Debug|Win32 13 | {7E1E1308-F82E-4DD3-B25C-CD12756A1DD9}.Debug.Build.0 = Debug|Win32 14 | {7E1E1308-F82E-4DD3-B25C-CD12756A1DD9}.Release.ActiveCfg = Release|Win32 15 | {7E1E1308-F82E-4DD3-B25C-CD12756A1DD9}.Release.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/timing: -------------------------------------------------------------------------------- 1 | # timing.plt # # gnuplot script file for plotting the output generated by srtp_driver -t # # David A. McGrew # Cisco Systems, Inc. # set xrange [0:2500] set term pict "Times-Roman" 9 # # plot authentication-only data # set title "Authentication Only" set ylabel "Megabits per second" set xlabel "Octets in packet" set yrange [0:2000] set output "plot-auth.pict" plot "timing.dat" index 0 title "HMAC SHA1" with lines, "timing.dat" index 1 title "TMMH/AES" with lines, "timing.dat" index 2 title "TMMH/SEAL" with lines # # plot encryption-only data # set title "Encryption Only" set ylabel "Megabits per second" set xlabel "Octets in packet" set output "plot-enc.pict" set yrange [0:1200] plot "timing.dat" index 3 title "SEAL" with lines, "timing.dat" index 4 title "AES ICM" with lines # # plot encryption and authentication data # set title "Encryption and Authentication" set ylabel "Megabits per second" set xlabel "Octets in packet" set yrange [0:1000] set output "plot-enc-auth.pict" plot "timing.dat" index 5 title "TMMH/SEAL" with lines, "timing.dat" index 6 title "TMMH/AES" with lines, "timing.dat" index 7 title "HMAC/AES" with lines -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/undos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # usage: undos 4 | # 5 | # strips CRs from a file - useful when moving DOS-created files 6 | # onto UN*X machines 7 | 8 | cat $1 | tr -d "\r" > $1.tmp 9 | mv $1.tmp $1 10 | 11 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/srtp/update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # update.sh 4 | # 5 | # update copyright dates in files 6 | 7 | a=`find . -name "*.[ch]"` 8 | for x in $a; do 9 | sed 's/(c) 2001-2005/(c) 2001-2006/' $x > $x.tmp; 10 | mv $x.tmp $x; 11 | done 12 | 13 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/OWNERS: -------------------------------------------------------------------------------- 1 | bjornv@webrtc.org 2 | tina.legrand@webrtc.org 3 | jan.skoglund@webrtc.org 4 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/complex_bit_reverse.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_ComplexBitReverse(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include "signal_processing_library.h" 19 | 20 | void WebRtcSpl_ComplexBitReverse(WebRtc_Word16 frfi[], int stages) 21 | { 22 | int mr, nn, n, l, m; 23 | WebRtc_Word16 tr, ti; 24 | 25 | n = 1 << stages; 26 | 27 | mr = 0; 28 | nn = n - 1; 29 | 30 | // decimation in time - re-order data 31 | for (m = 1; m <= nn; ++m) 32 | { 33 | l = n; 34 | do 35 | { 36 | l >>= 1; 37 | } while (mr + l > nn); 38 | mr = (mr & (l - 1)) + l; 39 | 40 | if (mr <= m) 41 | continue; 42 | 43 | tr = frfi[2 * m]; 44 | frfi[2 * m] = frfi[2 * mr]; 45 | frfi[2 * mr] = tr; 46 | 47 | ti = frfi[2 * m + 1]; 48 | frfi[2 * m + 1] = frfi[2 * mr + 1]; 49 | frfi[2 * mr + 1] = ti; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/energy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_Energy(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include "signal_processing_library.h" 19 | 20 | WebRtc_Word32 WebRtcSpl_Energy(WebRtc_Word16* vector, int vector_length, int* scale_factor) 21 | { 22 | WebRtc_Word32 en = 0; 23 | int i; 24 | int scaling = WebRtcSpl_GetScalingSquare(vector, vector_length, vector_length); 25 | int looptimes = vector_length; 26 | WebRtc_Word16 *vectorptr = vector; 27 | 28 | for (i = 0; i < looptimes; i++) 29 | { 30 | en += WEBRTC_SPL_MUL_16_16_RSFT(*vectorptr, *vectorptr, scaling); 31 | vectorptr++; 32 | } 33 | *scale_factor = scaling; 34 | 35 | return en; 36 | } 37 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/get_hanning_window.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_GetHanningWindow(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include "signal_processing_library.h" 19 | 20 | void WebRtcSpl_GetHanningWindow(WebRtc_Word16 *v, WebRtc_Word16 size) 21 | { 22 | int jj; 23 | WebRtc_Word16 *vptr1; 24 | 25 | WebRtc_Word32 index; 26 | WebRtc_Word32 factor = ((WebRtc_Word32)0x40000000); 27 | 28 | factor = WebRtcSpl_DivW32W16(factor, size); 29 | if (size < 513) 30 | index = (WebRtc_Word32)-0x200000; 31 | else 32 | index = (WebRtc_Word32)-0x100000; 33 | vptr1 = v; 34 | 35 | for (jj = 0; jj < size; jj++) 36 | { 37 | index += factor; 38 | (*vptr1++) = WebRtcSpl_kHanningTable[index >> 22]; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/get_scaling_square.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_GetScalingSquare(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include "signal_processing_library.h" 19 | 20 | int WebRtcSpl_GetScalingSquare(WebRtc_Word16 *in_vector, int in_vector_length, int times) 21 | { 22 | int nbits = WebRtcSpl_GetSizeInBits(times); 23 | int i; 24 | WebRtc_Word16 smax = -1; 25 | WebRtc_Word16 sabs; 26 | WebRtc_Word16 *sptr = in_vector; 27 | int t; 28 | int looptimes = in_vector_length; 29 | 30 | for (i = looptimes; i > 0; i--) 31 | { 32 | sabs = (*sptr > 0 ? *sptr++ : -*sptr++); 33 | smax = (sabs > smax ? sabs : smax); 34 | } 35 | t = WebRtcSpl_NormW32(WEBRTC_SPL_MUL(smax, smax)); 36 | 37 | if (smax == 0) 38 | { 39 | return 0; // Since norm(0) returns 0 40 | } else 41 | { 42 | return (t > nbits) ? 0 : nbits - t; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/spl_version.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_get_version(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include 19 | #include "signal_processing_library.h" 20 | 21 | WebRtc_Word16 WebRtcSpl_get_version(char* version, WebRtc_Word16 length_in_bytes) 22 | { 23 | strncpy(version, "1.2.0", length_in_bytes); 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/sqrt_of_one_minus_x_squared.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the function WebRtcSpl_SqrtOfOneMinusXSquared(). 14 | * The description header can be found in signal_processing_library.h 15 | * 16 | */ 17 | 18 | #include "signal_processing_library.h" 19 | 20 | void WebRtcSpl_SqrtOfOneMinusXSquared(WebRtc_Word16 *xQ15, int vector_length, 21 | WebRtc_Word16 *yQ15) 22 | { 23 | WebRtc_Word32 sq; 24 | int m; 25 | WebRtc_Word16 tmp; 26 | 27 | for (m = 0; m < vector_length; m++) 28 | { 29 | tmp = xQ15[m]; 30 | sq = WEBRTC_SPL_MUL_16_16(tmp, tmp); // x^2 in Q30 31 | sq = 1073741823 - sq; // 1-x^2, where 1 ~= 0.99999999906 is 1073741823 in Q30 32 | sq = WebRtcSpl_Sqrt(sq); // sqrt(1-x^2) in Q15 33 | yQ15[m] = (WebRtc_Word16)sq; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/common_audio/signal_processing_library/main/source/webrtc_fft_t_rad.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | 12 | /* 13 | * This file contains the Q14 radix-2 tables used in ARM9E optimization routines. 14 | * 15 | */ 16 | 17 | extern const unsigned short t_Q14S_rad8[2]; 18 | const unsigned short t_Q14S_rad8[2] = { 0x0000,0x2d41 }; 19 | 20 | //extern const int t_Q30S_rad8[2]; 21 | //const int t_Q30S_rad8[2] = { 0x00000000,0x2d413ccd }; 22 | 23 | extern const unsigned short t_Q14R_rad8[2]; 24 | const unsigned short t_Q14R_rad8[2] = { 0x2d41,0x2d41 }; 25 | 26 | //extern const int t_Q30R_rad8[2]; 27 | //const int t_Q30R_rad8[2] = { 0x2d413ccd,0x2d413ccd }; 28 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/modules/audio_processing/aec/main/source/resampler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_MAIN_SOURCE_RESAMPLER_H_ 12 | #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_MAIN_SOURCE_RESAMPLER_H_ 13 | 14 | enum { kResamplingDelay = 1 }; 15 | 16 | // Unless otherwise specified, functions return 0 on success and -1 on error 17 | int WebRtcAec_CreateResampler(void **resampInst); 18 | int WebRtcAec_InitResampler(void *resampInst, int deviceSampleRateHz); 19 | int WebRtcAec_FreeResampler(void *resampInst); 20 | 21 | // Estimates skew from raw measurement. 22 | int WebRtcAec_GetSkew(void *resampInst, int rawSkew, float *skewEst); 23 | 24 | // Resamples input using linear interpolation. 25 | // Returns size of resampled array. 26 | int WebRtcAec_ResampleLinear(void *resampInst, 27 | const short *inspeech, 28 | int size, 29 | float skew, 30 | short *outspeech); 31 | 32 | #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_MAIN_SOURCE_RESAMPLER_H_ 33 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/modules/audio_processing/utility/fft4g.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_FFT4G_H_ 12 | #define WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_FFT4G_H_ 13 | 14 | void rdft(int, int, float *, int *, float *); 15 | void cdft(int, int, float *, int *, float *); 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/OWNERS: -------------------------------------------------------------------------------- 1 | henrike@webrtc.org 2 | pwestin@webrtc.org 3 | perkj@webrtc.org 4 | henrika@webrtc.org 5 | henrikg@webrtc.org 6 | mflodman@webrtc.org 7 | niklas.enbom@webrtc.org -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/interface/aligned_malloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_MALLOC_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_MALLOC_H_ 13 | 14 | #include 15 | 16 | namespace webrtc 17 | { 18 | void* AlignedMalloc( 19 | size_t size, 20 | size_t alignment); 21 | void AlignedFree( 22 | void* memBlock); 23 | } 24 | 25 | #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_MALLOC_H_ 26 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/interface/cpu_features_wrapper.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_FEATURES_WRAPPER_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_FEATURES_WRAPPER_H_ 13 | 14 | #if defined(__cplusplus) || defined(c_plusplus) 15 | extern "C" { 16 | #endif 17 | 18 | // list of features. 19 | typedef enum { 20 | kSSE2, 21 | kSSE3 22 | } CPUFeature; 23 | 24 | typedef int (*WebRtc_CPUInfo)(CPUFeature feature); 25 | // returns true if the CPU supports the feature. 26 | extern WebRtc_CPUInfo WebRtc_GetCPUInfo; 27 | // No CPU feature is available => straight C path. 28 | extern WebRtc_CPUInfo WebRtc_GetCPUInfoNoASM; 29 | 30 | #if defined(__cplusplus) || defined(c_plusplus) 31 | } // extern "C" 32 | #endif 33 | 34 | #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_FEATURES_WRAPPER_H_ 35 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/condition_variable.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #if defined(_WIN32) 12 | #include 13 | #include "condition_variable_wrapper.h" 14 | #include "condition_variable_windows.h" 15 | #elif defined(WEBRTC_LINUX) 16 | #include 17 | #include "condition_variable_wrapper.h" 18 | #include "condition_variable_posix.h" 19 | #elif defined(WEBRTC_MAC) || defined(WEBRTC_MAC_INTEL) 20 | #include 21 | #include "condition_variable_wrapper.h" 22 | #include "condition_variable_posix.h" 23 | #endif 24 | 25 | namespace webrtc { 26 | ConditionVariableWrapper* 27 | ConditionVariableWrapper::CreateConditionVariable() 28 | { 29 | #if defined(_WIN32) 30 | return new ConditionVariableWindows; 31 | #elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC) || defined(WEBRTC_MAC_INTEL) 32 | return ConditionVariablePosix::Create(); 33 | #else 34 | return NULL; 35 | #endif 36 | } 37 | } // namespace webrtc 38 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/condition_variable_posix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_CONDITION_VARIABLE_POSIX_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_CONDITION_VARIABLE_POSIX_H_ 13 | 14 | #include "condition_variable_wrapper.h" 15 | 16 | #include 17 | 18 | namespace webrtc { 19 | class ConditionVariablePosix : public ConditionVariableWrapper 20 | { 21 | public: 22 | static ConditionVariableWrapper* Create(); 23 | ~ConditionVariablePosix(); 24 | 25 | void SleepCS(CriticalSectionWrapper& critSect); 26 | bool SleepCS(CriticalSectionWrapper& critSect, unsigned long maxTimeInMS); 27 | void Wake(); 28 | void WakeAll(); 29 | 30 | private: 31 | ConditionVariablePosix(); 32 | int Construct(); 33 | 34 | private: 35 | pthread_cond_t _cond; 36 | }; 37 | } // namespace webrtc 38 | 39 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_CONDITION_VARIABLE_POSIX_H_ 40 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/critical_section.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #if defined(_WIN32) 12 | #include 13 | #include "critical_section_windows.h" 14 | #else 15 | #include "critical_section_posix.h" 16 | #endif 17 | 18 | namespace webrtc { 19 | CriticalSectionWrapper* CriticalSectionWrapper::CreateCriticalSection() 20 | { 21 | #ifdef _WIN32 22 | return new CriticalSectionWindows(); 23 | #else 24 | return new CriticalSectionPosix(); 25 | #endif 26 | } 27 | } // namespace webrtc 28 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/critical_section_posix.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #include "critical_section_posix.h" 12 | 13 | namespace webrtc { 14 | CriticalSectionPosix::CriticalSectionPosix() 15 | { 16 | pthread_mutexattr_t attr; 17 | pthread_mutexattr_init(&attr); 18 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 19 | pthread_mutex_init(&_mutex, &attr); 20 | } 21 | 22 | CriticalSectionPosix::~CriticalSectionPosix() 23 | { 24 | pthread_mutex_destroy(&_mutex); 25 | } 26 | 27 | void 28 | CriticalSectionPosix::Enter() 29 | { 30 | pthread_mutex_lock(&_mutex); 31 | } 32 | 33 | void 34 | CriticalSectionPosix::Leave() 35 | { 36 | pthread_mutex_unlock(&_mutex); 37 | } 38 | } // namespace webrtc 39 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/critical_section_posix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_POSIX_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_POSIX_H_ 13 | 14 | #include "critical_section_wrapper.h" 15 | 16 | #include 17 | 18 | namespace webrtc { 19 | class CriticalSectionPosix : public CriticalSectionWrapper 20 | { 21 | public: 22 | CriticalSectionPosix(); 23 | 24 | virtual ~CriticalSectionPosix(); 25 | 26 | virtual void Enter(); 27 | virtual void Leave(); 28 | 29 | private: 30 | pthread_mutex_t _mutex; 31 | friend class ConditionVariablePosix; 32 | }; 33 | } // namespace webrtc 34 | 35 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_POSIX_H_ 36 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/critical_section_windows.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #include "critical_section_windows.h" 12 | 13 | namespace webrtc { 14 | CriticalSectionWindows::CriticalSectionWindows() 15 | { 16 | InitializeCriticalSection(&crit); 17 | } 18 | 19 | CriticalSectionWindows::~CriticalSectionWindows() 20 | { 21 | DeleteCriticalSection(&crit); 22 | } 23 | 24 | void 25 | CriticalSectionWindows::Enter() 26 | { 27 | EnterCriticalSection(&crit); 28 | } 29 | 30 | void 31 | CriticalSectionWindows::Leave() 32 | { 33 | LeaveCriticalSection(&crit); 34 | } 35 | } // namespace webrtc 36 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/critical_section_windows.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_WINDOWS_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_WINDOWS_H_ 13 | 14 | #include "typedefs.h" 15 | #include "critical_section_wrapper.h" 16 | #include 17 | 18 | namespace webrtc { 19 | class CriticalSectionWindows : public CriticalSectionWrapper 20 | { 21 | public: 22 | CriticalSectionWindows(); 23 | 24 | virtual ~CriticalSectionWindows(); 25 | 26 | virtual void Enter(); 27 | virtual void Leave(); 28 | 29 | private: 30 | CRITICAL_SECTION crit; 31 | 32 | friend class ConditionVariableWindows; 33 | }; 34 | } // namespace webrtc 35 | 36 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_WINDOWS_H_ 37 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/event_windows.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WINDOWS_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WINDOWS_H_ 13 | 14 | #include 15 | 16 | #include "event_wrapper.h" 17 | 18 | #include "typedefs.h" 19 | 20 | namespace webrtc { 21 | class EventWindows : public EventWrapper 22 | { 23 | public: 24 | EventWindows(); 25 | virtual ~EventWindows(); 26 | 27 | virtual EventTypeWrapper Wait(unsigned long maxTime); 28 | virtual bool Set(); 29 | virtual bool Reset(); 30 | 31 | virtual bool StartTimer(bool periodic, unsigned long time); 32 | virtual bool StopTimer(); 33 | 34 | private: 35 | HANDLE _event; 36 | WebRtc_UWord32 _timerID; 37 | }; 38 | } // namespace webrtc 39 | 40 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_WINDOWS_H_ 41 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/rw_lock.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #include "rw_lock_wrapper.h" 12 | 13 | #include 14 | 15 | #if defined(_WIN32) 16 | #include "rw_lock_windows.h" 17 | #elif defined(WEBRTC_ANDROID) 18 | #include 19 | #include "rw_lock_generic.h" 20 | #else 21 | #include "rw_lock_posix.h" 22 | #endif 23 | 24 | namespace webrtc { 25 | RWLockWrapper* RWLockWrapper::CreateRWLock() 26 | { 27 | #ifdef _WIN32 28 | RWLockWrapper* lock = new RWLockWindows(); 29 | #elif defined(WEBRTC_ANDROID) 30 | RWLockWrapper* lock = new RWLockWrapperGeneric(); 31 | #else 32 | RWLockWrapper* lock = new RWLockPosix(); 33 | #endif 34 | if(lock->Init() != 0) 35 | { 36 | delete lock; 37 | assert(false); 38 | return NULL; 39 | } 40 | return lock; 41 | } 42 | 43 | RWLockWrapper::~RWLockWrapper() 44 | { 45 | } 46 | } // namespace webrtc 47 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/rw_lock_generic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_GENERIC_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_GENERIC_H_ 13 | 14 | #include "rw_lock_wrapper.h" 15 | 16 | namespace webrtc { 17 | class CriticalSectionWrapper; 18 | class ConditionVariableWrapper; 19 | 20 | class RWLockWrapperGeneric : public RWLockWrapper 21 | { 22 | public: 23 | RWLockWrapperGeneric(); 24 | virtual ~RWLockWrapperGeneric(); 25 | 26 | virtual void AcquireLockExclusive(); 27 | virtual void ReleaseLockExclusive(); 28 | 29 | virtual void AcquireLockShared(); 30 | virtual void ReleaseLockShared(); 31 | 32 | protected: 33 | virtual int Init(); 34 | 35 | private: 36 | CriticalSectionWrapper* _critSectPtr; 37 | ConditionVariableWrapper* _readCondPtr; 38 | ConditionVariableWrapper* _writeCondPtr; 39 | 40 | int _readersActive; 41 | bool _writerActive; 42 | int _readersWaiting; 43 | int _writersWaiting; 44 | }; 45 | } // namespace webrtc 46 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_GENERIC_H_ 47 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/rw_lock_posix.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #include "rw_lock_posix.h" 12 | 13 | namespace webrtc { 14 | RWLockPosix::RWLockPosix() : _lock() 15 | { 16 | } 17 | 18 | RWLockPosix::~RWLockPosix() 19 | { 20 | pthread_rwlock_destroy(&_lock); 21 | } 22 | 23 | int RWLockPosix::Init() 24 | { 25 | return pthread_rwlock_init(&_lock, 0); 26 | } 27 | 28 | void RWLockPosix::AcquireLockExclusive() 29 | { 30 | pthread_rwlock_wrlock(&_lock); 31 | } 32 | 33 | void RWLockPosix::ReleaseLockExclusive() 34 | { 35 | pthread_rwlock_unlock(&_lock); 36 | } 37 | 38 | void RWLockPosix::AcquireLockShared() 39 | { 40 | pthread_rwlock_rdlock(&_lock); 41 | } 42 | 43 | void RWLockPosix::ReleaseLockShared() 44 | { 45 | pthread_rwlock_unlock(&_lock); 46 | } 47 | } // namespace webrtc 48 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/rw_lock_posix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_POSIX_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_POSIX_H_ 13 | 14 | #include "rw_lock_wrapper.h" 15 | 16 | #include 17 | 18 | namespace webrtc { 19 | class RWLockPosix : public RWLockWrapper 20 | { 21 | public: 22 | RWLockPosix(); 23 | virtual ~RWLockPosix(); 24 | 25 | virtual void AcquireLockExclusive(); 26 | virtual void ReleaseLockExclusive(); 27 | 28 | virtual void AcquireLockShared(); 29 | virtual void ReleaseLockShared(); 30 | 31 | protected: 32 | virtual int Init(); 33 | 34 | private: 35 | pthread_rwlock_t _lock; 36 | }; 37 | } // namespace webrtc 38 | 39 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_RW_LOCK_POSIX_H_ 40 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/thread.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #include "thread_wrapper.h" 12 | 13 | #if defined(_WIN32) 14 | #include "thread_windows.h" 15 | #else 16 | #include "thread_posix.h" 17 | #endif 18 | 19 | namespace webrtc { 20 | ThreadWrapper* ThreadWrapper::CreateThread(ThreadRunFunction func, 21 | ThreadObj obj, ThreadPriority prio, 22 | const char* threadName) 23 | { 24 | #if defined(_WIN32) 25 | return new ThreadWindows(func, obj, prio, threadName); 26 | #else 27 | return ThreadPosix::Create(func, obj, prio, threadName); 28 | #endif 29 | } 30 | } // namespace webrtc 31 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/thread_windows_set_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Use of this source code is governed by the MICROSOFT LIMITED PUBLIC LICENSE 3 | * copyright license which can be found in the LICENSE file in the 4 | * third_party_mods/mslpl directory of the source tree or at 5 | * http://msdn.microsoft.com/en-us/cc300389.aspx#P. 6 | */ 7 | /* 8 | * The original code can be found here: 9 | * http://msdn.microsoft.com/en-us/library/xcb2z8hs(VS.71).aspx 10 | */ 11 | 12 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_THREAD_WINDOWS_SET_NAME_H_ 13 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_THREAD_WINDOWS_SET_NAME_H_ 14 | 15 | namespace webrtc { 16 | 17 | struct THREADNAME_INFO 18 | { 19 | DWORD dwType; // must be 0x1000 20 | LPCSTR szName; // pointer to name (in user addr space) 21 | DWORD dwThreadID; // thread ID (-1 = caller thread) 22 | DWORD dwFlags; // reserved for future use, must be zero 23 | }; 24 | 25 | void SetThreadName(DWORD dwThreadID, LPCSTR szThreadName) 26 | { 27 | THREADNAME_INFO info; 28 | info.dwType = 0x1000; 29 | info.szName = szThreadName; 30 | info.dwThreadID = dwThreadID; 31 | info.dwFlags = 0; 32 | 33 | __try 34 | { 35 | RaiseException(0x406D1388, 0, sizeof(info) / sizeof(DWORD), 36 | (ULONG_PTR*)&info); 37 | } 38 | __except (EXCEPTION_CONTINUE_EXECUTION) 39 | { 40 | } 41 | } 42 | } // namespace webrtc 43 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_THREAD_WINDOWS_SET_NAME_H_ 44 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/trace_posix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_POSIX_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_POSIX_H_ 13 | 14 | #include "critical_section_wrapper.h" 15 | #include "trace_impl.h" 16 | 17 | namespace webrtc { 18 | class TracePosix : public TraceImpl 19 | { 20 | public: 21 | TracePosix(); 22 | virtual ~TracePosix(); 23 | 24 | virtual WebRtc_Word32 AddThreadId(char *traceMessage) const; 25 | virtual WebRtc_Word32 AddTime(char* traceMessage, 26 | const TraceLevel level) const; 27 | 28 | virtual WebRtc_Word32 AddBuildInfo(char* traceMessage) const; 29 | virtual WebRtc_Word32 AddDateTimeInfo(char* traceMessage) const; 30 | 31 | private: 32 | volatile mutable WebRtc_UWord32 _prevAPITickCount; 33 | volatile mutable WebRtc_UWord32 _prevTickCount; 34 | }; 35 | } // namespace webrtc 36 | 37 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_POSIX_H_ 38 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/webrtc/src/system_wrappers/source/trace_windows.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_WINDOWS_H_ 12 | #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_WINDOWS_H_ 13 | 14 | #include "trace_impl.h" 15 | #include 16 | #include 17 | 18 | namespace webrtc { 19 | class TraceWindows : public TraceImpl 20 | { 21 | public: 22 | TraceWindows(); 23 | virtual ~TraceWindows(); 24 | 25 | virtual WebRtc_Word32 AddThreadId(char *traceMessage) const; 26 | virtual WebRtc_Word32 AddTime(char* traceMessage, 27 | const TraceLevel level) const; 28 | 29 | virtual WebRtc_Word32 AddBuildInfo(char* traceMessage) const; 30 | virtual WebRtc_Word32 AddDateTimeInfo(char* traceMessage) const; 31 | private: 32 | volatile mutable WebRtc_UWord32 _prevAPITickCount; 33 | volatile mutable WebRtc_UWord32 _prevTickCount; 34 | }; 35 | } // namespace webrtc 36 | 37 | #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_WINDOWS_H_ 38 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/include/openssl_compat.h: -------------------------------------------------------------------------------- 1 | #ifndef _OPENSSL_COMPAT 2 | #define _OPENSSL_COMPAT 3 | 4 | #include 5 | 6 | #if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) 7 | static HMAC_CTX *HMAC_CTX_new(void) 8 | { 9 | HMAC_CTX *ctx = (HMAC_CTX*)OPENSSL_malloc(sizeof(HMAC_CTX)); 10 | if (ctx != NULL) 11 | HMAC_CTX_init(ctx); 12 | return ctx; 13 | } 14 | 15 | static void HMAC_CTX_free(HMAC_CTX *ctx) 16 | { 17 | if (ctx != NULL) { 18 | HMAC_CTX_cleanup(ctx); 19 | OPENSSL_free(ctx); 20 | } 21 | } 22 | 23 | static int HMAC_CTX_reset(HMAC_CTX *ctx) 24 | { 25 | HMAC_CTX_init(ctx); 26 | return 1; 27 | } 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/zrtp/base_version: -------------------------------------------------------------------------------- 1 | 4.4.0-dev 2 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/zrtp/common/EventClass.h: -------------------------------------------------------------------------------- 1 | // 2 | // EventClass.h: header file 3 | // 4 | // Copyright (C) Walter E. Capers. All rights reserved 5 | // 6 | // This source is free to use as you like. If you make 7 | // any changes please keep me in the loop. Email them to 8 | // walt.capers@comcast.net. 9 | // 10 | // PURPOSE: 11 | // 12 | // To implement event signals as a C++ object 13 | // 14 | // REVISIONS 15 | // ======================================================= 16 | // Date: 10.25.07 17 | // Name: Walter E. Capers 18 | // Description: File creation 19 | // 20 | // Date: 21 | // Name: 22 | // Description: 23 | // 24 | // 25 | #ifndef EVENT_CLASS 26 | #define EVENT_CLASS 27 | 28 | class CEventClass 29 | { 30 | private: 31 | ThreadId_t m_owner; 32 | #ifdef WINDOWS 33 | HANDLE m_event; 34 | #else 35 | pthread_cond_t m_ready; 36 | pthread_mutex_t m_lock; 37 | #endif 38 | public: 39 | BOOL e_timeout; 40 | BOOL m_bCreated; 41 | void Set(); 42 | BOOL Wait(DWORD tmout =0); 43 | void Reset(); 44 | CEventClass(void); 45 | ~CEventClass(void); 46 | }; 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/zrtp/common/MutexClass.h: -------------------------------------------------------------------------------- 1 | // 2 | // MutexClass.h: header file 3 | // 4 | // Copyright (C) Walter E. Capers. All rights reserved 5 | // 6 | // This source is free to use as you like. If you make 7 | // any changes please keep me in the loop. Email them to 8 | // walt.capers@comcast.net. 9 | // 10 | // PURPOSE: 11 | // 12 | // To implement mutexes as a C++ object 13 | // 14 | // REVISIONS 15 | // ======================================================= 16 | // Date: 10.25.07 17 | // Name: Walter E. Capers 18 | // Description: File creation 19 | // 20 | // Date: 21 | // Name: 22 | // Description: 23 | // 24 | // 25 | 26 | #ifndef MUTEX_CLASS 27 | #define MUTEX_CLASS 28 | 29 | #ifndef WINDOWS 30 | #if defined(WIN32) || defined(WIN64) 31 | #define WINDOWS 32 | #endif 33 | #endif 34 | 35 | #ifndef WINDOWS 36 | #include 37 | #endif 38 | #include 39 | 40 | class CMutexClass 41 | { 42 | private: 43 | #ifdef WINDOWS 44 | HANDLE m_mutex; 45 | #else 46 | pthread_mutex_t m_mutex; 47 | #endif 48 | ThreadId_t m_owner; 49 | public: 50 | BOOL m_bCreated; 51 | void Lock(); 52 | void Unlock(); 53 | CMutexClass(void); 54 | ~CMutexClass(void); 55 | }; 56 | #endif 57 | 58 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/zrtp/zrtp/libzrtpcpp/zrtpB64Decode.h: -------------------------------------------------------------------------------- 1 | /* 2 | cdecode.h - c header for a base64 decoding algorithm 3 | 4 | This is part of the libb64 project, and has been placed in the public domain. 5 | For details, see http://sourceforge.net/projects/libb64 6 | */ 7 | 8 | #ifndef BASE64_CDECODE_H 9 | #define BASE64_CDECODE_H 10 | 11 | #include 12 | 13 | #if defined(__cplusplus) 14 | extern "C" 15 | { 16 | #endif 17 | 18 | typedef enum 19 | { 20 | step_a, step_b, step_c, step_d 21 | } base64_decodestep; 22 | 23 | typedef struct 24 | { 25 | base64_decodestep step; 26 | char plainchar; 27 | } base64_decodestate; 28 | 29 | void base64_init_decodestate(base64_decodestate* state_in); 30 | 31 | int base64_decode_value(char value_in); 32 | 33 | int base64_decode_block(const char* code_in, const int length_in, uint8_t *plaintext_out, base64_decodestate* state_in); 34 | 35 | #if defined(__cplusplus) 36 | } 37 | #endif 38 | 39 | #endif /* BASE64_CDECODE_H */ 40 | -------------------------------------------------------------------------------- /deps/pjsip/third_party/zsrtp/zrtp/zrtp/libzrtpcpp/zrtpB64Encode.h: -------------------------------------------------------------------------------- 1 | /* 2 | cencode.h - c header for a base64 encoding algorithm 3 | 4 | This is part of the libb64 project, and has been placed in the public domain. 5 | For details, see http://sourceforge.net/projects/libb64 6 | */ 7 | 8 | #ifndef BASE64_CENCODE_H 9 | #define BASE64_CENCODE_H 10 | 11 | #include 12 | 13 | #if defined(__cplusplus) 14 | extern "C" 15 | { 16 | #endif 17 | 18 | typedef enum 19 | { 20 | step_A, step_B, step_C 21 | } base64_encodestep; 22 | 23 | typedef struct 24 | { 25 | base64_encodestep step; 26 | char result; 27 | int stepcount; 28 | int lineLength; 29 | } base64_encodestate; 30 | 31 | void base64_init_encodestate(base64_encodestate* state_in, int lineLength); 32 | 33 | char base64_encode_value(const int8_t value_in); 34 | 35 | int base64_encode_block(const uint8_t *plaintext_in, int length_in, char* code_out, base64_encodestate* state_in); 36 | 37 | int base64_encode_blockend(char *code_out, base64_encodestate* state_in); 38 | #if defined(__cplusplus) 39 | } 40 | #endif 41 | 42 | #endif /* BASE64_CENCODE_H */ 43 | -------------------------------------------------------------------------------- /deps/pjsip/version.mak: -------------------------------------------------------------------------------- 1 | # Don't change the "export PJ_VERSION_xxx" style, they are parsed by setup.py 2 | export PJ_VERSION_MAJOR := 2 3 | export PJ_VERSION_MINOR := 4 4 | export PJ_VERSION_REV := 5 5 | export PJ_VERSION_SUFFIX := -svn 6 | 7 | export PJ_VERSION := $(PJ_VERSION_MAJOR).$(PJ_VERSION_MINOR) 8 | 9 | ifneq ($(PJ_VERSION_REV),) 10 | export PJ_VERSION := $(PJ_VERSION).$(PJ_VERSION_REV) 11 | endif 12 | 13 | ifneq ($(PJ_VERSION_SUFFIX),) 14 | export PJ_VERSION := $(PJ_VERSION)$(PJ_VERSION_SUFFIX) 15 | endif 16 | 17 | -------------------------------------------------------------------------------- /docs/DeveloperGuide.txt: -------------------------------------------------------------------------------- 1 | 2 | Developer guide 3 | --------------- 4 | 5 | The software allows you to create elegant real-time communications 6 | applications without having to read the +1200 RFC documents behind it. As a 7 | library with a high-level API, the toolkit can be used to add voice, IM and 8 | Presence functionality to any network devices as long as Python/C 9 | environment is supported by such platform. 10 | 11 | The developer guide is available at: 12 | 13 | http://sipsimpleclient.org/projects/sipsimpleclient/wiki/SipMiddlewareApi 14 | 15 | -------------------------------------------------------------------------------- /docs/Install.ubuntu: -------------------------------------------------------------------------------- 1 | 2 | SIP SIMPLE client SDK installation on Ubuntu 3 | -------------------------------------------- 4 | 5 | Home page: http://sipsimpleclient.org 6 | 7 | This document describes the installation procedure on Ubuntu operating 8 | systems from the official public repository maintained by AG Projects. 9 | 10 | 11 | Configure Repository 12 | -------------------- 13 | 14 | Install the AG Projects debian software signing key: 15 | 16 | wget http://download.ag-projects.com/agp-debian-gpg.key 17 | sudo apt-key add agp-debian-gpg.key 18 | 19 | Add the repository to /etc/apt/sources.list (run commands as root): 20 | 21 | echo "deb http://ag-projects.com/ubuntu `lsb_release -c -s` main" >> /etc/apt/sources.list 22 | echo "deb-src http://ag-projects.com/ubuntu `lsb_release -c -s` main" >> /etc/apt/sources.list 23 | 24 | 25 | Update the list of available packages: 26 | 27 | sudo apt-get update 28 | 29 | 30 | Install SIP SIMPLE client SDK: 31 | 32 | sudo apt-get install python-sipsimple 33 | 34 | 35 | Install the Command Line Clients: 36 | 37 | sudo apt-get install sipclients 38 | 39 | -------------------------------------------------------------------------------- /docs/Uninstall.txt: -------------------------------------------------------------------------------- 1 | 2 | http://sipsimpleclient.org/projects/sipsimpleclient/wiki/SipInstallation 3 | 4 | -------------------------------------------------------------------------------- /sipsimple/__info__.py: -------------------------------------------------------------------------------- 1 | 2 | """Package information""" 3 | 4 | __project__ = "python-sipsimple" 5 | __summary__ = "SIP SIMPLE implementation for Python" 6 | __webpage__ = "https://sipsimpleclient.org" 7 | 8 | __version__ = "3.6.0" 9 | 10 | __author__ = "AG Projects" 11 | __email__ = "support@ag-projects.com" 12 | 13 | __license__ = "GPL" 14 | __copyright__ = "Copyright 2008-2021 {}".format(__author__) 15 | -------------------------------------------------------------------------------- /sipsimple/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | from sipsimple.__info__ import __project__, __summary__, __webpage__, __version__, __author__, __email__, __license__, __copyright__ 3 | from sipsimple.logging import log # This will initialize and make our logger available early, before anything else is loaded 4 | -------------------------------------------------------------------------------- /sipsimple/account/xcap/storage/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | """Base definitions for concrete implementations of XCAP storage backends""" 3 | 4 | __all__ = ['IXCAPStorage', 'XCAPStorageError'] 5 | 6 | 7 | from zope.interface import Interface 8 | 9 | 10 | class XCAPStorageError(Exception): 11 | """Base error to be used by backends implementing IXCAPStorage.""" 12 | 13 | 14 | class IXCAPStorage(Interface): 15 | """Interface describing a storage backend for XCAP data.""" 16 | 17 | def load(name): 18 | """ 19 | Load and return the data corresponding to the given name by 20 | using whatever means employed by the backend implementation. 21 | """ 22 | 23 | def save(name, data): 24 | """ 25 | Store the data associated with name by using whatever means 26 | employed by the backend implementation. 27 | """ 28 | 29 | def delete(name): 30 | """Delete the data associated with name.""" 31 | 32 | def purge(): 33 | """Delete all the data stored by the backend.""" 34 | 35 | 36 | -------------------------------------------------------------------------------- /sipsimple/account/xcap/storage/memory.py: -------------------------------------------------------------------------------- 1 | 2 | """XCAP backend for storing data in memory""" 3 | 4 | __all__ = ["MemoryStorage"] 5 | 6 | from zope.interface import implements 7 | from sipsimple.account.xcap.storage import IXCAPStorage, XCAPStorageError 8 | 9 | 10 | class MemoryStorage(object): 11 | """Implementation of an XCAP backend that stores data in memory""" 12 | 13 | implements(IXCAPStorage) 14 | 15 | def __init__(self, account_id): 16 | """Initialize the backend for the specified account ID""" 17 | self.account_id = account_id 18 | self.data = {} 19 | 20 | def load(self, name): 21 | """Return the data given by name""" 22 | try: 23 | return self.data[name] 24 | except KeyError: 25 | raise XCAPStorageError("missing entry: %s/%s" % (self.account_id, name)) 26 | 27 | def save(self, name, data): 28 | """Store the data under a key given by name""" 29 | self.data[name] = data 30 | 31 | def delete(self, name): 32 | """Delete the data identified by name""" 33 | self.data.pop(name, None) 34 | 35 | def purge(self): 36 | """Delete all the data that is stored in the backend""" 37 | self.data.clear() 38 | 39 | 40 | -------------------------------------------------------------------------------- /sipsimple/configuration/backend/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | """Base definitions for concrete implementations of configuration backends""" 3 | 4 | __all__ = ['ConfigurationBackendError', 'IConfigurationBackend'] 5 | 6 | 7 | from zope.interface import Interface 8 | 9 | 10 | class ConfigurationBackendError(Exception): 11 | """Base error for use by backends implementing IConfigurationBackend.""" 12 | 13 | 14 | class IConfigurationBackend(Interface): 15 | """ 16 | Interface describing a backend used for storing and retrieving configuration 17 | data. 18 | 19 | The data kept by the backend is a dictionary whose keys are unicode strings 20 | and values are one of four types: (a) a dictionary conforming to this 21 | definition; (b) a unicode string; (c) a list of unicode strings; (d) the 22 | value None. 23 | """ 24 | def load(): 25 | """ 26 | Load the configuration data using whatever means employed by the backend 27 | implementation and return a dictionary conforming to the definition in 28 | this interface. 29 | """ 30 | 31 | def save(data): 32 | """ 33 | Given a dictionary conforming to the definition in this interface, save 34 | the data using whatever means employed by the backend implementation. 35 | """ 36 | 37 | 38 | -------------------------------------------------------------------------------- /sipsimple/configuration/backend/memory.py: -------------------------------------------------------------------------------- 1 | 2 | """Configuration backend for storing settings in memory""" 3 | 4 | __all__ = ["MemoryBackend"] 5 | 6 | from zope.interface import implements 7 | from sipsimple.configuration.backend import IConfigurationBackend 8 | 9 | 10 | class MemoryBackend(object): 11 | """Implementation of a configuration backend that stores data in memory.""" 12 | 13 | implements(IConfigurationBackend) 14 | 15 | def __init__(self): 16 | self.data = {} 17 | 18 | def load(self): 19 | return self.data 20 | 21 | def save(self, data): 22 | self.data = data 23 | 24 | 25 | -------------------------------------------------------------------------------- /sipsimple/core/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | from sipsimple.core._core import * 3 | from sipsimple.core._engine import * 4 | from sipsimple.core._helpers import * 5 | from sipsimple.core._primitives import * 6 | 7 | required_revision = 181 8 | if CORE_REVISION != required_revision: 9 | raise ImportError("Wrong SIP core revision %d (expected %d)" % (CORE_REVISION, required_revision)) 10 | del required_revision 11 | 12 | 13 | -------------------------------------------------------------------------------- /sipsimple/core/_core.error.pxi: -------------------------------------------------------------------------------- 1 | 2 | 3 | class SIPCoreError(Exception): 4 | pass 5 | 6 | 7 | class PJSIPError(SIPCoreError): 8 | 9 | def __init__(self, message, status): 10 | self.status = status 11 | SIPCoreError.__init__(self, "%s: %s" % (message, _pj_status_to_str(status))) 12 | 13 | @property 14 | def errno(self): 15 | # PJ_STATUS - PJ_ERRNO_START + PJ_ERRNO_SPACE_SIZE*2 16 | return 0 if self.status == 0 else self.status - 120000 17 | 18 | 19 | class PJSIPTLSError(PJSIPError): 20 | pass 21 | 22 | 23 | class SIPCoreInvalidStateError(SIPCoreError): 24 | pass 25 | 26 | -------------------------------------------------------------------------------- /sipsimple/logging.py: -------------------------------------------------------------------------------- 1 | 2 | from __future__ import absolute_import 3 | 4 | from application import log 5 | 6 | # Use a named logger for sipsimple logging 7 | log = log.get_logger('sipsimple') 8 | -------------------------------------------------------------------------------- /sipsimple/payloads/xml-schemas/cipid.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | Describes CIPID tuple extensions for PIDF. 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sipsimple/payloads/xml-schemas/common-schema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | Timestamp type 10 | 11 | 12 | 13 | 14 | 15 | 16 | Device ID, a URN 17 | 18 | 19 | 20 | 21 | 22 | 23 | Note type 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /sipsimple/payloads/xml-schemas/dialog-rules.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sipsimple/payloads/xml-schemas/im-iscomposing.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | --------------------------------------------------------------------------------