Notification of off hook / not connected status
azrobert:
Physical Interfaces - Phone1 Port -> DigitMap:
Add after the beginning parenthesis: <S9S9:5>|
S9S9 will trigger the hotline after 18 seconds
5 is speed dial #5
Define Speed Dial#5:
sp1(user@192.168.1.100:5060)
SP1 must be defined as a non-GV SIP trunk
Replace 192.168.1.100 with the IP address of your server
5060 is the listening port number
If you don't have a non-GV SP trunk, then define a dummy trunk like this:
Service Providers -> ITSP Profile B -> SIP -> ProxyServer: 127.0.0.1
Voice Services -> SP2 Service -> AuthUserName: (any userid)
Voice Services -> SP2 Service -> X_RegisterEnable: (unchecked)
Voice Services -> SP2 Service -> X_ServProvProfile: B
Tone Settings -> Tone Profile A -> Dial Tone -> TonePattern (default):
350-18,440-18;20
The 20 is the timeout value.
If you want to trigger the hotline after 20 or more seconds, this value must be increased.
n4mwd:
Thanks, So if "s9s9:5" triggers the hotline in 18 seconds, then what is the "20" on the dial tone string for?
Does "s9s9s9s9" work as you predicted to give a longer delay?
What is the mechanism that causes it to repeat dial until the phone is hung up?
I'm thinking of a minimal SIP server emulator on the ESP wifi board should be sufficient to detect it.
azrobert:
The 20 is the Dial Tone timeout value. You will get a Busy when the phone is off-hook for more than the timeout value. This will prevent the Hotline from triggering, so the timeout must be set higher than the Hotline delay.
"S9S9S9S9" will produce a 36 second delay. The "S" must be upper case.
The Hotline is triggered when Dial Tone is produced plus the delay. Your server must hang up and after a few seconds Dial tone will be produced then the Hotline will be triggered again after the delay.
n4mwd:
Thanks, That sounds like it will do exactly what I want.
I am assuming that the "<S9S9:5>|" will not interfere with the regular dial string. The dial strings I use are fairly complicated, but don't rely on inactive timers. I use S0 a lot, but never S9.
I am thinking that it wouldn't need to redial after all. Once it connects to the fake sip server, it will send a SIP BYE to indicate that the phone has been hung up. The ESP could easily set any delay it wants between "The phone is off the hook. Please hang it up." messages.
drgeoff:
Quote from: n4mwd on August 21, 2019, 04:37:27 pm
I am assuming that the "<S9S9:5>|" will not interfere with the regular dial string. The dial strings I use are fairly complicated, but don't rely on inactive timers. I use S0 a lot, but never S9.
AIUI you can only have one <S0:something> entry in a digit map and it will trump any <Sn:something> (n not equal zero) entry in the same map.
Navigation
[0] Message Index
[#] Next page
[*] Previous page