Commits

Paweł Wieczorek committed 85d8baf Draft

more-tests

Comments (0)

Files changed (1)

tests/data/Testdata_messages.ml

                 ]
             ]
 
+        ; prepare_valid_message "sip message with unknown method SOMEMETHOD"
+            [ "SOMEMETHOD sip:alice@pc33.atlanta.com SIP/2.0"
+            ; "Via: SIP/2.0/UDP 192.0.2.4;branch=z9hG4bKnashds10"
+            ; "Max-Forwards: 70"
+            ; "From: Bob <sip:bob@biloxi.com>;tag=a6c85cf"
+            ; "To: Alice <sip:alice@atlanta.com>;tag=1928301774"
+            ; "Call-ID: a84b4c76e66710"
+            ; "CSeq: 231 BYE"
+            ; "Content-Length: 0"
+            ; ""
+            ; ""
+            ]
+
+            [ descr_sip_method
+                (UnknownRequestMethod "SOMEMETHOD")
+
+            ; descr_sip_version
+                SIP_2_0
+
+            ; descr_to
+                (sip_address_of_string "Alice <sip:alice@atlanta.com>;tag=1928301774")
+
+            ; descr_from
+                (sip_address_of_string "Bob <sip:bob@biloxi.com>;tag=a6c85cf")
+
+            ; descr_via
+                [ sip_via_of_string
+                    "SIP/2.0/UDP 192.0.2.4;branch=z9hG4bKnashds10"
+                ]
+            ]
+
         ]
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.