While trying to get One Touch Recording going in the most non invasive way with Asterisk 16.2.1 and Snom 360 phones, I stumbled across this. Enabling automixmon => *3 in [featuremap] of features.conf works fine, as long as I manually dial *3 during the call (given, I’ve provided “x” option in Dial() command), or assigning DTMF *3 to the record key, and pushing it.
This has the disadvantage of replaying the *3 DTMF sound to the other party, which I would want to suppress. Background: my family is suffering from a coward fraud attack with regular phone calls by constantly changing callers since weeks.
The snom phones have a record button, that sends a related SIP message to Asterisk (v16.2.1), and Asterisk notes this correctly:
[2019-07-04 18:42:57] WARNING[23339][C-00000001]: chan_sip.c:22664 handle_request_info: Recording requested, but no One Touch Monitor registered. (See features.conf)
So this issue boils down to: how can I teach Asterisk to enable recording using this very SIP message?
feature.conf:
[featuremap]
automixmon => *3
extensions.conf:
[extension]
; dial internal extension
; ${ARG1}: extension (eg. PJSIP/123&PJSIP/124)
exten = s,1,NoOp()
same = n,Dial(${ARG1},30,x)
same = n,Hangup()
SIP recording message
[Jul 4 19:14:37] <--- SIP read from UDP:10.0.10.60:2048 --->
[Jul 4 19:14:37] INFO sip:001234567890@10.0.10.2:15060 SIP/2.0
[Jul 4 19:14:37] Via: SIP/2.0/UDP 10.0.10.60:2048;branch=z9hG4bK-jcekbpiscxen;rport
[Jul 4 19:14:37] From: <sip:000413123456@10.0.10.60:2048;line=gk6co7l0>;tag=fqz3z4z6pl
[Jul 4 19:14:37] To: <sip:001234567890@10.0.10.2:15060>;tag=as5aa7eef2
[Jul 4 19:14:37] Call-ID: 4beff379151d97b756fa32af6abeef2c@10.0.10.2:15060
[Jul 4 19:14:37] CSeq: 3 INFO
[Jul 4 19:14:37] Max-Forwards: 70
[Jul 4 19:14:37] Contact: <sip:000413123456@10.0.10.60:2048;line=gk6co7l0>;reg-id=1
[Jul 4 19:14:37] User-Agent: snom360/8.4.35
[Jul 4 19:14:37] Record: on
[Jul 4 19:14:37] Content-Length: 0
[Jul 4 19:14:37]
[Jul 4 19:14:37] <------------->
[Jul 4 19:14:37] --- (11 headers 0 lines) ---
[Jul 4 19:14:37] Receiving INFO!
[2019-07-04 19:14:37] WARNING[23785][C-00000001]: chan_sip.c:22664 handle_request_info: Recording requested, but no One Touch Monitor registered. (See features.conf)