[Serdev] Posibles changes in nathelper to handle video
Rodrigo Frez
rfrez at vtr.net
Thu Jan 15 17:41:43 UTC 2004
Correct me if im wrong : the only difference between a sip body of audio
an one of video is that the ?m=audio port? line, is in fact ?m=video port?,
so, Should be enough this change on ?extract_mediaport? function?????::
#######################
if (mediaport->len < 7 || (memcmp(mediaport->s, "audio", 5) != 0 && memcmp(mediaport->s,
"video", 5) != 0) || !isspace((int)mediaport->s[5])) {
LOG(L_ERR, "ERROR: extract_mediaport: can't parse `m=' in SDP\n");
return -1;
}
#######################
instead of:
#######################
if (mediaport->len < 7 || memcmp(mediaport->s, "audio", 5) != 0 ||
!isspace((int)mediaport->s[5])) {
LOG(L_ERR, "ERROR: extract_mediaport: can't parse `m=' in SDP\n");
return -1;
}
#######################
For me it doesnt work... so in what other place the moduke is dependant
of audio like messages...
More information about the Serdev
mailing list