1) Added default rtpstart and end config values in pbx-advanced.
2) Some rewording of instructions and descriptions. 3) Changed the default hangup context name.
This commit is contained in:
parent
1c2449394d
commit
2cad3e038a
5 changed files with 15 additions and 12 deletions
|
@ -128,7 +128,7 @@ elseif nvalidoutaccounts == 0 then
|
||||||
text = translate("NOTE: There are no Google or SIP provider accounts enabled for outgoing calls.")
|
text = translate("NOTE: There are no Google or SIP provider accounts enabled for outgoing calls.")
|
||||||
else
|
else
|
||||||
text = translate("If you have more than one account that can make outgoing calls, you \
|
text = translate("If you have more than one account that can make outgoing calls, you \
|
||||||
should enter a list of phone numbers and prefixes in the following fields for each \
|
should enter a list of phone numbers and/or prefixes in the following fields for each \
|
||||||
provider listed. Invalid prefixes are removed silently, and only 0-9, X, Z, N, #, *, \
|
provider listed. Invalid prefixes are removed silently, and only 0-9, X, Z, N, #, *, \
|
||||||
and + are valid characters. The letter X matches 0-9, Z matches 1-9, and N matches 2-9. \
|
and + are valid characters. The letter X matches 0-9, Z matches 1-9, and N matches 2-9. \
|
||||||
For example to make calls to Germany through a provider, you can enter 49. To make calls \
|
For example to make calls to Germany through a provider, you can enter 49. To make calls \
|
||||||
|
@ -136,10 +136,10 @@ else
|
||||||
calls to an area code like New York's 646, you can enter 646NXXXXXX for that \
|
calls to an area code like New York's 646, you can enter 646NXXXXXX for that \
|
||||||
provider. You should leave one account with an empty list to make calls with \
|
provider. You should leave one account with an empty list to make calls with \
|
||||||
it by default, if no other provider's prefixes match. The system will automatically \
|
it by default, if no other provider's prefixes match. The system will automatically \
|
||||||
replace an empty list with a message that the provider dials all numbers. Be as specific as \
|
replace an empty list with a message that the provider dials all numbers not matched by another \
|
||||||
possible (i.e. 1NXXNXXXXXX is better than 1). Please note all international dial codes \
|
provider's prefixes. Be as specific as possible (i.e. 1NXXNXXXXXX is better than 1). Please note \
|
||||||
are discarded (e.g. 00, 011, 010, 0011). Entries can be made in a space-separated \
|
all international dial codes are discarded (e.g. 00, 011, 010, 0011). Entries can be made in a \
|
||||||
list, and/or one per line by hitting enter after every one.")
|
space-separated list, and/or one per line by hitting enter after every one.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ for k,v in pairs(validoutaccounts) do
|
||||||
value = self.map:get(section, self.option)
|
value = self.map:get(section, self.option)
|
||||||
|
|
||||||
if value == nil then
|
if value == nil then
|
||||||
return {translate("Used for numbers unmatched elsewhere")}
|
return {translate("Dials numbers unmatched elsewhere")}
|
||||||
else
|
else
|
||||||
return value
|
return value
|
||||||
end
|
end
|
||||||
|
@ -206,7 +206,7 @@ for k,v in pairs(validinaccounts) do
|
||||||
value = self.map:get(section, self.option)
|
value = self.map:get(section, self.option)
|
||||||
|
|
||||||
if value == nil then
|
if value == nil then
|
||||||
return {translate("All users enabled for incoming calls")}
|
return {translate("Rings users enabled for incoming calls")}
|
||||||
else
|
else
|
||||||
return value
|
return value
|
||||||
end
|
end
|
||||||
|
@ -259,7 +259,7 @@ for k,v in pairs(validoutusers) do
|
||||||
value = self.map:get(section, self.option)
|
value = self.map:get(section, self.option)
|
||||||
|
|
||||||
if value == nil then
|
if value == nil then
|
||||||
return {translate("All providers enabled for outgoing calls")}
|
return {translate("Uses providers enabled for outgoing calls")}
|
||||||
else
|
else
|
||||||
newvalue = {}
|
newvalue = {}
|
||||||
-- Convert internal names to user@host values.
|
-- Convert internal names to user@host values.
|
||||||
|
|
|
@ -32,7 +32,9 @@ defaultstatusmessage = "PBX online, may lose messages"
|
||||||
|
|
||||||
m = Map (modulename, translate("Google Accounts"),
|
m = Map (modulename, translate("Google Accounts"),
|
||||||
translate("This is where you set up your Google (Talk and Voice) Accounts, in order to start \
|
translate("This is where you set up your Google (Talk and Voice) Accounts, in order to start \
|
||||||
using them for dialing and receiving calls (voice chat and real phone calls). Click \"Add\" \
|
using them for dialing and receiving calls (voice chat and real phone calls). Please \
|
||||||
|
make at least one voice call using the Google Talk plugin installable through the \
|
||||||
|
GMail interface, and then log out from your account everywhere. Click \"Add\" \
|
||||||
to add as many accounts as you wish."))
|
to add as many accounts as you wish."))
|
||||||
|
|
||||||
-- Recreate the config, and restart services after changes are commited to the configuration.
|
-- Recreate the config, and restart services after changes are commited to the configuration.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
config 'settings' 'advanced'
|
config 'settings' 'advanced'
|
||||||
option 'useragent' 'PBX'
|
option 'useragent' 'PBX'
|
||||||
option 'ringtime' '30'
|
option 'ringtime' '30'
|
||||||
|
option 'rtpstart' '19850'
|
||||||
|
option 'rtpend' '19900'
|
||||||
|
|
|
@ -24,8 +24,7 @@ START=60
|
||||||
# Some global variables
|
# Some global variables
|
||||||
MODULENAME=pbx
|
MODULENAME=pbx
|
||||||
USERAGENT="PBX"
|
USERAGENT="PBX"
|
||||||
DEFAULTOUTCNTXT=default-outgoing-call-context
|
HANGUPCNTXT=hangup-call-context
|
||||||
HANGUPCNTXT=hangup
|
|
||||||
GTALKUNVL=unavailable
|
GTALKUNVL=unavailable
|
||||||
|
|
||||||
ASTUSER=nobody
|
ASTUSER=nobody
|
||||||
|
|
|
@ -8,7 +8,7 @@ RINGTIME => |RINGTIME|
|
||||||
|
|
||||||
[default]
|
[default]
|
||||||
|
|
||||||
[context-user-hangup]
|
[context-user-hangup-call-context]
|
||||||
exten => s,1,Hangup()
|
exten => s,1,Hangup()
|
||||||
exten => _X.,1,Hangup()
|
exten => _X.,1,Hangup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue