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

[reSIProcate] how to hold a call


why my code seems invalid, from ethereal I cannot find re-invite message sent.

        SipMessage& im = call->mDum.makeInviteSession( 
call->is->peerAddr(),&call->is->getLocalSdp(), NULL );
        im = call->inviteMsg;
        SdpContents *sdp = (SdpContents*)im.getContents();
        sdp->session().clearAttribute( Data( "a=sendrecv" ) );
        sdp->session().addAttribute( Data("a=sendonly") );
        call->mDum.send( im );
                                

        maodonghu
        hhmmdd@xxxxxxx
          2005-11-11