<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style> Hi All,<div> I am trying to write a sip application for audio/video call using codec PCMU and H.263.I negotiate the SDP parameter with kapanga(sip softphone) and then call the Live555 API for sending the H.263 video.But somehow on receiving the H.263 video stream, Kapnga shows "Bad marker" and "header damaged" on reception of H263 packet.</div><div> I negotiate with kapanga using "h263-1998" and payload type 105 .</div><div>Following is my code snippet for starting the video call:</div><div>(this is almost same what has been given in live555's test program)</div><div><br></div><div><div>int PlayVideo(char *ipAddr,int videoRtpPort,int videoRtcpPort) </div><div>{</div><div> // Begin by setting up our usage environment:</div><div> TaskScheduler* scheduler = BasicTaskScheduler::createNew();</div><div> env = BasicUsageEnvironment::createNew(*scheduler);</div><div><br></div><div> // Create 'groupsocks' for RTP and RTCP:</div><div> char const* destinationAddressStr</div><div>#ifdef USE_SSM</div><div> //= "10.0.8.32";</div><div> =ipAddr;</div><div>#else</div><div> = "239.255.42.42";</div><div> // Note: This is a multicast address. If you wish to stream using</div><div> // unicast instead, then replace this string with the unicast address</div><div> // of the (single) destination. (You may also need to make a similar</div><div> // change to the receiver program.)</div><div>#endif</div><div> const unsigned short rtpPortNum =videoRtpPort; // 8888;</div><div> const unsigned short rtcpPortNum = videoRtcpPort;</div><div> const unsigned char ttl = 255; // low, in case routers don't admin scope</div><div><br></div><div> struct in_addr destinationAddress;</div><div> destinationAddress.s_addr = our_inet_addr(destinationAddressStr);</div><div> const Port rtpPort(rtpPortNum);</div><div> const Port rtcpPort(rtcpPortNum);</div><div><br></div><div> Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);</div><div> Groupsock rtcpGroupsock(*env, destinationAddress, rtcpPort, ttl);</div><div>#ifdef USE_SSM</div><div> rtpGroupsock.multicastSendOnly();</div><div> rtcpGroupsock.multicastSendOnly();</div><div>#endif</div><div><br></div><div> // Create a 'MPEG Video RTP' sink from the RTP 'groupsock':</div><div> //videoSink = MPEG1or2VideoRTPSink::createNew(*env, &rtpGroupsock);</div><div> videoSink =H263plusVideoRTPSink::createNew(*env, &rtpGroupsock,105);</div><div><br></div><div> // Create (and start) a 'RTCP instance' for this RTP sink:</div><div> const unsigned estimatedSessionBandwidth = 500; // in kbps; for RTCP b/w share</div><div> const unsigned maxCNAMElen = 100;</div><div> unsigned char CNAME[maxCNAMElen+1];</div><div> gethostname((char*)CNAME, maxCNAMElen);</div><div> CNAME[maxCNAMElen] = '\0'; // just in case</div><div>#ifdef IMPLEMENT_RTSP_SERVER</div><div> RTCPInstance* rtcp =</div><div>#endif</div><div><br></div><div>RTCPInstance::createNew(*env, &rtcpGroupsock,</div><div> estimatedSessionBandwidth, CNAME,</div><div> videoSink, NULL /* we're a server */, isSSM);</div><div> // Note: This starts RTCP running automatically</div><div><br></div><div>#ifdef IMPLEMENT_RTSP_SERVER</div><div> RTSPServer* rtspServer = RTSPServer::createNew(*env);</div><div> // Note that this (attempts to) start a server on the default RTSP server</div><div> // port: 554. To use a different port number, add it as an extra</div><div> // (optional) parameter to the "RTSPServer::createNew()" call above.</div><div> if (rtspServer == NULL) {</div><div> *env << "Failed to create RTSP server: " << env->getResultMsg() << "\n";</div><div> exit(1);</div><div> }</div><div> ServerMediaSession* sms</div><div> = ServerMediaSession::createNew(*env, "testStream", inputFileName,</div><div> "Session streamed by \"testMPEG1or2VideoStreamer\"",</div><div> isSSM);</div><div> sms->addSubsession(PassiveServerMediaSubsession::createNew(*videoSink, rtcp));</div><div> rtspServer->addServerMediaSession(sms);</div><div><br></div><div> char* url = rtspServer->rtspURL(sms);</div><div> *env << "Play this stream using the URL \"" << url << "\"\n";</div><div> delete[] url;</div><div>#endif</div><div><br></div><div> // Finally, start the streaming:</div><div> *env << "Beginning streaming...\n";</div><div> play();</div><div><br></div><div> env->taskScheduler().doEventLoop(); // does not return</div><div><br></div><div> return 0; // only to prevent compiler warning</div><div>}</div></div><div><br></div><div>I am also attaching the media file which I am using for streaming.</div><div>Can anyone please help me for pointing out the issue ?</div><div><br></div><div>Best Regards,</div><div>Parveen Jain</div><div><br></div>                                            <br><hr>Build a bright career through MSN Education <a href="http://education.in.msn.com/">Sign up now.</a>                                            <br /><hr />Manage your finance and manage money through MSN Money Special <a href='http://news.in.msn.com/moneyspecial/' target='_new'>Drag n' drop</a></body>
</html>