Try drop the $1 at the end of the command
Hmm, need to try also next week⌠What happens when you just enter python3 ?
Python 3.10.9 (main, Dec 10 2022, 13:54:12) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
*Date and time is waaay off.
I installed Hikvision-SDK-Aarch64 and it works fine
Can I add a second sensor for door lock 2?
I have the hikvision kv8113 model
currently both if I open lock n1 or n2 the sensor goes on
thank you very much Fabio
If i remember correctly, I have created an attribute for that sensor, so you know what door was open
Yes indeed, there is a doorId as attribute, that tells you the door 1 or 2 was open
Try using the other SSH addon, maybe that one doesnât support all imports⌠I use the âssh and webterminalâ addon
Tried this before. with and without $1. Same output as using putty
Itâs the same addon you are using.
I removed line 427 and it shows as registered now.
Under Extensions Settings in ivms it shows registered. Letâs see how it goes now!
I will test it and if it works ok. Otherwise maybe something needs to be defined for entry ârequestsâ.
Maybe you need to install it with pip command, anyway, it works no, good luck with the rest
You are absolutely right! Using pip install requests
script is running perfectly without removing any line.
I am running HAOS and i read somewhere that installation of extra packages using ssh & web terminal do not survive when system reboot⌠I will check it. Also some warnings appear about possible conflict but i suppose that it wonât mess something up. Thankâs again for all these addons you made and your assistance.
Well, you donât need the request anyway for that script, just remove it indeed, no impact
pjsip_custom.conf
[general]
static=yes
[default]
include => parkedcalls
;
exten => 444,1,Park(,s)
;
exten => 555,1,ParkedCall(default,701)
;
exten => _X!,1,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})})
[parkedcallstimeout]
exten => s,1,Hangup()
exten => 10000000005,1,NoOp()
same => n,Progress()
same => n,Set(CALLERID(num)=7000)
same => n,Set(CALLERID(name)=DoorBell)
same => n,Set(DIALGROUP(mygroup,add)=PJSIP/6000)
same => n,Dial(${DIALGROUP(mygroup)},40)
same => n,Hangup()
extensions.conf
[general]
static=yes
[default]
include => parkedcalls
;
exten => 444,1,Park(,s)
;
exten => 555,1,ParkedCall(default,701)
;
exten => _X!,1,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})})
[parkedcallstimeout]
exten => s,1,Hangup()
#### Setup this in extensions.conf:
exten => 10000000005,1,NoOp()
same => n,Progress()
same => n,Set(CALLERID(num)=7000)
same => n,Set(CALLERID(name)=DoorBell)
same => n,Set(DIALGROUP(mygroup,add)=PJSIP/6000)
same => n,Dial(${DIALGROUP(mygroup)},40)
same => n,Hangup()
Asterisk Log
[Jan 15 05:30:23] WARNING[457][C-00000002]: pjsip/dialplan_functions.c:1018 pjsip_acf_dial_contacts_read: Specified endpoint '10000000005' was not found
[Jan 15 05:30:23] -- Executing [10000000005@default:1] Dial("PJSIP/hikvision-00000001", "") in new stack
[Jan 15 05:30:23] -- No devices or endpoints to dial (technology/resource)
[Jan 15 05:30:23] -- Auto fallthrough, channel 'PJSIP/hikvision-00000001' status is 'CHANUNAVAIL'
What am i doing wrong?
If i call from linphone to station itâs ok.
[Jan 15 05:48:13] -- Executing [7000@default:1] Dial("PJSIP/6000-00000002", "PJSIP/7000/sip:[email protected]:52153") in new stack
[Jan 15 05:48:13] -- Called PJSIP/7000/sip:[email protected]:52153
[Jan 15 05:48:13] -- PJSIP/7000-00000003 is ringing
[Jan 15 05:48:13] -- PJSIP/7000-00000003 answered PJSIP/6000-00000002
[Jan 15 05:48:13] -- Channel PJSIP/7000-00000003 joined 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:13] -- Channel PJSIP/6000-00000002 joined 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:19] -- Channel PJSIP/6000-00000002 left 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:19] == Spawn extension (default, 7000, 1) exited non-zero on 'PJSIP/6000-00000002'
[Jan 15 05:48:19] -- Channel PJSIP/7000-00000003 left 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
Yes, pay attention on your dialplan file, you moved out that 1000000005 section out of the default section⌠Place it above the parkedcalltimeout⌠Thatâs why itâs not finding anything
Great! Now its working but i have one way audio (locally). I ll try to figure this out.
Use the trunk below, based on IP auth, this one is different, there is no need for user/pass authentication now, since the script is doing the auth
#### Setup this in pjsip_custom.conf:
[hikvision]
type=aor
contact=sip:[email protected]:5060
[hikvision]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264,vp8
aors=hikvision
direct_media=no
[hikvision]
type=identify
endpoint=hikvision
match=192.168.0.71
I think that you may have to change the contact=sip from 10000000005 to 10010100000 for those who use âOption 2 based on older indoor panelsâ.
Ah ok, that can be indeed true, I will change the readme tomorrow for users using option 2âŚ
Hey, I changed the contact sip in the readmeâŚ
If you see the call coming in, does the contact sip IP need to be the indoor or outdoor? I have indoor in the readme⌠I use option 1 :+)