Patch add "Action URL" für Video, Türöffner, etc. für Softkeys für z.B. 2N Verso auf Snom D765

190 views
Skip to first unread message

Ralf Münk

unread,
Nov 25, 2016, 9:04:32 PM11/25/16
to gs5-users
Falls jemand Interesse daran hat, den Video-Stream der Türsprechstelle auf sein Snom D765 per Softkey-Provisioning zu bekommen, hier die Vorgehensdweise:

Die URL ist entsprechend anzupassen, hier für die 2N EntryCom IP Verso.
Meine vorherigen Patches für Provisioning Snom D765 setze ich voraus, ebenfalls, dass bereits ein SIP-Account für die 2N existiert und die normale Kommunikation per Direktwahl funktioniert und die Video-URL via Browser abrufbar ist.
Nähere Infos zum 2N EntryCom IP Verso Setup für Snom D765 gibt es hier: https://faq.2n.cz/pages/viewpage.action?pageId=59080895


Zuerst der aktuelle Patch für die GS5 (bezieht sich auf die aktuelle Github-Version:
_______________________________________________________________________________________________


--- /opt/GS5/db/migrate/20120422072551_populate_softkey_function.rb    2016-11-26 01:46:40.109857696 +0100
+++ db/migrate/20120422072551_populate_softkey_function.rb    2016-11-26 00:10:34.259045747 +0100
@@ -12,7 +12,7 @@
   end
 
   def down
-      SoftkeyFunction.where(:name =>  ['speed_dial', 'blf', 'dtmf', 'log_out', 'log_in', 'conference', 'deactivated', 'url'] ).destroy_all
+      SoftkeyFunction.where(:name =>  ['speed_dial', 'blf', 'dtmf', 'log_out', 'log_in', 'conference', 'deactivated'] ).destroy_all
   end
 
 end

--- /opt/GS5/config/locales/views/softkeys/de.yml    2016-11-26 01:45:12.188463437 +0100
+++ config/locales/views/softkeys/de.yml    2016-11-26 00:10:34.243045387 +0100
@@ -12,7 +12,6 @@
       hunt_group_membership: 'Rufgruppen-Mitgliedschaft'
       deactivated: 'Deaktiviert'
       acd_membership: 'Warteschleife'
-      url: 'Actions URL'
     name: 'Softkey'
     controller:
       successfuly_created: 'Ein neuer Softkey wurde erstellt.'
@@ -66,4 +65,4 @@
       label:
         label: 'Beschriftung'
         hint: 'Je nach Telefonmodell gibt es die Möglichkeit eine Beschriftung bzw. eine Beschreibung auf dem Telefon anzuzeigen.'
-      submit: 'Absenden'
+      submit: 'Absenden'
\ No newline at end of file
--- /opt/GS5/config/locales/views/softkeys/en.yml    2016-11-26 01:58:20.745094313 +0100
+++ config/locales/views/softkeys/en.yml    2016-11-26 00:10:34.247045478 +0100
@@ -12,7 +12,6 @@
       hunt_group_membership: 'Hunt Group'
       deactivated: 'Deactivated'
       acd_membership: 'ACD'
-      url: 'Action URL'
     name: 'Softkey'
     controller:
       successfuly_created: 'Successfully created softkeys.'
@@ -62,4 +61,4 @@
       label:
         label: 'Label'
         hint: ''
-      submit: 'Submit'
+      submit: 'Submit'
\ No newline at end of file
--- /opt/GS5/app/controllers/config_snom_controller.rb    2016-11-26 01:52:48.447586424 +0100
+++ app/controllers/config_snom_controller.rb    2016-11-26 00:10:34.203044481 +0100
@@ -1396,8 +1382,6 @@
       return {:context => sip_account_index, :label => softkey.label, :type => 'speed', :value => 'f-lo'}
     when 'log_in'
       return {:context => sip_account_index, :label => softkey.label, :type => 'speed', :value => "f-li-#{softkey.number}"}
-    when 'url'
-      return {:context => sip_account_index, :label => softkey.label, :type => 'url', :value => softkey.number.to_s}
     when 'conference'
       conference = softkey.softkeyable
       if conference.class == Conference
_______________________________________________________________________________________________

Weitere Vorgehensweise:

- Zum SIP Account der SIP Video-Türsprechstelle neue Softkeys erstellen:

Hier im Beispiel der 2N EntryCom IP Verso:

Funktion: Action URL
Nummer: http://[IP der 2N EntryCom IP Verso]/enu/snom820-video.xml
Beschriftung: [beliebiger Name des Softkeys, z.B "Neben-Eingang"]

Funktion: Kurzwahl
Nummer: [Nummer der 2N EntryCom IP Versio, z.B. 888]
Beschrifung: [beliebig, z.B. Neben-Eingang Direktwahl]

Funktion: Action URL
Nummer: http://[IP der 2N EntryCom IP Verso]/api/switch/ctrl?switch=1&action=trigger
Beschriftung: [beliebig, z.B. Neben-Eingang Türöffner]

Funktion: DTMF
Nummer: 00
Beschriftung: [beliebieg, z.B. DTMF 00]

- Über die Snom D765 Weboberfläche neuen Adressbucheintrag für Video-Türsprechstelle erstellen
Nummer der 2N eintragen (hier im Beipsiel: 888)
Action URL eintragen = gleich dem Video-Softkey von gerade eben, im Beispiel: http://[IP der 2N EntryCom IP Verso]/enu/snom820-video.xml

Tip: falls man die Softkeys auf bestimmten Tasten haben möchte, legt man vorher entsprechend viele DTMF Softkeys an und vergibt z.B. als Nummer die "0".

Das war es bereits.
Klingelt jemand an der 2N erscheint sofort das Video auf dem Snom, bzw. man kann per Direktwahl die Tür ansprechen, Video ist per Softkey jederzeit abrufbar, Tür öffnen, etc.

Viele Grüße
Ralf






Reply all
Reply to author
Forward
0 new messages