diff options
author | defanor <defanor@uberspace.net> | 2021-10-13 22:03:49 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-10-13 22:52:44 +0300 |
commit | 2e667698024e85fe1a9ae44181af9e38141176eb (patch) | |
tree | 0ed19b48b792fdf7f5ac14d569e5f7cd978adbd6 /examples/basic.c | |
parent | f2ef0cf34d32e26c45004a5f2bd57380c15c720d (diff) |
Implement Jingle RTP sessions with ICE-UDP and DTLS-SRTP
Works with Dino and Conversations, but currently relying on external
players and streamers for actual audio playback and capture.
For now requiring GnuTLS and libnice for calls; OpenSSL should be
supported as an alternative to the former, and the latter should be
made optional, maybe with libjuice as an alternative.
Diffstat (limited to 'examples/basic.c')
-rw-r--r-- | examples/basic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/basic.c b/examples/basic.c index 3406044..6e195bd 100644 --- a/examples/basic.c +++ b/examples/basic.c @@ -136,13 +136,14 @@ int main (int argc, char **argv) { } /* Could set a client certificate for SASL EXTERNAL authentication - here. */ - /* rexmpp_tls_set_x509_key_file(&s, "client.crt", "client.key"); */ + and Jingle's DTLS here. */ + rexmpp_tls_set_x509_key_file(&s, "client.crt", "client.key"); /* Could also set various other things manually. */ /* s.socks_host = "127.0.0.1"; */ /* s.socks_port = 4321; */ /* s.manual_host = "localhost"; */ + s.local_address = "192.168.1.8"; /* rexmpp_tls_set_x509_trust_file(&s, "localhost.crt"); */ /* rexmpp_openpgp_set_home_dir(&s, "pgp"); */ s.roster_cache_file = "roster.xml"; |