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

[reSIProcate] Fwd: Answering an incoming call


Hi All,

I am writing an application which will be a softphone using resiprocate and
ccRTP. I am answering the incoming call now, I am now looking to create the RTP
session.

Answering:

void
SipManager::onOffer(InviteSessionHandle h, const SipMessage &msg,
                                                const SdpContents &sdp)
{
//  cout << "Offer " << msg.brief() << " Session: " << &h << endl;
    h->provideAnswer(sdp);
    mServerSession->accept();

    const SdpContents &localSdp = h->getLocalSdp();
    const SdpContents &remoteSdp = h->getRemoteSdp();

    Data d = sdp.getBodyData();
    cout << d << endl;


When I print out the local and remote SDP I get:

Local SDP:
v=0
o= 0 0 IN IP4 0.0.0.0
s=
t=0 0


Remote SDP:
v=0
o= 0 0 IN IP4 0.0.0.0
s=
t=0 0


Which I don't think is correct. I am looking to get the correct port to tell rtp
to open. Is there another way to get this information?

I have also been looking for an example of getting the SDP but have failed to
find one.

 Thanks

   Glenn


Glenn MacGregor
HighStreet Networks

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/