Call from doorbird to websocket endpoint fails

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

Is it registered? Is it reachable?

I don’t see the webrtc_client when I say “pjsip show registrations”. The websocket connection is open. Do I need an outbound registration für the webrtc_client endpoint ? How can I register it ?

It would be in “pjsip show contacts” or under the endpoint in “pjsip show endpoints”. If there is no Contact, or it is unreachable, then it can’t be called.

this is my endpoint

pjsip show endpoints

Endpoint:  webrtc_client                                        Not in use    0 of inf
     InAuth:  webrtc_client/webrtc_client
        Aor:  webrtc_client                                      5
      Contact:  webrtc_client/sip:webrtc_client@dynamic      b2e8489254 NonQual         nan
   Identify:  webrtc_client/webrtc_client
        Match: 192.168.2.1/32


asterisk-PBX*CLI> pjsip show contacts

  Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

  Contact:  doorbird/sip:doorbird@192.168.2.131:5060;ob    f5f5dd59f7 NonQual         nan
  Contact:  speedport/sip:192.168.2.1:5060                 45977b638f NonQual         nan
  Contact:  webrtc_client/sip:webrtc_client@dynamic        c8cb8ced14 NonQual         nan

Objects found: 3

asterisk-PBX*CLI> 

asterisk-PBX*CLI> pjsip show endpoints

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
    I/OAuth:  <AuthId/UserName...........................................................>
        Aor:  <Aor............................................>  <MaxContact>
      Contact:  <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
  Transport:  <TransportId........>  <Type>  <cos>  <tos>  <BindAddress..................>
   Identify:  <Identify/Endpoint.........................................................>
        Match:  <criteria.........................>
    Channel:  <ChannelId......................................>  <State.....>  <Time.....>
        Exten: <DialedExten...........>  CLCID: <ConnectedLineCID.......>
==========================================================================================

 Endpoint:  doorbird/6001                                        Not in use    0 of inf
     InAuth:  doorbird/doorbird
        Aor:  doorbird                                           1
      Contact:  doorbird/sip:doorbird@192.168.2.131:5060;o f5f5dd59f7 NonQual         nan

 Endpoint:  notebook/6003                                        Unavailable   0 of inf
     InAuth:  notebook/notebook
        Aor:  notebook                                           1

 Endpoint:  speedport/**71                                       Not in use    0 of inf
    OutAuth:  speedport/nutzer-1@speedport.ip
        Aor:  speedport                                          0
      Contact:  speedport/sip:192.168.2.1:5060             45977b638f NonQual         nan
   Identify:  speedport/speedport
        Match: 192.168.2.1/32

 Endpoint:  webrtc_client                                        Not in use    0 of inf
    OutAuth:  webrtc_client/webrtc_client
     InAuth:  webrtc_client/webrtc_client
        Aor:  webrtc_client                                      5
      Contact:  webrtc_client/sip:webrtc_client@dynamic    c8cb8ced14 NonQual         nan
   Identify:  webrtc_client/webrtc_client
        Match: 192.168.2.1/32

 Endpoint:  zoiper/6002                                          Unavailable   0 of inf
     InAuth:  zoiper/zoiper
        Aor:  zoiper                                             1


Objects found: 5

asterisk-PBX*CLI> 

Seems like you’re masking everything out. Maybe a 24 bit mask would work better?

That’s a valid way of specifying an address, rather than a network, and looks right in this context.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.