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

viii HP-UX C SIP Stack Programmer’s Guide
Register-Client Control 133
Events 134
Register-Client State Machine 135
Basic Register-Client States 136
Advanced Register-Client States 138
Register-Client Refresh Mechanism 140
Register-Client Manager API 140
Registering Application Callbacks 141
Exchanging Handles with the Application 143
Global Call-ID 143
Initiating a Register-Client 143
9 Working with SIP Messages
Introduction 147
Working with Handles 148
Message Manager Object 148
Message Objects 149
Header Objects 150
SIP Stack Message API 151
Working with Headers 151
Working with SIP Messages 153
Reading and Modifying SIP Messages 153
Encoding and Parsing 154
Adding New Headers to a Message 157
Stand-alone Headers 158
Creating a Stand-alone Header 159
Setting a Stand-alone Header in a Message 159
Removing Headers from a Message 160
Creating a New SIP Message 161
Using Compact Form 163
“Set” Compact Form Functionality 163
“Get” Compact Form Functionality 163
Forcing Compact Form on the Entire Message 164
Handling Messages with Syntax Errors 164