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

Re: [reSIProcate-users] Modify the port in SDP


You are using a const_iterator.

Scott

On Fri, May 3, 2013 at 11:19 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
Hi all, I want to modify(set) the rtp port in the SDP:

 list<SdpContents::Session::Medium>::const_iterator mediaiter = sdp->session().media().begin();

for (; mediaiter!=sdp->session().media().end(); ++mediaiter)
{
     if (mediaiter->name() == "audio")
     {
         mediaiter->port() = localAudioPort;
     }
}

The error is:  error C2106: '=' : left operand must be l-value


I have read the testSdp.cxx file, found below code:

assert(sdp.session().media().front().port() == 12000);

It seems same to my code, why my code got the error ?

Thanks

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/