| 2668 | | $currentcomponent->addoptlistitem('recordoptions', 'Adhoc', 'On Demand'); |
|---|
| 2669 | | $currentcomponent->addoptlistitem('recordoptions', 'Always', 'Always'); |
|---|
| 2670 | | $currentcomponent->addoptlistitem('recordoptions', 'Never', 'Never'); |
|---|
| | 2668 | $currentcomponent->addoptlistitem('recordoptions', 'Adhoc', _("On Demand")); |
|---|
| | 2669 | $currentcomponent->addoptlistitem('recordoptions', 'Always', _("Always")); |
|---|
| | 2670 | $currentcomponent->addoptlistitem('recordoptions', 'Never', _("Never")); |
|---|
| 2692 | | $currentcomponent->addoptlistitem('faxdestoptions', 'default', 'FreePBX default'); |
|---|
| 2693 | | $currentcomponent->addoptlistitem('faxdestoptions', 'disabled', 'disabled'); |
|---|
| 2694 | | $currentcomponent->addoptlistitem('faxdestoptions', 'system', 'system'); |
|---|
| | 2692 | $currentcomponent->addoptlistitem('faxdestoptions', 'default', _("FreePBX default")); |
|---|
| | 2693 | $currentcomponent->addoptlistitem('faxdestoptions', 'disabled', _("disabled")); |
|---|
| | 2694 | $currentcomponent->addoptlistitem('faxdestoptions', 'system', _("system")); |
|---|
| 2773 | | $msgInvalidExtNum = 'Please enter a valid extension number.'; |
|---|
| 2774 | | $msgInvalidCidNum = 'Please enter a valid CID Num Alias (must be a valid number).'; |
|---|
| 2775 | | $msgInvalidExtPwd = 'Please enter valid User Password using numbers only'; |
|---|
| 2776 | | $msgInvalidDispName = 'Please enter a valid Display Name'; |
|---|
| 2777 | | $msgInvalidOutboundCID = 'Please enter a valid Outbound CID'; |
|---|
| 2778 | | $msgInvalidPause = 'Please enter a valid pause time in seconds, using digits only'; |
|---|
| | 2773 | $msgInvalidExtNum = _("Please enter a valid extension number."); |
|---|
| | 2774 | $msgInvalidCidNum = _("Please enter a valid CID Num Alias (must be a valid number)."); |
|---|
| | 2775 | $msgInvalidExtPwd = _("Please enter valid User Password using numbers only"); |
|---|
| | 2776 | $msgInvalidDispName = _("Please enter a valid Display Name"); |
|---|
| | 2777 | $msgInvalidOutboundCID = _("Please enter a valid Outbound CID"); |
|---|
| | 2778 | $msgInvalidPause = _("Please enter a valid pause time in seconds, using digits only"); |
|---|
| 2795 | | $currentcomponent->addguielem($section, new gui_password('password', $password, 'User Password', _("A user will enter this password when logging onto a device.").' '.$fc_logon.' '._('logs into a device.').' '.$fc_logoff.' '._('logs out of a device.'), '!isInteger() && !isWhitespace()', $msgInvalidExtPwd, true)); |
|---|
| | 2795 | $currentcomponent->addguielem($section, new gui_password('password', $password, 'User Password', _("A user will enter this password when logging onto a device.").' '.$fc_logon.' '._("logs into a device.").' '.$fc_logoff.' '._("logs out of a device."), '!isInteger() && !isWhitespace()', $msgInvalidExtPwd, true)); |
|---|
| 2900 | | $msgInvalidDTMFMODE = 'Please enter the dtmfmode for this device'; |
|---|
| 2901 | | $msgInvalidChannel = 'Please enter the channel for this device'; |
|---|
| 2902 | | $msgConfirmSecret = 'You have not entered a Secret for this device, although this is possible it is generally bad practice to not assign a Secret to a device.\n\nAre you sure you want to leave the Secret empty?'; |
|---|
| 2903 | | $msgInvalidSecret = 'Please enter a Secret for this device'; |
|---|
| | 2900 | $msgInvalidDTMFMODE = _("Please enter the dtmfmode for this device"); |
|---|
| | 2901 | $msgInvalidChannel = _("Please enter the channel for this device"); |
|---|
| | 2902 | $msgConfirmSecret = _("You have not entered a Secret for this device, although this is possible it is generally bad practice to not assign a Secret to a device.\n\nAre you sure you want to leave the Secret empty?"); |
|---|
| | 2903 | $msgInvalidSecret = _("Please enter a Secret for this device"); |
|---|
| 2968 | | $currentcomponent->addoptlistitem('devicelist', 'sip_generic', 'Generic SIP Device'); |
|---|
| 2969 | | $currentcomponent->addoptlistitem('devicelist', 'iax2_generic', 'Generic IAX2 Device'); |
|---|
| 2970 | | $currentcomponent->addoptlistitem('devicelist', 'zap_generic', 'Generic ZAP Device'); |
|---|
| 2971 | | $currentcomponent->addoptlistitem('devicelist', 'custom_custom', 'Other (Custom) Device'); |
|---|
| | 2968 | $currentcomponent->addoptlistitem('devicelist', 'sip_generic', _("Generic SIP Device")); |
|---|
| | 2969 | $currentcomponent->addoptlistitem('devicelist', 'iax2_generic', _("Generic IAX2 Device")); |
|---|
| | 2970 | $currentcomponent->addoptlistitem('devicelist', 'zap_generic', _("Generic ZAP Device")); |
|---|
| | 2971 | $currentcomponent->addoptlistitem('devicelist', 'custom_custom', _("Other (Custom) Device")); |
|---|
| 3015 | | $currentcomponent->addguielem('_top', new gui_pageheading('title', 'Add an Extension'), 0); |
|---|
| 3016 | | } |
|---|
| 3017 | | $currentcomponent->addguielem('_top', new gui_label('instructions', 'Please select your Device below then click Submit')); |
|---|
| | 3015 | $currentcomponent->addguielem('_top', new gui_pageheading('title', _("Add an Extension")), 0); |
|---|
| | 3016 | } |
|---|
| | 3017 | $currentcomponent->addguielem('_top', new gui_label('instructions', _("Please select your Device below then click Submit"))); |
|---|
| 3059 | | $msgInvalidDevID = 'Please enter a device id.'; |
|---|
| 3060 | | $msgInvalidDevDesc = 'Please enter a valid Description for this device'; |
|---|
| 3061 | | $msgInvalidEmergCID = 'Please enter a valid Emergency CID'; |
|---|
| 3062 | | $msgInvalidExtNum = 'Please enter a valid extension number.'; |
|---|
| | 3059 | $msgInvalidDevID = _("Please enter a device id."); |
|---|
| | 3060 | $msgInvalidDevDesc = _("Please enter a valid Description for this device"); |
|---|
| | 3061 | $msgInvalidEmergCID = _("Please enter a valid Emergency CID"); |
|---|
| | 3062 | $msgInvalidExtNum = _("Please enter a valid extension number."); |
|---|
| 3075 | 3075 | $currentcomponent->addguielem($section, new gui_textbox('description', $devinfo_description, 'Description', 'The caller id name for this device will be set to this description until it is logged into.', '!isAlphanumeric() || isWhitespace()', $msgInvalidDevDesc, false)); |
|---|
| 3076 | 3076 | $currentcomponent->addguielem($section, new gui_textbox('emergency_cid', $devinfo_emergency_cid, 'Emergency CID', 'This caller id will always be set when dialing out an Outbound Route flagged as Emergency. The Emergency CID overrides all other caller id settings.', '!isCallerID()', $msgInvalidEmergCID)); |
|---|
| 3077 | | $currentcomponent->addguielem($section, new gui_selectbox('devicetype', $currentcomponent->getoptlist('devicetypelist'), $devinfo_devicetype, 'Device Type', _('Devices can be fixed or adhoc. Fixed devices are always associated to the same extension/user. Adhoc devices can be logged into and logged out of by users.').' '.$fc_logon.' '._('logs into a device.').' '.$fc_logoff.' '._('logs out of a device.'), false)); |
|---|
| | 3077 | $currentcomponent->addguielem($section, new gui_selectbox('devicetype', $currentcomponent->getoptlist('devicetypelist'), $devinfo_devicetype, 'Device Type', _("Devices can be fixed or adhoc. Fixed devices are always associated to the same extension/user. Adhoc devices can be logged into and logged out of by users.").' '.$fc_logon.' '._("logs into a device.").' '.$fc_logoff.' '._("logs out of a device."), false)); |
|---|