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

Sample Applications 437
Running the Sample Applications
and an issued certificate. The source code of the
simpleTlsSession is in the /usr/examples/sip/simpleTlsSession
directory.
advancedTlsSession—demonstrates how to implement the
more advanced TLS callbacks that are used to override
certificate validation decision and post connection assertion.
The source code of the advancedTlsSession is in the /usr/
examples/sip/advancedTlsSession directory.
advancedDNSSession—demonstrates how to manipulate a
DNS list and how to try to connect a call to another destination
after the first destination has failed. The source code of the
advancedDNSSession is in the /usr/examples/sip/
advancedDNSSession directory.
SimpleUpdate—a fully documented console application that
demonstrates how to send an UPDATE request during call
establishment for updating session parameters (such as the
setting of media streams and their codecs) without impacting on
the dialog state. In the example, both sides (UAC and UAS)
send UPDATE requests while exchanging session initialization
messages. The source code of the simpleUpdate is in the /usr/
examples/sip/simpleUpdate directory.
simpleParserControl—a simple console application that
demonstrates how to control parser functionality. In the
example, an OPTIONS request with a syntax error is injected
into the SIP Stack and is fixed by the application. The source
code of the simpleParserControl is in the /usr/examples/sip/
simpleParserControl directory.
simplePersistentConnection—a simple console application
that demonstrates how use the Persistent Connection feature by
creating one connection to be used by several transactions. The
connection is initiated by the application and the application is
notified of connection states. The source code of the
simplePersistentConnection is in the /usr/examples/sip/
simplePersistentConnection directory.
simpleConnectionReuse—demonstrates how to use the
Connection Reuse feature described in draft-ietf-sip-connect-
reuse. The sample adds the alias parameter to an outgoing
INVITE request, authorizes the incoming TLS server
connection using the Resolver API, and reuses this server