Dialogic Dialogic Global Call IP IP Phone User Manual


 
346 Dialogic
®
Global Call IP Technology Guide — November 2007
Dialogic Corporation
Third Party Call Control (3PCC) Operations and Multimedia Support
char sdpMsgFormat[] =
"v=0\r\n"
"o=Dialogic_IPCCLib %d %d IN IP4 %s\r\n"
"s=Dialogic_SIP_CCLIB\r\n"
"i=session information\r\n"
"c=IN IP4 %s\r\n"
"t=0 0\r\n"
"m=audio %d 2000 RTP/AVP %d\r\n";
Note: The SDP outbound content is generated by the application. The Dialogic
®
HMP Software includes
an example SDP generator/parser. The example code is described in Section 5.3, “Session
Description Protocol Parser/Generator Example”, on page 353.
Table 21 shows the Dialogic
®
Global Call API functions that can be used to add SDP content to
SIP outbound messages:
Table 20. IPSET_SDP Parameter Set
Parameter ID Data Type and Size Description
IPPARM_SDP_ANSWER Type: string
Size: GC_PARM_DATA_EXTP
Indicates the parameter value is an
SDP answer.
IPPARM_SDP_OFFER Type: string
Size: GC_PARM_DATA_EXTP
Indicates the parameter value is an
SDP offer.
IPPARM_SDP_OPTION_ANSWER Type: string
Size: GC_PARM_DATA_EXTP
Indicates the parameter data is
associated with SIP OPTIONS
response.
IPPARM_SDP_OPTION_OFFER Type: string
Size: GC_PARM_DATA_EXTP
Indicates the parameter data is
associated with SIP OPTIONS
request.
For Global Call parameters of type string, the data size is the length of the string plus 1 (for the null termination).
Table 21. Summary of IPSET_SDP Parameters and Outbound SIP Messages
Parameter ID Set Send
Device
Type
Outbound SIP Messages Containing
SDP
IPPARM_SDP_
ANSWER
gc_SetUserInfo( ) gc_AcceptCall( ) CRN 180 Ringing or 1xx progress code
--- gc_AcceptModifyCall( ) CRN 200 OK to re-INVITE
gc_SetUserInfo( ) gc_AnswerCall( ) CRN 200 OK to INVITE
gc_SetUserInfo( ) gc_CallAck( ) CRN 100 Trying
gc_SetUserInfo( ) gc_RejectModifyCall( ) CRN 4xx - 6xx response to re-INVITE
--- gc_SipAck( ) CRN ACK to 200 OK
† The duration parameter must be set to GC_NEXT_OUTBOUND_MSG (to apply on next outbound message).