SIP keep connection alive

So I have a SIP call between two endpoints, a mobile phone and a alarm device. The alarm device is configured so it has a connection time of (default) 150 seconds.

From the documentation (which can be found here: caretech.se/wp-content/uploa … _En_08.pdf) it says: “Care IP automatically
disconnects the call after that the programmed connection time has elapsed
(default set to 150 sec), this time can be extended with the ”4” key on the
telephone or by a command from the alarm centre.”

So, pressing the “4” key on the telephone during the call does extend the connection time indeed, but I don’t want to do this. I want Asterisk to keep this connection time alive. I tried using ‘rtpkeepalive’, ‘qualify=yes’, ‘canreinvite=yes’ in my sip.conf but nothing seems to work.

Is there a way to simulate such a key press “4” (or any other number) by Asterisk or something?
Thanks in advance, and if you need more information, tell me!

Use an AMI application to send the DTMF periodically.

There may be other ways, but they will all involve going beyond the dialplan.

[quote=“david55”]Use an AMI application to send the DTMF periodically.

There may be other ways, but they will all involve going beyond the dialplan.[/quote]
Thanks David for your reply, I will look into that.

I also really don’t know if it is necessary to play such a DTMF tone (I really don’t want to hear the tone itself on both endpoints), but I also don’t know if there are other “signals” where the alarm device will respond to.

If you have other suggestions, I would really appreciate it!

The tone will only be sent in one direction, although there may be some echo.

The keepalive convention is dictated by the remote system.