4 context=default ; Default context for incoming calls
5 udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
6 ; The address family of the bound UDP address is used to determine how Asterisk performs
7 ; DNS lookups. In cases a) and c) above, only A records are considered. In case b), only
8 ; AAAA records are considered. In case d), both A and AAAA records are considered. Note,
11 [basic-options-title](!,superclass-template);a template for my preferred codecs !@#$%#@$%^^&%%^*&$%
12 #comment after the title
18 [my-codecs](!) ; a template for my preferred codecs
26 [2133](natted-phone,my-codecs) ;;;;; some sort of comment
28 [2134](natted-phone,ulaw-phone)
29 secret = not_very_secret
30 [2136](public-phone,ulaw-phone)
31 secret = not_very_secret_either
34 test Sip_Conf.lns get conf =
36 { "context" = "default"
37 { "#comment" = "Default context for incoming calls" }
39 { "udpbindaddr" = "0.0.0.0"
40 { "#comment" = "IP address to bind UDP listen socket to (0.0.0.0 binds to all)" }
42 { "#comment" = "The address family of the bound UDP address is used to determine how Asterisk performs" }
43 { "#comment" = "DNS lookups. In cases a) and c) above, only A records are considered. In case b), only" }
44 { "#comment" = "AAAA records are considered. In case d), both A and AAAA records are considered. Note," }
48 { "title" = "basic-options-title"
50 { "@use_template" = "superclass-template" }
51 { "#title_comment" = ";a template for my preferred codecs !@#$%#@$%^^&%%^*&$%" }
52 { "#comment" = "comment after the title" }
53 { "dtmfmode" = "rfc2833" }
54 { "context" = "from-office" }
59 { "title" = "my-codecs"
61 { "#title_comment" = " ; a template for my preferred codecs" }
62 { "disallow" = "all" }
71 { "@use_template" = "natted-phone" }
72 { "@use_template" = "my-codecs" }
73 { "#title_comment" = " ;;;;; some sort of comment" }
74 { "secret" = "peekaboo" }
77 { "@use_template" = "natted-phone" }
78 { "@use_template" = "ulaw-phone" }
79 { "secret" = "not_very_secret" }
82 { "@use_template" = "public-phone" }
83 { "@use_template" = "ulaw-phone" }
84 { "secret" = "not_very_secret_either" }
87 (*********************************************
88 * Tests for update, create, delete
90 *********************************************)
92 (*********************************************
93 * Test to confirm that we can update the
96 *********************************************)
97 test Sip_Conf.lns put "[general]\ncontext=default\n" after
98 set "title[.='general']/context" "updated"
99 = "[general]\ncontext=updated
102 (*********************************************
103 * Test to confirm that we can create a
104 * new title with a context
106 *********************************************)
107 test Sip_Conf.lns put "[general]\ncontext=default\n" after
108 set "/title[.='newtitle']" "newtitle"; set "/title[.='newtitle']/context" "foobarbaz"
109 = "[general]\ncontext=default