RE: [reSIProcate] provideAnswer question
getBodyData() or any of the stream operators should invoke the parser.
Scott
> -----Original Message-----
> From: Glenn MacGregor [mailto:gtm@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Monday, May 08, 2006 2:10 PM
> To: Scott Godin
> Cc: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [reSIProcate] provideAnswer question
>
> Scott,
>
> I think I found a problem, or it may be that I am not accessing this
> member
> correctly. Line 616 of ServerInviteSession.cxx sets
mProposedRemoteSdp,
> but at
> this time it is not yet parsed. So later when I access it using:
>
> const SdpContents &remoteSdp = h->getRemoteSdp();
>
> it is still not parsed. I am not sure if it should be parsed on if I
> should
> access it using another method. The same is true of the localSdp.
>
> What do you think?
>
> Glenn
>
> Quoting Glenn MacGregor <gtm@xxxxxxxxxxxxxxxxxxxxxx>:
>
> > Scott,
> >
> > I got the latest from SVN, remade and I am seeing the same problem.
I
> have
> > run
> > it through the debugger but my version of gdb will not allow me to
print
> > the
> > proposed sdp:
> >
> > (gdb) p sdp.get()->getBodyData()
> > Could not find virtual table pointer for class "resip::SdpContents"
> >
> > The incoming SDP looks good but it is just not getting set correctly
for
> > some
> > reason.
> >
> > I will change the code to print the proposed sdp once it is set.
> >
> > Any other ideas?
> >
> > Thanks again.
> >
> > Glenn
> >
> >
> > Quoting Glenn MacGregor <gtm@xxxxxxxxxxxxxxxxxxxxxx>:
> >
> > > Scott,
> > >
> > > Thanks for the response. I will get the latest from SVN and try
again.
> > Have
> > > run
> > > in gdb and it looks fine to me.
> > >
> > > I will let you know after I get the latest and test.
> > >
> > > Thanks
> > >
> > > Glenn
> > >
> > > Quoting Scott Godin <slgodin@xxxxxxxxxxxx>:
> > >
> > > > Looking at the code in SVN head, I can't explain why you are
seeing
> > this
> > > > behaviour. Are you using the latest code? Try running in the
> debugger
> > > > to see where things are going wrong.
> > > >
> > > > > -----Original Message-----
> > > > > From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
> > > > [mailto:resiprocate-
> > > > > devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Glenn
MacGregor
> > > > > Sent: Monday, May 08, 2006 11:11 AM
> > > > > To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> > > > > Subject: [reSIProcate] provideAnswer question
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I am building a softhpone using resiprocate, I have the code
to
> > handle
> > > > an
> > > > > incoming call.
> > > > >
> > > > > I override the OnOffer to handle the SDP and send the accept.
> > > > >
> > > > > In OnOffer I call the provideAnswer on the incoming session
with
> the
> > > > sdp
> > > > > that is
> > > > > passed into OnOffer.
> > > > >
> > > > > Then I do:
> > > > >
> > > > > const SdpContents &localSdp = h->getLocalSdp();
> > > > > const SdpContents &remoteSdp = h->getRemoteSdp();
> > > > >
> > > > > Looking at the code the provideAnswer that should set the
> > > > mCurrentLocal
> > > > > and
> > > > > Remote SDP correctly, but when I call encodedParsed(cout) on
both
> the
> > > > > Local and
> > > > > Remote SDP I get:
> > > > >
> > > > > v=0
> > > > > o= 0 0 IN IP4 0.0.0.0
> > > > > s=
> > > > > t=0 0
> > > > >
> > > > > Which I know is not correct because I print the incoming SPD
the
> same
> > > > way
> > > > > in
> > > > > OnOffer and it is valid.
> > > > >
> > > > > Please, is there something I am missing in the process to get
this
> > > > > working?
> > > > >
> > > > > Thanks
> > > > >
> > > > > Glenn
> > > > >
> > > > > Glenn MacGregor
> > > > > HighStreet Networks
> > > > >
> > > > > -------------------------------------------------
> > > > > This mail sent through IMP: http://horde.org/imp/
> > > > > _______________________________________________
> > > > > resiprocate-devel mailing list
> > > > > resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> > > > > https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> > > >
> > >
> > >
> > > Glenn MacGregor
> > > HighStreet Networks
> > >
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> > > _______________________________________________
> > > resiprocate-devel mailing list
> > > resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> > > https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> > >
> >
> >
> > Glenn MacGregor
> > HighStreet Networks
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> >
>
>
> Glenn MacGregor
> HighStreet Networks
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/