raphael, vaclav, thanks to vaclav for compiler error fixes. i'm was now able to compile sems master. i then went to test if ipv4 only signaling could handle both ipv4 and ipv6 media.
in sems.conf i have: interfaces=ipv4,ipv6 sip_ip_ipv4=127.0.0.1 sip_port_ipv4=5090 media_ip_ipv4=192.98.102.10 rtp_low_port_ipv4=40000 rtp_high_port_ipv4=49999 media_ip_ipv6=2002:c062:660a::1 rtp_low_port_ipv6=48000 rtp_high_port_ipv6=49999 when sems starts, it reports finding one (ipv4) signaling interface and two (ipv4 and ipv6) media interfaces: Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1106] INFO: Signaling interfaces: Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1114] INFO: #011(0) name='ipv4';LocalIP='127.0.0.1';LocalPort='5090';PublicIP='' Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1117] INFO: Signaling address map: Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1126] INFO: #011127.0.0.1 -> ipv4 Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1130] INFO: Media interfaces: Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1139] INFO: #011(0) name='ipv4';LocalIP='192.98.102.10';Ports=[40000;49999];PublicIP='' Jan 16 09:52:21 sip sems[28914]: [#b743d6d0] [dump_Ifs, AmConfig.cpp:1139] INFO: #011(1) name='ipv6';LocalIP='2002:c062:660a::1';Ports=[48000;49999];PublicIP='' but when i send an invite to sems using ipv4 signaling and ipv6 media, sems reports: Jan 16 10:03:48 sip sems[28916]: [#b57cab70] [sendto, AmRtpPacket.cpp:192] ERROR: while sending RTP packet: Address family not supported by protocol Jan 16 10:03:48 sip sems[28916]: [#b57cab70] [compile_and_send, AmRtpStream.cpp:277] ERROR: while sending RTP packet. invite and sems's 200 ok to it are below. why is sems giving its ipv4 for media in 200 ok instead of its ipv6 address? did i make a mistake in sems.conf? -- juha U 2013/01/16 10:05:47.441440 127.0.0.1:5070 -> 127.0.0.1:5090 INVITE sip:[email protected] SIP/2.0. Record-Route: <sip:127.0.0.1:5070;r2=on;lr>. Record-Route: <sip:[2002:C062:660A:0:0:0:0:1];transport=tcp;r2=on;lr>. Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK9793.d334a3e27ecf70bf9a52204da99db3ab.0;i=4. Via: SIP/2.0/TCP [2002:c062:660a::1]:5050;received=2002:C062:660A:0:0:0:0:1;branch=z9hG4bKa1cddc14d06557ee;rport=59643. Contact: <sip:0x9743480@[2002:c062:660a::1]:5050;alias=[2002:C062:660A:0:0:0:0:1]~59643~2;transport=tcp>. Max-Forwards: 16. To: <sip:[email protected]>. From: "" <sip:[email protected]>;tag=4729678f16af1bb4. Call-ID: 1ce0dac0eab156d8. CSeq: 29244 INVITE. User-Agent: baresip v0.4.3 (i586/linux). Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,SUBSCRIBE,INFO. Content-Type: application/sdp. Content-Length: 527. P-App-Name: announcement. P-App-Param: UserId=jh;Language=en. . v=0. o=- 1867869000 521809367 IN IP6 2002:c062:660a::1. s=-. c=IN IP6 2002:c062:660a::1. t=0 0. a=tool:baresip 0.4.3. m=audio 14432 RTP/AVP 96 97 98 99 100 101 8 0 102. b=AS:125. a=rtpmap:96 SILK/24000. a=rtpmap:97 SILK/16000. a=rtpmap:98 speex/16000. a=fmtp:98 mode="7";vbr=off;cng=on. a=rtpmap:99 SILK/12000. a=rtpmap:100 SILK/8000. a=rtpmap:101 speex/8000. a=fmtp:101 mode="7";vbr=off;cng=on. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:102 telephone-event/8000. a=fmtp:102 0-15. a=sendrecv. a=label:1. a=ptime:20. # U 2013/01/16 10:05:47.459615 127.0.0.1:5090 -> 127.0.0.1:5070 SIP/2.0 200 OK. Record-Route: <sip:127.0.0.1:5070;r2=on;lr>. Record-Route: <sip:[2002:C062:660A:0:0:0:0:1];transport=tcp;r2=on;lr>. Via: SIP/2.0/UDP 127.0.0.1:5070;branch=z9hG4bK9793.d334a3e27ecf70bf9a52204da99db3ab.0;i=4. Via: SIP/2.0/TCP [2002:c062:660a::1]:5050;received=2002:C062:660A:0:0:0:0:1;branch=z9hG4bKa1cddc14d06557ee;rport=59643. To: <sip:[email protected]>;tag=2544A733-50F65F5B0006BE85-B51C4B70. From: "" <sip:[email protected]>;tag=4729678f16af1bb4. Call-ID: 1ce0dac0eab156d8. CSeq: 29244 INVITE. Server: Sip Express Media Server (1.6.0 (x86/linux)). Contact: <sip:127.0.0.1:5090>. Content-Type: application/sdp. Content-Length: 488. . v=0. o=sems 1567039343 692690183 IN IP4 192.98.102.10. s=sems. c=IN IP4 192.98.102.10. t=0 0. m=audio 40004 RTP/AVP 96 97 99 100 98 101 8 0 102. a=rtpmap:96 SILK/24000. a=rtpmap:97 SILK/16000. a=rtpmap:99 SILK/12000. a=rtpmap:100 SILK/8000. a=rtpmap:98 speex/16000. a=fmtp:98 mode="7";vbr=off;cng=on. a=rtpmap:101 speex/8000. a=fmtp:101 mode="7";vbr=off;cng=on. a=rtpmap:8 PCMA/8000. a=rtpmap:0 PCMU/8000. a=rtpmap:102 telephone-event/8000. a=fmtp:102 0-15. a=sendrecv. a=direction:both. _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
