I have a doorbird doorbell and I want to communicate using sip. asterisk provides the websocket. I can call the doorbird from openhab using the websocket provided by asterisk. But I can’t call openhab from the doorbird. My dialplan says to call the endpoints. But asterisk can not make an outgoing call to openhab.
Dialplan
exten => 6004,1,NoOp(Group call from Doorbird)
same => n,Dial(PJSIP/zoiper&PJSIP/notebook&PJSIP/webrtc_client,20)
same => n,Hangup()
here ist the message from asterisk cli
<--- Received SIP request (1568 bytes) from UDP:192.168.2.131:5060 --->
INVITE sip:6004@192.168.2.209 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.131:5060;rport;branch=z9hG4bKPj2b683cf2-7d5a-4dad-80f0-fadf79b4c6ba
Max-Forwards: 70
From: "Doorbird" <sip:doorbird@192.168.2.209>;tag=eddb599f-25ce-4cff-b156-e3e589c1f554
To: sip:6004@192.168.2.209
Contact: "Doorbird" <sip:doorbird@192.168.2.131:5060;ob>
Call-ID: e598245d-c8ec-45dd-9821-7b09a5934a0e
CSeq: 2349 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: DoorBird/000148 (1CCAE371AEDF; BUILD 17415984; DoorBird D2101V)
Authorization: Digest username="doorbird", realm="192.168.2.209", nonce="1757335599/b722364afbe37a7684da804df934ac4b", uri="sip:6004@192.168.2.209", response="8223fd7f3274bde27f7222a95784300c", algorithm=MD5, cnonce="4df2610a-c6bc-4861-93e8-e88b59d7e295", opaque="3bfb1be632147cb1", qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 555
v=0
o=- 3966324398 3966324398 IN IP4 192.168.2.131
s=doorbird
b=AS:84
t=0 0
a=X-nat:0
m=audio 4028 RTP/AVP 0 8 96
c=IN IP4 192.168.2.131
b=TIAS:64000
a=rtcp:4029 IN IP4 192.168.2.131
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
m=video 4030 RTP/AVP 97
c=IN IP4 192.168.2.131
a=rtcp:4031 IN IP4 192.168.2.131
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1; sprop-parameter-sets=Z00AKNoBQBbpUgAAAwDwAAA4QMCAAehIAAiVRe98LwiEag==,aO48gA==
<--- Transmitting SIP response (370 bytes) to UDP:192.168.2.131:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.2.131:5060;rport=5060;received=192.168.2.131;branch=z9hG4bKPj2b683cf2-7d5a-4dad-80f0-fadf79b4c6ba
Call-ID: e598245d-c8ec-45dd-9821-7b09a5934a0e
From: "Doorbird" <sip:doorbird@192.168.2.209>;tag=eddb599f-25ce-4cff-b156-e3e589c1f554
To: <sip:6004@192.168.2.209>
CSeq: 2349 INVITE
Server: AsteriskTZ
Content-Length: 0
-- Executing [6004@internal:1] NoOp("PJSIP/doorbird-0000000d", "Group call from Doorbird") in new stack
-- Executing [6004@internal:2] Dial("PJSIP/doorbird-0000000d", "PJSIP/zoiper&PJSIP/notebook&PJSIP/webrtc_client,20") in new stack
[Sep 8 14:46:39] ERROR[2187]: res_pjsip.c:993 ast_sip_create_dialog_uac: Endpoint 'zoiper': Could not create dialog to invalid URI 'zoiper'. Is endpoint registered and reachable?
[Sep 8 14:46:39] ERROR[2187]: chan_pjsip.c:2708 request: Failed to create outgoing session to endpoint 'zoiper'
[Sep 8 14:46:39] NOTICE[2192][C-00000007]: app_dial.c:2720 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
[Sep 8 14:46:39] ERROR[2187]: res_pjsip.c:993 ast_sip_create_dialog_uac: Endpoint 'notebook': Could not create dialog to invalid URI 'notebook'. Is endpoint registered and reachable?
[Sep 8 14:46:39] ERROR[2187]: chan_pjsip.c:2708 request: Failed to create outgoing session to endpoint 'notebook'
[Sep 8 14:46:39] NOTICE[2192][C-00000007]: app_dial.c:2720 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
-- Called PJSIP/webrtc_client
== Everyone is busy/congested at this time (3:0/1/2)
-- Executing [6004@internal:3] Hangup("PJSIP/doorbird-0000000d", "") in new stack
== Spawn extension (internal, 6004, 3) exited non-zero on 'PJSIP/doorbird-0000000d'
<--- Transmitting SIP response (448 bytes) to UDP:192.168.2.131:5060 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 192.168.2.131:5060;rport=5060;received=192.168.2.131;branch=z9hG4bKPj2b683cf2-7d5a-4dad-80f0-fadf79b4c6ba
Call-ID: e598245d-c8ec-45dd-9821-7b09a5934a0e
From: "Doorbird" <sip:doorbird@192.168.2.209>;tag=eddb599f-25ce-4cff-b156-e3e589c1f554
To: <sip:6004@192.168.2.209>;tag=769f1cfb-dc7b-4654-980f-397b4da7ada0
CSeq: 2349 INVITE
Server: AsteriskTZ
Reason: Q.850;cause=34
Content-Length: 0
<--- Received SIP request (392 bytes) from UDP:192.168.2.131:5060 --->
ACK sip:6004@192.168.2.209 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.131:5060;rport;branch=z9hG4bKPj2b683cf2-7d5a-4dad-80f0-fadf79b4c6ba
Max-Forwards: 70
From: "Doorbird" <sip:doorbird@192.168.2.209>;tag=eddb599f-25ce-4cff-b156-e3e589c1f554
To: sip:6004@192.168.2.209;tag=769f1cfb-dc7b-4654-980f-397b4da7ada0
Call-ID: e598245d-c8ec-45dd-9821-7b09a5934a0e
CSeq: 2349 ACK
Content-Length: 0
‘notebook’ and ‘zoiper’ are switched of. So these endpoints are not registered. But I only see this message from calling the webrtc_client.
-- Called PJSIP/webrtc_client
== Everyone is busy/congested at this time (3:0/1/2)
it looks as if the webrtc_client can not be called
what does this mean ? I don’t see any incoming call at openhab