hello,
I have installed sofsip_cli-0-12 and sofia_sip-1.12.1 on my linux System.
I'm looking at implementing setting the IP TOS for SIP messages and RTP packets.
1) for sip transfer i set the socket option in tport_udp_init_primary() so
#if HAVE_IP_RECVERR
if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) {
int const one = 1;
if (setsockopt(s, SOL_IP, IP_RECVERR, &one, sizeof(one)) < 0) {
if (ai->ai_family == AF_INET)
SU_DEBUG_3(("setsockopt(IPVRECVERR): %s\n", su_strerror(su_errno())));
}
if(setsockopt(s,SOL_IP,IP_TOS,(char*)&ipTos2,sizeof(ipTos2)) < 0){
fprintf(stderr, "setsockopt error IP_TOS :%s\n",
su_strerror(su_errno()));
}
events |= SU_WAIT_ERR;
}
2)for Rtp transfer, i dont have found wo sent the RTP-Packet.
./sofiasip sip:[EMAIL PROTECTED] --media-impl=gstreamer
.
.
.
.
.
i sip:[EMAIL PROTECTED]
The Media port in SDP(invite) is 16384
l_sdp
v=0
o=- 337979164353731645 2945412118993712508 IN IP4 149.15.16.17
s=-
c=IN IP4 179.15.16.17
t=0 0
m=audio 16384 RTP/AVP 0
a=rtpmap:0 PCMU/8000
SDP receve
r_sdp is
v=0
o=root 2663 2663 IN IP4 149.15.19.19
s=session
c=IN IP4 149.15.19.19
t=0 0
m=audio 17990 RTP/AVP 3 0 8
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -
but in Wireshark i see
>Internet Protocol, Src: 139.6.19.139 (149.15.19.17), Dst:
149.15.19.19 (139.6.16.109)
>User Datagram Protocol, Src Port: 34286 (34286), Dst Port: 10944
(17990)
>Real-Time Transport Protocol
can me explaine someone please as rtp packete transported.
thanks.
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel