@@ -693,6 +693,192 @@ sub stun_succ {
693693a=maxptime:30
694694SDP
695695
696+
697+ new_call;
698+
699+ offer('rtpmap default mismatched G.729 annexb', { }, <<SDP);
700+ v=0
701+ o=- 13111259 1 IN IP4 1.2.3.4
702+ s=-
703+ c=IN IP4 1.2.3.4
704+ t=0 0
705+ m=audio 23874 RTP/AVP 9 8 0 18 100
706+ a=rtpmap:100 telephone-event/8000
707+ a=ptime:20
708+ ----------------------------
709+ v=0
710+ o=- 13111259 1 IN IP4 1.2.3.4
711+ s=-
712+ t=0 0
713+ m=audio PORT RTP/AVP 9 8 0 18 100
714+ c=IN IP4 203.0.113.1
715+ a=rtpmap:9 G722/8000
716+ a=rtpmap:8 PCMA/8000
717+ a=rtpmap:0 PCMU/8000
718+ a=rtpmap:18 G729/8000
719+ a=rtpmap:100 telephone-event/8000
720+ a=sendrecv
721+ a=rtcp:PORT
722+ a=ptime:20
723+ SDP
724+
725+ answer('rtpmap default mismatched G.729 annexb', { }, <<SDP);
726+ v=0
727+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
728+ s=SIP call
729+ c=IN IP4 5.6.7.7
730+ t=0 0
731+ m=audio 49696 RTP/AVP 8 0 18 100
732+ a=rtpmap:8 PCMA/8000
733+ a=rtpmap:0 PCMU/8000
734+ a=rtpmap:18 G729a/8000
735+ a=rtpmap:100 telephone-event/8000
736+ a=fmtp:100 0-11
737+ a=ptime:20
738+ a=maxptime:30
739+ a=sendrecv
740+ ----------------------------
741+ v=0
742+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
743+ s=SIP call
744+ t=0 0
745+ m=audio PORT RTP/AVP 8 0 18 100
746+ c=IN IP4 203.0.113.1
747+ a=rtpmap:8 PCMA/8000
748+ a=rtpmap:0 PCMU/8000
749+ a=rtpmap:18 G729a/8000
750+ a=rtpmap:100 telephone-event/8000
751+ a=fmtp:100 0-11
752+ a=sendrecv
753+ a=rtcp:PORT
754+ a=ptime:20
755+ a=maxptime:30
756+ SDP
757+
758+ new_call;
759+
760+ offer('rtpmap mismatched G.729 annexb', { }, <<SDP);
761+ v=0
762+ o=- 13111259 1 IN IP4 1.2.3.4
763+ s=-
764+ c=IN IP4 1.2.3.4
765+ t=0 0
766+ m=audio 23874 RTP/AVP 9 8 0 18 100
767+ a=rtpmap:100 telephone-event/8000
768+ a=ptime:20
769+ ----------------------------
770+ v=0
771+ o=- 13111259 1 IN IP4 1.2.3.4
772+ s=-
773+ t=0 0
774+ m=audio PORT RTP/AVP 9 8 0 18 100
775+ c=IN IP4 203.0.113.1
776+ a=rtpmap:9 G722/8000
777+ a=rtpmap:8 PCMA/8000
778+ a=rtpmap:0 PCMU/8000
779+ a=rtpmap:18 G729/8000
780+ a=rtpmap:100 telephone-event/8000
781+ a=sendrecv
782+ a=rtcp:PORT
783+ a=ptime:20
784+ SDP
785+
786+ answer('rtpmap mismatched G.729 annexb', { }, <<SDP);
787+ v=0
788+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
789+ s=SIP call
790+ c=IN IP4 5.6.7.7
791+ t=0 0
792+ m=audio 49696 RTP/AVP 8 0 18 100
793+ a=rtpmap:8 PCMA/8000
794+ a=rtpmap:0 PCMU/8000
795+ a=rtpmap:18 G729a/8000
796+ a=fmtp:18 annexb=no
797+ a=rtpmap:100 telephone-event/8000
798+ a=fmtp:100 0-11
799+ a=ptime:20
800+ a=maxptime:30
801+ a=sendrecv
802+ ----------------------------
803+ v=0
804+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
805+ s=SIP call
806+ t=0 0
807+ m=audio PORT RTP/AVP 8 0 18 100
808+ c=IN IP4 203.0.113.1
809+ a=rtpmap:8 PCMA/8000
810+ a=rtpmap:0 PCMU/8000
811+ a=rtpmap:18 G729a/8000
812+ a=fmtp:18 annexb=no
813+ a=rtpmap:100 telephone-event/8000
814+ a=fmtp:100 0-11
815+ a=sendrecv
816+ a=rtcp:PORT
817+ a=ptime:20
818+ a=maxptime:30
819+ SDP
820+
821+ new_call;
822+
823+ offer('actually rtpmap mismatched G.729 annexb', { }, <<SDP);
824+ v=0
825+ o=- 13111259 1 IN IP4 1.2.3.4
826+ s=-
827+ c=IN IP4 1.2.3.4
828+ t=0 0
829+ m=audio 23874 RTP/AVP 9 8 0 18 100
830+ a=rtpmap:100 telephone-event/8000
831+ a=ptime:20
832+ ----------------------------
833+ v=0
834+ o=- 13111259 1 IN IP4 1.2.3.4
835+ s=-
836+ t=0 0
837+ m=audio PORT RTP/AVP 9 8 0 18 100
838+ c=IN IP4 203.0.113.1
839+ a=rtpmap:9 G722/8000
840+ a=rtpmap:8 PCMA/8000
841+ a=rtpmap:0 PCMU/8000
842+ a=rtpmap:18 G729/8000
843+ a=rtpmap:100 telephone-event/8000
844+ a=sendrecv
845+ a=rtcp:PORT
846+ a=ptime:20
847+ SDP
848+
849+ answer('actually rtpmap mismatched G.729 annexb', { }, <<SDP);
850+ v=0
851+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
852+ s=SIP call
853+ c=IN IP4 5.6.7.7
854+ t=0 0
855+ m=audio 49696 RTP/AVP 8 0 18 100
856+ a=rtpmap:8 PCMA/8000
857+ a=rtpmap:0 PCMU/8000
858+ a=rtpmap:18 G729a/8000
859+ a=fmtp:18 annexb=yes
860+ a=rtpmap:100 telephone-event/8000
861+ a=fmtp:100 0-11
862+ a=ptime:20
863+ a=maxptime:30
864+ a=sendrecv
865+ ----------------------------
866+ v=0
867+ o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
868+ s=SIP call
869+ t=0 0
870+ m=audio PORT RTP/AVP 8 0 100
871+ c=IN IP4 203.0.113.1
872+ a=rtpmap:8 PCMA/8000
873+ a=rtpmap:0 PCMU/8000
874+ a=rtpmap:100 telephone-event/8000
875+ a=fmtp:100 0-11
876+ a=sendrecv
877+ a=rtcp:PORT
878+ a=ptime:20
879+ a=maxptime:30
880+ SDP
881+
696882}
697883
698884new_call;
0 commit comments