Voip Emulator
  • HOME
  • About Us
  • Screenshots
  • Download
  • Support
    • Questions And Answers
    • About VoIPEmulator
    • General View
    • Tutorials >
      • Configuration >
        • Basic Settings
        • Advanced Settings
      • Video Tutorials >
        • Global Overview
        • Basic Call Wizard Generator
        • Convert Trace To Megaco Wizard
      • RECEIVE Actions (MEGACO/SIP)
      • SEND Actions (MEGACO/SIP)
      • Advanced Scripting (SIP)
      • AUTORule Actions
      • Wizards >
        • Wireshark Wizard
        • BasicCall Wizard
        • Replace IP Wizard
  • Contact Us

Pretty VS Compact mode

There are two common formats for signaling messages:
The "PRETTY Mode" format which every key word in the message is meaningful

e.g: 


MEGACO/1 [192.168.2.1]:2944
Reply=0{
Context = 112 {
    Subtract = LINE1,
    Subtract = EP1 {
        Statistics {
        nt/os = 1170,
        nt/or = 0,
        rtp/ps = 8,
        rtp/pr = 0,
        rtp/pl = 0,
        rtp/jit = 0
        }
    }
}}

Or the "COMPACT mode" format
e.g:

​
!/1 [192.168.2.1]:2944
P=0{
C = 112 {
    S = LINE1,
    S = EP1 {
        SA {
        nt/os = 1170,
        nt/or = 0,
        rtp/ps = 8,
        rtp/pr = 0,
        rtp/pl = 0,
        rtp/jit = 0
        }
    }
}}

There are a few SSWs which tend to mix up the format (Pretty and Compact) and send a message format such as:


MEGACO/1 [192.168.2.1]:2944
P=0{
C = CTXID1 {
    S = TELID1,
    S = RTPID1 {
        SA {
        nt/os = 1170,
        nt/or = 0,
        rtp/ps = 8,
        rtp/pr = 0,
        rtp/pl = 0,
        rtp/jit = 0
        }
    }
}}

In case you have a working script which was written in "PRETTY Mode",
​you can always use the "Pretty->Compact" Wizard to transform the format.
Picture
Picture
Note: VoIPEmulator doesn't support working with Mixed formats.
Back
Powered by
Powered by
✕