2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
16 cbimap = Map("asterisk", "asterisk", "")
18 sip = cbimap:section(TypedSection, "sip", "SIP Connection", "")
21 alwaysinternational = sip:option(Flag, "alwaysinternational", "Always Dial International", "")
22 alwaysinternational.optional = true
24 canreinvite = sip:option(ListValue, "canreinvite", "Reinvite/redirect media connections", "")
25 canreinvite:value("yes", "Yes")
26 canreinvite:value("nonat", "Yes when not behind NAT")
27 canreinvite:value("update", "Use UPDATE rather than INVITE for path redirection")
28 canreinvite:value("no", "No")
29 canreinvite.optional = true
31 context = sip:option(Value, "context", "", "")
32 context.optional = true
34 countrycode = sip:option(Value, "countrycode", "Country Code for connection", "")
35 countrycode.optional = true
37 dtmfmode = sip:option(ListValue, "dtmfmode", "DTMF mode", "")
38 dtmfmode:value("info", "Use RFC2833 or INFO for the BudgeTone")
39 dtmfmode:value("rfc2833", "Use RFC2833 for the BudgeTone")
40 dtmfmode:value("inband", "Use Inband (only with ulaw/alaw)")
41 dtmfmode.optional = true
43 extension = sip:option(Value, "extension", "Add as Extension", "")
44 extension.optional = true
46 fromdomain = sip:option(Value, "fromdomain", "Primary domain identity for From: headers", "")
47 fromdomain.optional = true
49 fromuser = sip:option(Value, "fromuser", "From user (required by many SIP providers)", "")
50 fromuser.optional = true
52 host = sip:option(Value, "host", "Host name (or blank)", "")
55 incoming = sip:option(DynamicList, "incoming", "Ring on incoming dialplan contexts", "")
56 incoming.optional = true
58 insecure = sip:option(ListValue, "insecure", "Allow Insecure for", "")
59 insecure:value("port", "Allow mismatched port number")
60 insecure:value("invite", "Do not require auth of incoming INVITE")
61 insecure:value("port,invite", "Allow mismatched port and Do not require auth of incoming INVITE")
62 insecure.optional = true
64 internationalprefix = sip:option(Value, "internationalprefix", "International Dial Prefix", "")
65 internationalprefix.optional = true
67 mailbox = sip:option(Value, "mailbox", "Mailbox for MWI", "")
68 mailbox.optional = true
70 nat = sip:option(Flag, "nat", "NAT between phone and Asterisk", "")
73 pedantic = sip:option(Flag, "pedantic", "Check tags in headers", "")
74 pedantic.optional = true
76 port = sip:option(Value, "port", "SIP Port", "")
79 prefix = sip:option(Value, "prefix", "Dial Prefix (for external line)", "")
80 prefix.optional = true
82 qualify = sip:option(Value, "qualify", "Reply Timeout (ms) for down connection", "")
83 qualify.optional = true
85 register = sip:option(Flag, "register", "Register connection", "")
86 register.optional = true
88 secret = sip:option(Value, "secret", "Secret", "")
89 secret.optional = true
91 selfmailbox = sip:option(Flag, "selfmailbox", "Dial own extension for mailbox", "")
92 selfmailbox.optional = true
94 timeout = sip:option(Value, "timeout", "Dial Timeout (sec)", "")
95 timeout.optional = true
97 type = sip:option(ListValue, "type", "Client Type", "")
98 type:value("friend", "Friend (outbound/inbound)")
99 type:value("user", "User (inbound - authenticate by \"from\")")
100 type:value("peer", "Peer (outbound - match by host)")
103 username = sip:option(Value, "username", "Username", "")
104 username.optional = true