Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Panel
titleColor#F85404
titleBGColor#F0F0F0
titleIntroduction

Here we would like to describe how you can enable/test messaging.

You need:

  • N670/N870 with software 2.42 or higher
  • Gigaset PRO handset
  • DECT handset messaging license
  • Alarming/Messaging server or an MQTT client (This example, we use an Linux Ubuntu PC)
  • When using an Linux PC, the Linux test script on this page

draw.io Diagram
bordertrue
diagramNameAML_Setup
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth451
revision2



Panel
titleColor#F85404
titleBGColor#F0F0F0
titleN670/N870 configuration

The N670/N870 needs to be configured:

  1. Update to the N670/N870 software that support messaging
  2. Enable the MQTT interface FAQ Nx70 - Application servers
  3. Register an Gigaset PRO handset
  4. Add a Messaging License FAQ Nx70 - Messaging and Location license
  5. Enable handset messaging option FAQ Nx70 - Messaging and Location how to enable/disable per handset


Info
titleNEW AML DECT capabilities

When using the NEW handsets SL800H / S700H / R700H you need to be sure the handsets have at least software version 10.

Handsets and the DECT system exchange capabilities during handset registration. In case you have a existing DECT system with handsets already registered then:

  • After update of the N670/N870, to the software that supports AML, the system has new DECT functionality
  • After updating the handsets to the new software, the handsets have new AML features

The N670/N870 needs to start a new DECT registration to exchange the new supported features. FAQ Nx70 - DECT Handset Re-registration

Example of a possible problem: Send a Message to an SL800H / S700H / R700H using a new icon shows the (wrong) "i" icon on the handset.

Panel
titleColor#F85404
titleBGColor#F0F0F0
titleLinux script

This script you can use to send MQTT messages from the Linux PC to the N670/N870

  1. Put this script on your Linux PC
  2. Change the rights to execute the script: chmod -R 777 "name"
  3. Change the IP address of the N670/N870 in this example: 192.168.178.192 to your own IP address
  4. Change the default values to your own preference like sip_id in this example = 1023 to your test handset sip_id
  5. Start the script: ./scriptname.sh
  6. The script will ask you for:
    1. sip_id (Your test handset sip_id)
    2. prio (1/3/6/8/9 default 1)
    3. message icon (default 4E)
    4. message icon color (00 white 02 green 03 yellow 04 red)
    5. ringtone (default msg_melody_low)
    6. presentation timer (default 30)
    7. time to live (default 600)
    8. IP address N870 (default 192.168.178.192)
  7. The handset will show the message

INFO: When copying below script on Windows OS to Notepad++ or so and transport it to Linux, you can run into [/bin/bash^M: bad interpreter: No such file or directory] error when executing. To fix: c/p to local text editor on Linux machine and save.


Code Block
languagebash
#!/bin/bash

read -p "sip id: (1023) "  sip_id
if  [ -z "$sip_id" ];	then sip_id=1023
fi

read -p "prio (1) "  prio
if [ -z "$prio" ]; 	then prio=1
fi

read -p "message icon (4E) "  msgicon
if [ -z "$msgicon" ]; 	then msgicon=4E
fi
read -p "message icon color (00 white 02 green 03 yellow 04 red) "  msgcolor
if [ -z "$msgcolor" ]; 	then msgcolor=04
fi

read -p "melody l=low / 2=mid / 3=high/ 4=silent (1) "  ringtone
if [ -z "$ringtone" ]; 	then ringtonestr=msg_melody_low
fi
if  [ "$ringtone" = 1 ];	then ringtonestr=msg_melody_low
fi
if  [ "$ringtone" = 2 ];	then ringtonestr=msg_melody_mid
fi
if  [ "$ringtone" = 3 ];	then ringtonestr=msg_melody_high
fi
if  [ "$ringtone" = 4 ];	then ringtonestr=msg_melody_silent
fi

read -p "presentation time (30) "  presstime
if [ -z "$presstime" ]; 	then presstime=30
fi

read -p "time to live (600) "  ttltime
if [ -z "$ttltime" ]; 	then ttltime=600
fi

read -p "destination (192.168.178.192) "  destiip
if [ -z "$destiip" ]; 	then destiip=192.168.178.192
fi

destdir=test_mqtt.sh

RANDOM=$$

echo "mosquitto_pub -u as1 --psk-identity as1 --psk 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{\"msgId\":\"1\",\"payload\":{\"amsgId\":\"$RANDOM\",\"sip_id\":\"$sip_id\",\"msg\":{\"server_msg_status\":\"new\",\"prio\":\"$prio\",\"title\":{\"text\":\"Message prio $prio\"},\"status_icon\":\"0D\",\"status_text\":\"accept\",\"ttl\":\"$ttltime\",\"alert_info\":\"$ringtonestr\",\"local_ignore\":\"yes\",\"presentation_time\":\"$presstime\",\"body_starter\":\"Body starter\",\"msg_icon\":{\"value\":\"4F\"},\"body\":[{\"msg_icon\":{\"value\":\"$msgicon\",\"color\":\"$msgcolor\"}},{\"paragraph\":{\"text\":\"Prio $prio message: some longer test to check how long the message can be\",\"blink\":\"no\",\"underline\":\"yes\",\"bold\":\"yes\",\"align\":\"left\"}},{\"paragraph\":{\"text\":\"This text is only shown in detailed view\",\"blink\":\"no\",\"underline\":\"no\",\"bold\":\"no\",\"align\":\"left\"}}],\"reply_options\":[{\"option_id\":\"option_id_1\",\"reply\":{\"text\":\"Msg1SK1\"}},{\"option_id\":\"option_id_2\",\"reply\":{\"text\":\"Msg1SK2\"}},{\"option_id\":\"option_id_3\",\"reply\":{\"text\":\"Msg1SK3\"}}]}}}' -p 8884 -h $destiip"


 echo "echo \$cmd | mosquitto_pub -u as1 --psk-identity as1 --psk 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{\"msgId\":\"1\",\"payload\":{\"amsgId\":\"$RANDOM\",\"sip_id\":\"$sip_id\",\"msg\":{\"server_msg_status\":\"new\",\"prio\":\"$prio\",\"title\":{\"text\":\"Message prio $prio\"},\"status_icon\":\"0D\",\"status_text\":\"accept\",\"ttl\":\"$ttltime\",\"alert_info\":\"$ringtonestr\",\"local_ignore\":\"yes\",\"presentation_time\":\"$presstime\",\"body_starter\":\"Body starter\",\"msg_icon\":{\"value\":\"4F\"},\"body\":[{\"msg_icon\":{\"value\":\"$msgicon\",\"color\":\"$msgcolor\"}},{\"paragraph\":{\"text\":\"Prio $prio message: some longer test to check how long the message can be\",\"blink\":\"no\",\"underline\":\"yes\",\"bold\":\"yes\",\"align\":\"left\"}},{\"paragraph\":{\"text\":\"This text is only shown in detailed view\",\"blink\":\"no\",\"underline\":\"no\",\"bold\":\"no\",\"align\":\"left\"}}],\"reply_options\":[{\"option_id\":\"option_id_1\",\"reply\":{\"text\":\"Msg1SK1\"}},{\"option_id\":\"option_id_2\",\"reply\":{\"text\":\"Msg1SK2\"}},{\"option_id\":\"option_id_3\",\"reply\":{\"text\":\"Msg1SK3\"}}]}}}' -p 8884 -h $destiip" > "$destdir"
 echo "exit" >> "$destdir"
 
 chmod -R 777 "$destdir"
 
 bash "$destdir"


Panel
titleColor#F85404
titleBGColor#F0F0F0
titleSee MQTT response

If you want to see the MQTT communication/response from the N670/N870 you can do this by opening a new command line window on the Linux PC and enter the command.


Code Block
languagebash
mosquitto_sub -u as1 --psk-identity as1 --psk 123456789012345678901234567890ab -t +/+/as1/msg/# -p 8884 -h 192.168.178.190 -v