Compare commits
2 commits
1de9a8ba91
...
af8cd3c4ca
| Author | SHA1 | Date | |
|---|---|---|---|
| af8cd3c4ca | |||
| d2e7fe827f |
5 changed files with 13 additions and 2 deletions
|
|
@ -61,6 +61,7 @@ in {
|
||||||
mailboxGreeting = ./greetings/anrufbeantworter.wav;
|
mailboxGreeting = ./greetings/anrufbeantworter.wav;
|
||||||
phones = {
|
phones = {
|
||||||
"jannel-mobile" = { model = "sip-client"; password = "changeme101"; };
|
"jannel-mobile" = { model = "sip-client"; password = "changeme101"; };
|
||||||
|
"f47f35a3fb72" = { model = "cisco-9971"; label = "Jannelfon"; password = "changeme101"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ in {
|
||||||
"= /directory-list.xml" = { alias = "${directory.listFile}"; extraConfig = "default_type text/xml;"; };
|
"= /directory-list.xml" = { alias = "${directory.listFile}"; extraConfig = "default_type text/xml;"; };
|
||||||
"= /intercom.xml" = { alias = "${directory.intercomFile}"; extraConfig = "default_type text/xml;"; };
|
"= /intercom.xml" = { alias = "${directory.intercomFile}"; extraConfig = "default_type text/xml;"; };
|
||||||
"= /contacts.json" = { alias = "${directoryJson}"; extraConfig = ''default_type application/json; add_header Access-Control-Allow-Origin "*";''; };
|
"= /contacts.json" = { alias = "${directoryJson}"; extraConfig = ''default_type application/json; add_header Access-Control-Allow-Origin "*";''; };
|
||||||
|
"= /auth" = { extraConfig = ''default_type text/plain; return 200 "AUTHORIZED";''; };
|
||||||
"/" = {
|
"/" = {
|
||||||
root = "${diagram.webRoot}";
|
root = "${diagram.webRoot}";
|
||||||
extraConfig = lib.optionalString (!hasRuntimeSecrets) "index index.html;";
|
extraConfig = lib.optionalString (!hasRuntimeSecrets) "index index.html;";
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,14 @@ let
|
||||||
hasMultiLine = true; # separate L2 line for family/shared DID
|
hasMultiLine = true; # separate L2 line for family/shared DID
|
||||||
codecs = [ "g722" "alaw" "ulaw" "ilbc" ];
|
codecs = [ "g722" "alaw" "ulaw" "ilbc" ];
|
||||||
};
|
};
|
||||||
|
"cisco-9971" = {
|
||||||
|
endpointTemplate = "endpoint-cisco-8961";
|
||||||
|
maxContacts = 1;
|
||||||
|
hasProvisioning = true;
|
||||||
|
hasIntercom = true;
|
||||||
|
hasMultiLine = true;
|
||||||
|
codecs = [ "g722" "alaw" "ulaw" "ilbc" ];
|
||||||
|
};
|
||||||
"sip-client" = {
|
"sip-client" = {
|
||||||
endpointTemplate = "endpoint-generic";
|
endpointTemplate = "endpoint-generic";
|
||||||
maxContacts = 1;
|
maxContacts = 1;
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ in {
|
||||||
<backgroundImageAccess>true</backgroundImageAccess>
|
<backgroundImageAccess>true</backgroundImageAccess>
|
||||||
<callLogBlfEnabled>2</callLogBlfEnabled>
|
<callLogBlfEnabled>2</callLogBlfEnabled>
|
||||||
</commonProfile>
|
</commonProfile>
|
||||||
<loadInformation>sip8961.9-4-2ES-14</loadInformation>
|
<!-- <loadInformation>sip8961.9-4-2ES-14</loadInformation> -->
|
||||||
<vendorConfig>
|
<vendorConfig>
|
||||||
<webAccess>0</webAccess>
|
<webAccess>0</webAccess>
|
||||||
<settingsAccess>1</settingsAccess>
|
<settingsAccess>1</settingsAccess>
|
||||||
|
|
@ -213,7 +213,7 @@ in {
|
||||||
<winCharSet>utf-8</winCharSet>
|
<winCharSet>utf-8</winCharSet>
|
||||||
</userLocale>
|
</userLocale>
|
||||||
<deviceSecurityMode>1</deviceSecurityMode>
|
<deviceSecurityMode>1</deviceSecurityMode>
|
||||||
<authenticationURL></authenticationURL>
|
<authenticationURL>http://${serverAddress}:${toString directoryPort}/auth</authenticationURL>
|
||||||
<directoryURL>http://${serverAddress}:${toString directoryPort}/directory.xml</directoryURL>
|
<directoryURL>http://${serverAddress}:${toString directoryPort}/directory.xml</directoryURL>
|
||||||
<messagesURL />
|
<messagesURL />
|
||||||
<servicesURL></servicesURL>
|
<servicesURL></servicesURL>
|
||||||
|
|
|
||||||
1
modules/voip/provisioning/templates/cisco-9971.nix
Normal file
1
modules/voip/provisioning/templates/cisco-9971.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
import ./cisco-8961.nix
|
||||||
Loading…
Reference in a new issue