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

[reSIProcate-users] How to got multiple connections ip from SDP ?


Hi all, in the statck/test/testsdp.cxx, there has :

      Data txt("v=0\r\n"
               "o=CiscoSystemsSIP-GW-UserAgent 4316 2064 IN IP4 65.39.205.114\r\n"
               "s=SIP Call\r\n"
               "c=IN IP4 65.39.205.114\r\n"
               "t=0 0\r\n"
               "m=audio 36928 RTP/AVP 0\r\n"
               "c=IN IP4 65.39.205.114\r\n"
               "a=rtpmap:0 PCMU/8000\r\n"
               "m=video 36924 RTP/AVP\r\n"
               "c=IN IP4 65.39.205.114\r\n");


This SDP has two c= lines, how to parse it to got these two c= line IP ?

I just saw sdpContent->session().connection().getAddress();

Thanks