From b9555b191c649ea3e97e5d3539ccc6f107451f1e Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Mon, 18 Mar 2024 08:33:19 -0600 Subject: [PATCH] Create snom PA1 plus (#6914) PA1plus is the product replacement for PA1 --- .../provision/snom/PA1plus/{$mac}.cfg | 999 ++++++++++++++++++ 1 file changed, 999 insertions(+) create mode 100644 resources/templates/provision/snom/PA1plus/{$mac}.cfg diff --git a/resources/templates/provision/snom/PA1plus/{$mac}.cfg b/resources/templates/provision/snom/PA1plus/{$mac}.cfg new file mode 100644 index 0000000000..69d37f519e --- /dev/null +++ b/resources/templates/provision/snom/PA1plus/{$mac}.cfg @@ -0,0 +1,999 @@ + + + {if isset($snom_language)}{$snom_language}{else}English{/if} + snom + snomPA1P + snom PA1+ + https://service.snom.com + 160 + on + {if isset($snom_provision_url)}{$snom_provision_url}{else}https://{$domain_name}{$project_path}/app/provision/index.php?mac={$mac}{/if} + on + + + eth0 + + + + + on + + {if isset($snom_ntp_server)}{$snom_ntp_server}{else}0.pool.ntp.org{/if} + + + 80 + + + {if isset($admin_password) } + {$admin_name} + {$admin_password} + 5 + on + + {$admin_password} + {$admin_password} + off + {else} + on + + {$admin_password} + {$admin_password} + {/if} + + off + 443 + http_https + + 3600 03.02.07 02:00:00 11.01.07 02:00:00 + {$snom_time_zone} + 24 + 500 + on + 3600 + 5060 + + 70 + on + 1 + on + off + + off + on + on + off + off + + + + + + + + + + + + + + + off + $ + 1 + 16384 + 32768 + + off + on + off + + + {if isset($snom_tone_scheme)}{$snom_tone_scheme}{else}USA{/if} + {if isset($snom_speaker_volume)}{$snom_speaker_volume}{else}8{/if} + {if isset($snom_speaker_volume)}{$snom_speaker_volume}{else}8{/if} + 100 + 10 + 13 + off + off + + 9 + {if isset($snom_auto_answer_indication)}{$snom_auto_answer_indication}{else}off{/if} + off + off + 4 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + alert-internal + alert-external + alert-group + {if isset($snom_alert_internal)}{$snom_alert_internal}{else}Ringer1{/if} + {if isset($snom_alert_external)}{$snom_alert_external}{else}Ringer1{/if} + {if isset($snom_alert_group)}{$snom_alert_group}{else}Ringer1{/if} + off + 123 + display_name + on + off + off + + on + {if isset($snom_update_policy)}{$snom_update_policy}{else}auto_update{/if} + e164.arpa + + + pui + off + off + off + off + off + off + off + off + blind + blind + reregister + stutter + off + + headset + on + 15 + {if isset($snom_require_prack)}{$snom_require_prack}{else}off{/if} + on + off + + + {if isset($snom_language)}{$snom_language}{else}English{/if} + off + on + + on + on + off + on + 120 + + 60 + off + + 161 + {if isset($snom_multicast_listen)}{$snom_multicast_listen}{else}off{/if} + off + on + on + on + on + off + 160 + auto + auto + off + off + + + + + + 50 + off + + + + + + off + 7000 + on + off + + + on + + off + on + on + 1 + keyevent F_REDIAL + keyevent none + keyevent F_SETTINGS + keyevent F_NEXT_ID + keyevent F_MISSED_LIST + keyevent F_ACCEPTED_LIST + off + off + off + 3600 + 0 + lang_calling + lang_connected + lang_ringing + lang_enter_number + lang_held_by + lang_terminated_finished + on + on + 911 112 110 999 + on + off + on + off + on + off + 10 + + + off + on + + 0 + {$http_auth_username} + {$http_auth_password} + on + off + off + on + off + off + + + + off + 300 + {if isset($snom_send_prack)}{$snom_send_prack}{else}off{/if} + http://wiki.snom.com/wiki/index.php/Settings/ + on + on + + + + + + + + + + + on + 0 + on + on + on + 100 + 30 + 30 + 30 + off + on + off + on + off + + off + on + on + 5 + 1.1.3-s + 0 + on + off + 0 + 0 + + 2208 + + + 50 + 5 + 8 + on + off + + on + 20 + intercom_connect_type_headset + 15 + 40 + off + on + + off + on + off + 10000 + off + idle + + + on + 0 + 0 + 0 + 0 + 0 + {if isset($snom_amp_gain)}{$snom_amp_gain}{else}1{/if} + on + off + off + off + off + 0 + + + 7200 + + 8080 + services/resource-lists + contacts-resource-list.xml + on + on + + screen.bmp settings.cfg settings.xml settings_wo_default.xml tbook.xml tbook.csv param_map param_map_structs state_of_gui.htm state_of_identity.htm dirty_hosts.htm dialplan.xml trace.pcap dummy.htm strings.csv log.htm certificates_unknown_certs.htm subscriptions.htm trace.htm http_trace.htm memstat.htm support.htm line_login.htm action.htm pcap.htm dnscache.htm update.htm settings.htm line_sip.htm line_nat.htm line_rtp.htm line_features.htm changed_settings.htm contacts.htm debug.htm modules.htm media.htm xml_entities.htm + on + off + off + ON BUSY IN_A_CALL CALLING IN_A_MEETING URGENT_INTERRUPTIONS_ONLY DND UNAVAILABLE ACTIVE INACTIVE BE_RIGHT_BACK AWAY SEIZED CONNECTED ON_HOLD OFFHOOK RINGBACK I-Am-Ready AVAILABLE I-Am-Busy PhoneHasMissedCalls + PARKED HOLDING I-Am-Almost-Ready PhoneHasCallInStateHolding + RECORDING MESSAGE DateOngoing DateReminding + RINGING PICKUP PhoneHasCallInStateRinging + BUSY IN_A_CALL IN_A_MEETING URGENT_INTERRUPTIONS_ONLY DND I-Am-Busy UNAVAILABLE + AVAILABLE I-Am-Ready I-Am-Almost-Ready + AWAY INACTIVE BE_RIGHT_BACK + + + + + PhoneHasCallInStateRinging CurrentIdentityHasVoiceMessages PhoneHasVoiceMessages PhoneHasMissedCalls + on + 0 + 300 + off + + 1 3 4 6 12 15 42 43 51 66 67 120 125 132 133 + 43 120 125 + on + !User-Agent: Mozilla/4.0 (compatible; $(firmware_version) $(uboot_version) $(mac)) + + + + + off + + + + + on + off + + 300 + off + + + on + on + on + on + on + f1 + f2 + f3 + f4 + f5 + cancel + enter + left + right + up + down + record + retrieve + mute + speaker + headset + redial + dnd + directory + help + menu + snom + transfer + settings + conference + hold + volume up + volume down + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + * + # + off + + off + + + 5 + 5 + 5 + 5 + + 1000 + 65535 + off + off + off + off + + + on + off + + off + + 8 + 0 + on + off + off + on + on + on + off + 30 + 600 + 300 + 600 + 1800 + 10000 + off + on + on + snomPA1P + 60 + 700 + 1100 + 1 + application/sdp + + + off + off + on + 400 + 4 + 3 + 300 + pcmu + 20 + + + connected calling holding on_hold ringback + holding ringing calling ringback + F_CALL_COMPLETION F_NEXT_CALL_SCREEN + F_OK F_TRANSFER(not:Transfer) F_DIAL(Transfer) F_CONTACTPOOL(Transfer) F_NEXT_CALL_SCREEN + F_PARKORBIT F_DUAL_AUDIO(not:Conference) F_CONF_ON(not:Conference) F_HOLD F_NEXT_CALL_SCREEN + F_OK F_CONF_ON(not:Transfer) F_DIAL(Transfer) F_CONTACTPOOL(Holding,Transfer) F_NEXT_CALL_SCREEN + F_SAFETRANSFER(edit_for_transfer) F_ACCEPT_CALL(not:edit_for_transfer) F_DEFLECT F_OK F_BACK F_CONTACTPOOL + + SIP + off + 4100 + + CallBackOnBusyInProgress CallBackOnBusyAvailable PhoneProvisioningStarting PhoneProvisioningInProgress EthernetUnplugged PhoneHasIncomingPublicAnnouncement PhoneIsLocked PhoneHasDisabledSipStack CurrentIdentityIsNotRegistered PhoneIsWaitingForCallCompletion CurrentIdentityIsDnd CurrentIdentityForewardsAlways ActiveLocations ServerMessageToBeShownDirectly IPv4Conflict LocationRetrievalFailed PhoneHasMissedCalls + PhoneHasIncomingPublicAnnouncement PhoneIsLocked PhoneHasDisabledSipStack CurrentIdentityIsNotRegistered PhoneIsWaitingForCallCompletion CurrentIdentityIsDnd CurrentIdentityForewardsAlways ActiveLocations ServerMessageToBeShownDirectly IPv4Conflict + PhoneHasVoiceMessages PhoneHasTextMessages PhoneProvisioningFailed + EthernetUnplugged PhoneHasFirmwareUpdate PhoneWantsToUpdate PhoneWantsReboot LocationRetrievalFailed PhoneHasDisabledSipStack PhoneHasVpnError PhoneHasLowMemory PhoneRefusedHugeXcapSync FirmwareUpdateFailed BtoeStateUnpaired BtoeStatePairing VisionConnectionLost ActiveBluetoothConnection UsbDiskConnected CurrentIdentityIsNotRegistered Identity01IsNotRegistered Identity02IsNotRegistered Identity03IsNotRegistered Identity04IsNotRegistered Identity05IsNotRegistered Identity06IsNotRegistered Identity07IsNotRegistered Identity08IsNotRegistered Identity09IsNotRegistered Identity10IsNotRegistered Identity11IsNotRegistered Identity12IsNotRegistered PhoneCannotReachNtpServer PhoneHasNoHttpPassword PhoneHasNoAdminPassword Identity01ExtendedRegInfo Identity02ExtendedRegInfo Identity03ExtendedRegInfo Identity04ExtendedRegInfo Identity05ExtendedRegInfo Identity06ExtendedRegInfo Identity07ExtendedRegInfo Identity08ExtendedRegInfo Identity09ExtendedRegInfo Identity10ExtendedRegInfo Identity11ExtendedRegInfo Identity12ExtendedRegInfo CallBackOnBusyInProgress CallBackOnBusyAvailable + PhoneHasIncomingPublicAnnouncement + PhoneProvisioningStarting PhoneProvisioningInProgress LocationRetrievalFailed:0 + detect_defend + + + on + 180 + 400 + + STATE_AUTO_LEAVE,F_HOLD,MUTE,VOLUME_UP,VOLUME_DOWN + off + off + 4 + STATE_AUTO_LEAVE,OFFHOOK,ONHOOK,CANCEL,F_CANCEL,F_HOLD,VOLUME_UP,VOLUME_DOWN,SPEAKER,HEADSET,*,#,0,1,2,3,4,5,6,7,8,9 + + redirection:stop pnp:stop dhcp:stop tr69:stop + off + + off + on + + off + 0 + 80 + 300 + off + Ldap InternalTbook Sip Vcard Memory + 2 18 13-l-220 250-r-118 393-r-75 + 12 103 194 285 376 + 9 94 179 + 50 + on + ask + off + on + 0 + on + + on + 60 + + off + 4;600;600;3600 + on + off + 8 + off + 524288 + 0 + on + off + off + off + + + {foreach $lines as $row} + 64 + off + on + off + {if $row.enabled}on{else}off{/if} + + {$row.display_name} + {$row.user_id} + {$row.server_address}:{$row.sip_port} + + + {$row.password} + + 1.0 + {$row.register_expires} + {if isset($voicemail_number)}{$voicemail_number}{else}*97{/if} + off + off + off + + + + + + {if $row.line_number == '1'}{if isset($snom_user_auto_connect_1)}{$snom_user_auto_connect_1}{else}on{/if}{/if} + {if $row.line_number == '2'}{if isset($snom_user_auto_connect_2)}{$snom_user_auto_connect_2}{else}on{/if}{/if} + {if $row.line_number == '3'}{if isset($snom_user_auto_connect_3)}{$snom_user_auto_connect_3}{else}on{/if}{/if} + {if $row.line_number == '4'}{if isset($snom_user_auto_connect_4)}{$snom_user_auto_connect_4}{else}on{/if}{/if} + + off + + + on + + off + + + ENUM + {if $row.line_number == '1'}{if isset($snom_user_ringer_1)}{$snom_user_ringer_1}{else}Ringer1{/if}{/if} + {if $row.line_number == '2'}{if isset($snom_user_ringer_2)}{$snom_user_ringer_2}{else}Ringer1{/if}{/if} + {if $row.line_number == '3'}{if isset($snom_user_ringer_3)}{$snom_user_ringer_3}{else}Ringer1{/if}{/if} + {if $row.line_number == '4'}{if isset($snom_user_ringer_4)}{$snom_user_ringer_4}{else}Ringer1{/if}{/if} + + + {if $row.outbound_proxy == ""}{$row.server_address}{else}{$row.outbound_proxy}{/if}:{$row.sip_port};transport={if $row.sip_transport == 'tcp' || $row.sip_transport == 'tls'}{$row.sip_transport}{else}udp{/if} + number + 20 + {$stun_server}{if isset($stun_port)}:{$stun_port}{/if} + {$snom_stun_interval} + {if isset($snom_keepalive)}{$snom_keepalive}{else}30{/if} + on + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + off + + + off + + on + Default + Available + on + none + on + on + + 3600 + + off + + + + + + + + + + + + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + Ringer1 + off + on + on + on + 30 + 5 + 20 + off + + 239.255.255.230:5555 + + + + + + + + + + on + active + udp + on + on + false + none + none + on + off + off + off + off + off + + + off + + + + off + + + + off + + + + + on + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + local + off + on + on + on + on + {if isset($snom_codec)}{$snom_codec}{else}g722,pcmu,pcma,gsm,g723,g726-32,aal2-g726-32,g729,telephone-event{/if} + 600 + + + + + + + + + + + + + + + + + + + + + + on + 0 + off + off + off + + + + + + + + + + + + + + + + + + + off + + off + 239.255.255.245:5555 + off + + + + 300 + off + on + on + 600 + 30 + on + on + on + on + off + on + on + + + dndall + off + on + on + + + off + off + off + 486 Busy Here + + + *88 + *97 + on + off + on + on + off + on + + off + off + + + + + + on + off + + off + off + off + on + 1 + off + off + off + *68 + + + + + off + + off + {if $row@index eq 3}{break}{/if} + {/foreach} + + + + + {$snom_firmware_url}{$snom_firmware_pa1plus} + + + + {assign var="maxKeys" value=85 - count($lines)} + + + {foreach $lines as $row} + line + {if $row@index eq 11}{break}{/if} + {/foreach} + + + {foreach $keys["line"] as $row} + {$row.device_key_type} {$row.device_key_value} + {if $row@index eq $maxKeys}{break}{/if} + {/foreach} + + + + +