[OpenSER-Devel] SF.net SVN: openser: [3860] trunk

Ovidiu Sas osas at voipembedded.com
Thu Mar 6 17:34:27 CET 2008


Hi Klaus,

see inline.

Regards,
Ovidiu Sas

On Thu, Mar 6, 2008 at 11:17 AM, Klaus Darilion
<klaus.mailinglists at pernau.at> wrote:
> Hi Ovidiu!
>
>  some questions...
>
>  does the parser support multipart mime? or do we need a multipart-mime
>  parser first?
The parser has full support for multipart-mime (tested with sipp only).


>  is it only parsing or is there also support for manipulating the SDP
>  (e.g. changing codec order ...)
At this point in time, there is support for parsing only.  I will
prepare a document with some examples about how to use the parser and
post it on the wiki.
In the mean time, here's the output of a debug probe that will show
you how the parsing is done and what is available:

<SDP>
Content-Type: multipart / mixed;boundary=unique-boundary-1.
Content-Length:  346.

Content-Type: application/SDP.
Content-Disposition: session.
.
v=0.
o=user1 53655765 2353687637 IN IP4 10.11.10.148.
s=-.
c=IN IP4 10.11.10.148.
t=0 0.
m=audio 6002 RTP/AVP 0 1 18.
a=rtpmap:0 PCMU/8000.
a=inactive.
.
--unique-boundary-1.
--unique-boundary-1.
Content-Type: application/text.
.
Hello.
.
--unique-boundary-1--.

</SDP>

<debug_log>
DBG:core:print_sdp_session: ..session[0]:0x8174e50=>(nil) 'session'
(1)=>0x8174e70
DBG:core:print_sdp_session: ....stream[0]:0x8174e70=>(nil) {0x817ce18}
'audio' '6002' 'RTP/AVP' '0 1 18' (3)=>0x817cdd8
DBG:core:print_sdp_session: ......payload[2]:0x817cdd8=>0x8174ef8
p_payload_attr[2]:0x817cdd8 '18' '' '' '' '' ''
DBG:core:print_sdp_session: ......payload[1]:0x8174ef8=>0x8174eb8
p_payload_attr[1]:0x8174ef8 '1' '' '' '' '' ''
DBG:core:print_sdp_session: ......payload[0]:0x8174eb8=>(nil)
p_payload_attr[0]:0x8174eb8 '0' 'PCMU' '8000' '' 'inactive' ''
</debug_log>


and the reply:

<SDP>
Content-Disposition: session;handling=required.
Content-Type: application/sdp.
Content-Length: 228.
.
v=0.
o=CiscoSystemsSIP-GW-UserAgent 7894 2536 IN IP4 10.111.3.241.
s=SIP Call.
c=IN IP4 10.111.3.241.
t=0 0.
m=audio 18206 RTP/AVP 0 100.
c=IN IP4 10.111.3.241.
a=rtpmap:0 PCMU/8000.
a=rtpmap:100 X-NSE/8000.
a=fmtp:100 192-194.

</SDP>

<debug_log>
DBG:core:print_sdp_session: ..session[0]:0x817ce30=>(nil) '' (1)=>0x8174e70
DBG:core:print_sdp_session: ....stream[0]:0x8174e70=>(nil) {0x817aef8}
'audio' '18206' 'RTP/AVP' '0 100' (2)=>0x8174cb0
DBG:core:print_sdp_session: ......payload[1]:0x8174cb0=>0x817cdd8
p_payload_attr[1]:0x8174cb0 '100' 'X-NSE' '8000' '' '' ''
DBG:core:print_sdp_session: ......payload[0]:0x817cdd8=>(nil)
p_payload_attr[0]:0x817cdd8 '0' 'PCMU' '8000' '' '' ''
</debug_log>



More information about the Devel mailing list