746
786
pretty_otp5836(compact_otp5836_msg1(), [Conf]).
789
flex_pretty_otp7431_msg01(suite) ->
791
flex_pretty_otp7431_msg01(Config) when list(Config) ->
792
d("flex_pretty_otp7431_msg01 -> entry", []),
793
?ACQUIRE_NODES(1, Config),
794
Conf = flex_scanner_conf(Config),
795
flex_pretty_otp7431(ok, flex_pretty_otp7431_msg1(), [Conf]).
797
flex_pretty_otp7431_msg02(suite) ->
799
flex_pretty_otp7431_msg02(Config) when list(Config) ->
800
%% put(severity,trc),
802
d("flex_pretty_otp7431_msg02 -> entry", []),
803
?ACQUIRE_NODES(1, Config),
804
Conf = flex_scanner_conf(Config),
805
flex_pretty_otp7431(error, flex_pretty_otp7431_msg2(), [Conf]).
807
flex_pretty_otp7431_msg03(suite) ->
809
flex_pretty_otp7431_msg03(Config) when list(Config) ->
810
%% put(severity,trc),
812
d("flex_pretty_otp7431_msg03 -> entry", []),
813
?ACQUIRE_NODES(1, Config),
814
Conf = flex_scanner_conf(Config),
815
flex_pretty_otp7431(error, flex_pretty_otp7431_msg3(), [Conf]).
817
flex_pretty_otp7431_msg04(suite) ->
819
flex_pretty_otp7431_msg04(Config) when list(Config) ->
820
d("flex_pretty_otp7431_msg04 -> entry", []),
821
?ACQUIRE_NODES(1, Config),
822
Conf = flex_scanner_conf(Config),
823
flex_pretty_otp7431(error, flex_pretty_otp7431_msg4(), [Conf]).
825
flex_pretty_otp7431_msg05(suite) ->
827
flex_pretty_otp7431_msg05(Config) when list(Config) ->
828
d("flex_pretty_otp7431_msg05 -> entry", []),
829
?ACQUIRE_NODES(1, Config),
830
Conf = flex_scanner_conf(Config),
831
flex_pretty_otp7431(error, flex_pretty_otp7431_msg5(), [Conf]).
833
flex_pretty_otp7431_msg06(suite) ->
835
flex_pretty_otp7431_msg06(Config) when list(Config) ->
836
d("flex_pretty_otp7431_msg06 -> entry", []),
837
?ACQUIRE_NODES(1, Config),
838
Conf = flex_scanner_conf(Config),
839
flex_pretty_otp7431(error, flex_pretty_otp7431_msg6(), [Conf]).
841
flex_pretty_otp7431_msg07(suite) ->
843
flex_pretty_otp7431_msg07(Config) when list(Config) ->
844
d("flex_pretty_otp7431_msg07 -> entry", []),
845
?ACQUIRE_NODES(1, Config),
846
Conf = flex_scanner_conf(Config),
847
flex_pretty_otp7431(error, flex_pretty_otp7431_msg7(), [Conf]).
849
flex_pretty_otp7431(Expected, Msg, Conf) ->
850
otp7431(Expected, megaco_pretty_text_encoder, Msg, Conf).
852
otp7431(Expected, Codec, Msg0, Conf) ->
853
Bin0 = list_to_binary(Msg0),
854
case decode_message(Codec, false, Conf, Bin0) of
855
{ok, _Msg1} when Expected =:= ok ->
856
io:format(" decoded", []);
857
{error, {bad_property_parm, Reason}} when (Expected =:= error) andalso
859
io:format("expected result: ~s", [Reason]),
862
io:format("unexpected result", []),
863
exit({unexpected_decode_result, Else})
867
flex_pretty_otp7431_msg1() ->
868
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
876
o=- 2890844526 2890842807 IN IP4 124.124.124.222
879
c=IN IP4 124.124.124.222
880
m=audio 2222 RTP/AVP 4
883
} ; RTP profile for G.723.1 is 4
890
flex_pretty_otp7431_msg2() ->
891
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
899
o=- 2890844526 2890842807 IN IP4 124.124.124.222
902
c=IN IP4 124.124.124.222
903
m=audio 2222 RTP/AVP 4
912
flex_pretty_otp7431_msg3() ->
913
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
921
o=- 2890844526 2890842807 IN IP4 124.124.124.222
924
c=IN IP4 124.124.124.222
925
m=audio 2222 RTP/AVP 4
934
flex_pretty_otp7431_msg4() ->
935
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
943
o=- 2890844526 2890842807 IN IP4 124.124.124.222
946
c=IN IP4 124.124.124.222
947
m=audio 2222 RTP/AVP 4
956
flex_pretty_otp7431_msg5() ->
957
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
971
flex_pretty_otp7431_msg6() ->
972
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
986
flex_pretty_otp7431_msg7() ->
987
"MEGACO/" ?VERSION_STR " [124.124.124.222]:55555 Reply = 10003 {
749
1003
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
751
1005
compact_test_msgs(suite) ->
2415
2669
%% ==============================================================
2671
%% F l e x C o m p a c t T e s t c a s e s
2674
flex_compact_otp7431_msg01(suite) ->
2676
flex_compact_otp7431_msg01(Config) when list(Config) ->
2677
%% put(severity,trc),
2679
d("flex_comppact_otp7431_msg01 -> entry", []),
2680
Conf = flex_scanner_conf(Config),
2681
flex_compact_otp7431(ok, flex_compact_otp7431_msg1(), [Conf]).
2683
flex_compact_otp7431_msg02(suite) ->
2685
flex_compact_otp7431_msg02(Config) when list(Config) ->
2686
%% put(severity,trc),
2688
d("flex_comppact_otp7431_msg02 -> entry", []),
2689
Conf = flex_scanner_conf(Config),
2690
flex_compact_otp7431(error, flex_compact_otp7431_msg2(), [Conf]).
2692
flex_compact_otp7431_msg03(suite) ->
2694
flex_compact_otp7431_msg03(Config) when list(Config) ->
2695
%% put(severity,trc),
2697
d("flex_comppact_otp7431_msg03 -> entry", []),
2698
Conf = flex_scanner_conf(Config),
2699
flex_compact_otp7431(error, flex_compact_otp7431_msg3(), [Conf]).
2701
flex_compact_otp7431_msg04(suite) ->
2703
flex_compact_otp7431_msg04(Config) when list(Config) ->
2704
%% put(severity,trc),
2706
d("flex_comppact_otp7431_msg04 -> entry", []),
2707
Conf = flex_scanner_conf(Config),
2708
flex_compact_otp7431(error, flex_compact_otp7431_msg4(), [Conf]).
2710
flex_compact_otp7431_msg05(suite) ->
2712
flex_compact_otp7431_msg05(Config) when list(Config) ->
2713
%% put(severity,trc),
2715
d("flex_comppact_otp7431_msg05 -> entry", []),
2716
Conf = flex_scanner_conf(Config),
2717
flex_compact_otp7431(error, flex_compact_otp7431_msg5(), [Conf]).
2719
flex_compact_otp7431_msg06(suite) ->
2721
flex_compact_otp7431_msg06(Config) when list(Config) ->
2722
%% put(severity,trc),
2724
d("flex_comppact_otp7431_msg06 -> entry", []),
2725
Conf = flex_scanner_conf(Config),
2726
flex_compact_otp7431(error, flex_compact_otp7431_msg6(), [Conf]).
2728
flex_compact_otp7431_msg07(suite) ->
2730
flex_compact_otp7431_msg07(Config) when list(Config) ->
2731
%% put(severity,trc),
2733
d("flex_comppact_otp7431_msg07 -> entry", []),
2734
Conf = flex_scanner_conf(Config),
2735
flex_compact_otp7431(error, flex_compact_otp7431_msg7(), [Conf]).
2738
flex_compact_otp7431(Expected, Msg, Conf) ->
2739
otp7431(Expected, megaco_compact_text_encoder, Msg, Conf).
2741
flex_compact_otp7431_msg1() ->
2742
"!/1 [124.124.124.222]:55555
2743
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2745
o=- 2890844526 2890842807 IN IP4 124.124.124.222
2748
c=IN IP4 124.124.124.222
2749
m=audio 2222 RTP/AVP 4
2754
flex_compact_otp7431_msg2() ->
2755
"!/1 [124.124.124.222]:55555
2756
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2758
o=- 2890844526 2890842807 IN IP4 124.124.124.222
2761
c=IN IP4 124.124.124.222
2762
m=audio 2222 RTP/AVP 4
2768
flex_compact_otp7431_msg3() ->
2769
"!/1 [124.124.124.222]:55555
2770
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2772
o=- 2890844526 2890842807 IN IP4 124.124.124.222
2775
c=IN IP4 124.124.124.222
2776
m=audio 2222 RTP/AVP 4
2782
flex_compact_otp7431_msg4() ->
2783
"!/1 [124.124.124.222]:55555
2784
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2786
o=- 2890844526 2890842807 IN IP4 124.124.124.222
2789
c=IN IP4 124.124.124.222
2790
m=audio 2222 RTP/AVP 4
2796
flex_compact_otp7431_msg5() ->
2797
"!/1 [124.124.124.222]:55555
2798
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2803
flex_compact_otp7431_msg6() ->
2804
"!/1 [124.124.124.222]:55555
2805
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2809
flex_compact_otp7431_msg7() ->
2810
"!/1 [124.124.124.222]:55555
2811
P=10003{C=2000{A=a4444,A=a4445{M{ST=1{L{
2816
%% ==============================================================
2417
2818
%% P r e t t y T e s t c a s e s