Changes between Version 2 and Version 3 of PJSIP_Tutorial
- Timestamp:
- Jan 17, 2008 6:21:04 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PJSIP_Tutorial
v2 v3 1 1 = PJSIP Tutorial (Using PJSUA-API) = 2 2 3 As you can see from the diagram in [ /docs.htm PJSIP Documentation] page, PJSIP software consists of multiple API abstractions. This tutorial uses [/pjsip/docs/html/group__PJSUA__LIB.htm PJSUA-API], the highest layer of abstraction of all, which combines PJSIP (the SIP stack library) and PJMEDIA (the media stack library).3 As you can see from the diagram in [http://www.pjsip.org/docs.htm PJSIP Documentation] page, PJSIP software consists of multiple API abstractions. This tutorial uses [http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB.htm PJSUA-API], the highest layer of abstraction of all, which combines PJSIP (the SIP stack library) and PJMEDIA (the media stack library). 4 4 5 5 … … 11 11 12 12 === Source Code === 13 Have a look at the '''[ /pjsip/docs/html/page_pjsip_sample_simple_pjsuaua_c.htm simple_pjsua.c]''' for complete source code.13 Have a look at the '''[http://www.pjsip.org/pjsip/docs/html/page_pjsip_sample_simple_pjsuaua_c.htm simple_pjsua.c]''' for complete source code. 14 14 15 15 16 16 == Extending the Example == 17 17 18 The best source information on using the API is of course [ /pjsip/docs/html/group__PJSUA__LIB.htm PJSUA-API Reference Manual]. But here are some information about configuring some features.18 The best source information on using the API is of course [http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB.htm PJSUA-API Reference Manual]. But here are some information about configuring some features. 19 19 20 20 21 21 === Supporting STUN === 22 22 23 Just configure {{{stun_config}}} member of [ /pjsip/docs/html/structpjsua__transport__config.htm pjsua_transport_config] when creating the UDP transport.23 Just configure {{{stun_config}}} member of [http://www.pjsip.org/pjsip/docs/html/structpjsua__transport__config.htm pjsua_transport_config] when creating the UDP transport. 24 24 25 25 === TCP and TLS Transports === 26 26 27 Just call [ /pjsip/docs/html/group__PJSUA__LIB__TRANSPORT.htm#g1c077d205f7df9fae39a179b2fe47533 pjsua_transport_create()] with {{{PJSIP_TRANSPORT_UDP}}} or {{{PJSIP_TRANSPORT_TLS}}} as the transport type. In addition, optional TLS settings can be configured in {{{tls_setting}}} member of [/pjsip/docs/html/structpjsua__transport__config.htm pjsua_transport_config].27 Just call [http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__TRANSPORT.htm#g1c077d205f7df9fae39a179b2fe47533 pjsua_transport_create()] with {{{PJSIP_TRANSPORT_UDP}}} or {{{PJSIP_TRANSPORT_TLS}}} as the transport type. In addition, optional TLS settings can be configured in {{{tls_setting}}} member of [http://www.pjsip.org/pjsip/docs/html/structpjsua__transport__config.htm pjsua_transport_config]. 28 28 29 29