sverweij/mscgen_js

View on GitHub
src/samples/sample03_sip_(from_wikipedia).mscin

Summary

Maintainability
Test Coverage
# SIP protocol (source: wikipedia)
msc {
  UAS,  UAC;

  UAS -> UAC [label="INVITE"];
  UAS <- UAC [label="100 Trying"];
  UAS <- UAC [label="180 Ringing"];
  
  --- [label="the client plays ringing"];
  UAS <- UAC [label="200 Ok"];
  UAS -> UAC [label="ACK"];
  ...;
  
  --- [label="the client hangs up"];
  UAS <- UAC [label="BYE"];
  UAS <- UAC [label="200 Ok"];
}