Dialogic Dialogic Global Call IP IP Phone User Manual


 
IPPARM_MIME_BODY_HEADER [optional parameter]
Content-User: Dialogic ;type=demo1
[data from MIME part header in received MIME message]
The buffer at the address given in the value of IPPARM_MIME_PART_BODY (0x329823e8 in this
example) contains the data that was received in the MIME part body:
01 00 49 00 00 03 02 00 07 04 10 00 33 63 21
43 00 00 03 06 0d 03 80 90 a2 07 03 10 03 63
53 00 10 0a 07 03 10 27 80 88 03 00 00 89 8b
0e 95 1e 1e 1e 06 26 05 0d f5 01 06 10 04 00
The second, second-level GC_PARM_BLK (B2), at address 0x78356144 in this example, contains
the following parameters and values, which represent the information for the second non-SDP
MIME part in the example shown above:
IPPARM_MIME_PART_TYPE
Content-Type: image/jpeg
[data from MIME part header in received MIME message]
IPPARM_MIME_PART_BODY_SIZE
208
[size of received data in buffer]
IPPARM_MIME_PART_BODY
0x3298a224
[address of buffer]
IPPARM_MIME_BODY_HEADER [optional parameter]
Content-Transfer-Encoding: base64
[data from MIME part header in received MIME message]
The buffer at the address given in the value of IPPARM_MIME_PART_BODY (0x3298a224 in this
example) contains the data that was received in the MIME part body:
iQCVAwUBMJrRF2N9oWBghPDJAQE9UQQAtl7LuRVndBjrk4EqYBIb3h5QXIX/LC//
jJV5bNvkZIGPIcEmI5iFd9boEgvpirHtIREEqLQRkYNoBActFBZmh9GC3C041WGq
uMbrbxc+nIs1TIKlA08rVi9ig/2Yh7LFrK5Ein57U/W72vgSxLhe/zhdfolT9Brn
HOxEa44b+EI=
Note that the data that is retrieved from each MIME part body is copied into the buffer as a
continuous block of binary data whose length (in bytes) is indicated in
IPPARM_MIME_PART_BODY_SIZE. No type checking or data formatting is performed by the
Dialogic
®
Global Call API library. Note that a MIME part body does not necessarily end with ‘\0’,
and that a MIME body might contain ‘\0’ as part of the body itself.
All GC_PARM_BLK structures (on both levels) and MIME part body buffers will be freed when
the next Global Call event is accessed. The application must therefore copy the necessary
parameters and the data buffers before processing the next Global Call event. When copying a
complete GC_PARM_BLK structure, the application should use the
function rather than or some similar function because the parameters for MIME part
headers are among the Global Call parameters that support data length greater than 255 bytes.