HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

436 HP-UX C SIP Stack Programmers Guide
Running the Sample Applications
simpleInfo—extends the simpleSession example and
demonstrates how to send a general request inside a call. In the
example, an INFO request is sent. The source code of the
simpleInfo is in the /usr/examples/sip/simpleInfo directory.
simpleTransfer—demonstrates how to transfer a connected
call using the REFER request, and the Call-leg and Subscription
APIs. The source code of the simpleTransfer is in the /usr/
examples/sip/simpleTransfer directory.
advancedTransfer—a compete example of how to use the
SIP Stack Subscription API in order to achieve unattended
transfer with a Referred-By token. The source code of the
advanced Transfer is in the /usr/examples/sip/
advancedTransfer directory.
simpleSIPT—gives a complete example of how to use the
SIP Stack abilities of SIP-T. The sample includes usage of the
PRACK and INFO methods along with multipart MIME body
usage. The source code of the simpleSIPT is in the /usr/
examples/sip/simpleSIPT directory.
simpleProxy—demonstrates how to use the Transaction API in
order to implement a basic Proxy server. The source code of the
simpleProxy is in the /usr/examples/sip/simpleProxy directory.
simpleServerAuth—a simple console application that
demonstrates how to challenge and authenticate an incoming
INVITE message, using the Transaction layer API functions.
The source code of the simpleSrvAuth is in the /usr/examples/
sip/simpleSrvAuth directory.
simpleSuscription—a basic and fully documented console
application that demonstrates the usage of the Event
Notification (Subscription) API. In the example, a
SUBSCRIBE request is sent to create a subscription. The
subscription is refreshed and then terminated with an un-
SUBSCRIBE request. NOTIFY requests are sent to indicate the
subscription state. The source code of the simpleSubscription is
in the /usr/examples/sip/simpleSubscription directory.
simpleTlsSession—demonstrates how to implement TLS basic
callbacks, initiate TLS engines, and connect a call using TLS
transport. The sample also shows how to use openSSL API
functions to load certificates. The sample uses a truster root CA