summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjlib/include/pj/config_site_sample.h1
-rw-r--r--pjsip-apps/build/get-footprint.py2
-rw-r--r--pjsip-apps/src/samples/footprint.c20
3 files changed, 23 insertions, 0 deletions
diff --git a/pjlib/include/pj/config_site_sample.h b/pjlib/include/pj/config_site_sample.h
index 63d34c9e..efa7638e 100644
--- a/pjlib/include/pj/config_site_sample.h
+++ b/pjlib/include/pj/config_site_sample.h
@@ -40,6 +40,7 @@
# define PJ_HAS_ERROR_STRING 0
# undef PJ_IOQUEUE_MAX_HANDLES
# define PJ_IOQUEUE_MAX_HANDLES 16
+# define PJ_IOQUEUE_HAS_SAFE_UNREG 0
# define PJSIP_MAX_TSX_COUNT 15
# define PJSIP_MAX_DIALOG_COUNT 15
# define PJSIP_UDP_SO_SNDBUF_SIZE 4000
diff --git a/pjsip-apps/build/get-footprint.py b/pjsip-apps/build/get-footprint.py
index de25662e..c20c8978 100644
--- a/pjsip-apps/build/get-footprint.py
+++ b/pjsip-apps/build/get-footprint.py
@@ -76,6 +76,7 @@ compile_flags = [
['', 'Subtotal: Complete PJSIP package (call, registration, presence, IM) +STUN +GETOPT (+PJLIB), no media'],
# PJMEDIA
+ ['HAS_PJMEDIA_EC', 'PJMEDIA accoustic echo cancellation'],
['HAS_PJMEDIA_SND_DEV', 'PJMEDIA sound device backend (platform specific)'],
['HAS_PJMEDIA_SILENCE_DET', 'PJMEDIA Adaptive silence detector'],
['HAS_PJMEDIA', 'PJMEDIA endpoint'],
@@ -89,6 +90,7 @@ compile_flags = [
['HAS_PJMEDIA_RTCP', 'PJMEDIA stand-alone RTCP and media quality calculation'],
['HAS_PJMEDIA_JBUF', 'PJMEDIA stand-alone adaptive jitter buffer'],
['HAS_PJMEDIA_STREAM', 'PJMEDIA stream for remote media communication (needs RTP, RTCP, and jitter buffer)'],
+ ['HAS_PJMEDIA_TONEGEN', 'PJMEDIA tone generator'],
['HAS_PJMEDIA_UDP_TRANSPORT','PJMEDIA UDP media transport'],
['HAS_PJMEDIA_FILE_PLAYER', 'PJMEDIA WAV file player'],
['HAS_PJMEDIA_FILE_CAPTURE', 'PJMEDIA WAV file writer'],
diff --git a/pjsip-apps/src/samples/footprint.c b/pjsip-apps/src/samples/footprint.c
index b04f2bb5..f3d4759b 100644
--- a/pjsip-apps/src/samples/footprint.c
+++ b/pjsip-apps/src/samples/footprint.c
@@ -65,6 +65,7 @@
#define HAS_PJMEDIA
#define HAS_PJMEDIA_SND_DEV
+#define HAS_PJMEDIA_EC
#define HAS_PJMEDIA_SND_PORT
#define HAS_PJMEDIA_RESAMPLE
#define HAS_PJMEDIA_SILENCE_DET
@@ -75,6 +76,7 @@
#define HAS_PJMEDIA_RTCP
#define HAS_PJMEDIA_JBUF
#define HAS_PJMEDIA_STREAM
+#define HAS_PJMEDIA_TONEGEN
#define HAS_PJMEDIA_UDP_TRANSPORT
#define HAS_PJMEDIA_FILE_PLAYER
#define HAS_PJMEDIA_FILE_CAPTURE
@@ -394,6 +396,14 @@ int dummy_function()
pjmedia_endpt_create_sdp(NULL, NULL, 1, NULL, NULL);
#endif
+#ifdef HAS_PJMEDIA_EC
+ pjmedia_echo_create(NULL, 0, 0, 0, 0, 0, NULL);
+ pjmedia_echo_destroy(NULL);
+ pjmedia_echo_playback(NULL, NULL);
+ pjmedia_echo_capture(NULL, NULL, 0);
+ pjmedia_echo_cancel(NULL, NULL, NULL, 0, NULL);
+#endif
+
#ifdef HAS_PJMEDIA_SND_DEV
pjmedia_snd_init(NULL);
pjmedia_snd_get_dev_count();
@@ -503,6 +513,16 @@ int dummy_function()
pjmedia_stream_get_dtmf(NULL, NULL, NULL);
#endif
+#ifdef HAS_PJMEDIA_TONEGEN
+ pjmedia_tonegen_create(NULL, 0, 0, 0, 0, 0, NULL);
+ pjmedia_tonegen_is_busy(NULL);
+ pjmedia_tonegen_stop(NULL);
+ pjmedia_tonegen_play(NULL, 0, NULL, 0);
+ pjmedia_tonegen_play_digits(NULL, 0, NULL, 0);
+ pjmedia_tonegen_get_digit_map(NULL, NULL);
+ pjmedia_tonegen_set_digit_map(NULL, NULL);
+#endif
+
#ifdef HAS_PJMEDIA_UDP_TRANSPORT
pjmedia_transport_udp_create(NULL, NULL, 0, 0, NULL);
pjmedia_transport_udp_close(NULL);