< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] how can i get the sdp's fmtp value???


hi all
 
i want to get the sdp's fmtp value,but i can't get it. Could someont help me?
 
 
 
below is my code:
 
 
    for (std::list<resip::SdpContents::Session::Medium>::const_iterator i = sdp->session().media().begin(); i != sdp->session().media().end(); i++)
 {
        if(i->exists("fmtp"))//here always return false;
       {
               ......
       }
       else
       {
             
       }
 }
 
 
below is sdp:
 
 
v=0
o=- 1 2 IN IP4 192.168.9.217
s=CounterPath eyeBeam 1.5
c=IN IP4 192.168.9.217
t=0 0
m=audio 42712 RTP/AVP 107 100 106 6 0 105 8 18 3 5 101
a=rtpmap:107 BV32/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:6 DVI4/16000
a=rtpmap:0 PCMU/8000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:3 GSM/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=alt:1 1 : yVY3/eX+ QiP4T0UJ 192.168.9.217 42712
a=x-rtp-session-id:01B83D9870DD4ACCB6446985F2247690
a=sendrecv
m=video 29918 RTP/AVP 125 126 115 34
a=rtpmap:125 H264/90000
a=fmtp:125 profile-level-id=42e00a; packetization-mode=1; max-br=196; max-mbps=11880
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42e015; packetization-mode=1; max-br=196; max-mbps=11880
a=rtpmap:115 H263-1998/90000
a=fmtp:115 QCIF=1 I=1 J=1 K=1 MaxBR=1960
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1 MaxBR=1960
a=alt:1 1 : g7S99Vtf Eg+H5jKt 192.168.9.217 29918
a=x-rtp-session-id:083F0D437A6C4CBDA9ADBC893B834F6C
a=sendrecv
 
 
 
BTW:i can get the connection,port,etc....,just can't the fmtp value.
THX a lot!!!
 

god.nirvana
2007-10-04