advanced_debugging.save
Description
Start a new debugging session.
Arguments
name | value type | default value |
---|---|---|
enable_msg | boolean | 1 |
msg_length_unit | messages, minutes, hours, days | minutes |
msg_length_number | integer | 10 |
enable_astmsg | boolean | 1 |
enable_astsipdebug | boolean | 1 |
enable_astpridebug | boolean | 1 |
astpridebug_ports | Array of port numbers: 1, 2, et. al. | all ports |
astpridebug_level | standard, intense | standard |
astmsg_length_unit | messages, minutes, hours, days | minutes |
astmsg_length_number | integer | 10 |
enable_tcp | boolean | 1 |
tcp_only_sip | boolean | 1 |
tcp_length_unit | packets, minutes, hours, days | minutes |
tcp_length_number | integer | 10 |
Example Requests & Responses
Example One
Request
Start a new debugging session.
{
    'method' => 'advanced_debugging.save',
    'parameters' => {
          'enable_msg' => 1,
          'astpridebug_level' => 'standard',
          'astmsg_length_number' => '1',
          'tcp_only_sip' => 0,
          'astdebug_level' => '3',
          'tcp_length_unit' => 'minutes',
          'tcp_length_number' => '1',
          'astpridebug_ports' => [
                                   '1',
                                   '2'
                                 ],
          'msg_length_number' => '1',
          'start_time' => 1332876872,
          'enable_tcp' => 1,
          'enable_astsipdebug' => 1,
          'astmsg_length_unit' => 'minutes',
          'enable_astmsg' => 1,
          'enable_astpridebug' => 1,
          'msg_length_unit' => 'minutes'
        } |
Response
{
          'result' => 'success'
 } |
Or
{
          'result' => 'error',
          'error' => 'An Error String',
          'error_key' => 'AN_ERROR_LANGUAGE_KEY',
 } |