Compare commits

...

2 commits

Author SHA1 Message Date
af8cd3c4ca fix: use 8961 for 9971 template 2026-04-17 23:31:13 +02:00
d2e7fe827f feat: add cisco-9971 support 2026-04-17 23:14:49 +02:00
5 changed files with 13 additions and 2 deletions

View file

@ -61,6 +61,7 @@ in {
mailboxGreeting = ./greetings/anrufbeantworter.wav;
phones = {
"jannel-mobile" = { model = "sip-client"; password = "changeme101"; };
"f47f35a3fb72" = { model = "cisco-9971"; label = "Jannelfon"; password = "changeme101"; };
};
};
};

View file

@ -89,6 +89,7 @@ in {
"= /directory-list.xml" = { alias = "${directory.listFile}"; 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 "*";''; };
"= /auth" = { extraConfig = ''default_type text/plain; return 200 "AUTHORIZED";''; };
"/" = {
root = "${diagram.webRoot}";
extraConfig = lib.optionalString (!hasRuntimeSecrets) "index index.html;";

View file

@ -14,6 +14,14 @@ let
hasMultiLine = true; # separate L2 line for family/shared DID
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" = {
endpointTemplate = "endpoint-generic";
maxContacts = 1;

View file

@ -195,7 +195,7 @@ in {
<backgroundImageAccess>true</backgroundImageAccess>
<callLogBlfEnabled>2</callLogBlfEnabled>
</commonProfile>
<loadInformation>sip8961.9-4-2ES-14</loadInformation>
<!-- <loadInformation>sip8961.9-4-2ES-14</loadInformation> -->
<vendorConfig>
<webAccess>0</webAccess>
<settingsAccess>1</settingsAccess>
@ -213,7 +213,7 @@ in {
<winCharSet>utf-8</winCharSet>
</userLocale>
<deviceSecurityMode>1</deviceSecurityMode>
<authenticationURL></authenticationURL>
<authenticationURL>http://${serverAddress}:${toString directoryPort}/auth</authenticationURL>
<directoryURL>http://${serverAddress}:${toString directoryPort}/directory.xml</directoryURL>
<messagesURL />
<servicesURL></servicesURL>

View file

@ -0,0 +1 @@
import ./cisco-8961.nix