Doorbird connection to asterix as SIP client

I have a doorbird and would like to connect the SIP interface of the doorbird to asterisk.

Is there an example how to define the pjsip.conf and extension.conf available ?

On Tuesday 12 August 2025 at 19:42:50, rebell21 via Asterisk Community wrote:

I have a doorbird and would like to connect the SIP interface of the
doorbird to asterisk.

Is there an example how to define the pjsip.conf and extension.conf
available ?

https://www.doorbird.com/downloads/connect/cnt_asterisk_en.pdf uses the old
sip.conf from earlier versions of Asterisk, but should be easily adaptable to
PJSIP.

Antony.


What do you get when you cross a joke with a rhetorical question?

I don’t get it running. I could define an endpoint/user but it does not show any activity. It doesn’t register to asterisk.

In the asterisk CLI it looks like this


-- Added contact 'sip:doorbird@192.168.2.131:5060;ob' to AOR 'doorbird' with expiration of 300 seconds
  == Endpoint doorbird is now Reachable

asterisk-PBX*CLI> pjsip show registrations
No objects found.

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                                           5
      Contact:  doorbird/sip:doorbird@192.168.2.131:5060;o f5f5dd59f7 NonQual         nan


Objects found: 1

asterisk-PBX*CLI> 

The console output shows an inbound registration. The “pjsip show registrations” CLI command is OUTBOUND registrations. The “Added contact” is the inbound registration, and it also shows as a Contact in “pjsip show endpoints”.

ok, but when I put another endpoint (zoiper softphone) into the pjsip.conf and configure the softphone , it tries tro register but is not successful

istributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:zoiper@debian>' failed for '192.168.2.175:35552' (callid: uuW_U9TN-Uu8CdrCtEku9Q..) - Failed to authenticate
[Aug 13 13:19:13] NOTICE[2491]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:zoiper@debian>' failed for '192.168.2.175:35552' (callid: ac_A08wcuxVIU8PL4xXOOg..) - No matching endpoint found
[Aug 13 13:19:13] NOTICE[2491]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:zoiper@debian>' failed for '192.168.2.175:35552' (callid: ac_A08wcuxVIU8PL4xXOOg..) - No matching endpoint found
[Aug 13 13:19:13] NOTICE[2491]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:zoiper@debian>' failed for '192.168.2.175:35552' (callid: ac_A08wcuxVIU8PL4xXOOg..) - Failed to authenticate

You either put it in and did not reload the configuration, or your configuration is invalid (which would result in a message upon loading the configuration).

You haven’t actually shown the configuration.


asterisk-PBX*CLI> pjsip reload
Module ‘res_pjsip.so’ reloaded successfully.
Module ‘res_pjsip_authenticator_digest.so’ reloaded successfully.
Module ‘res_pjsip_endpoint_identifier_ip.so’ reloaded successfully.
Module ‘res_pjsip_mwi.so’ reloaded successfully.
Module ‘res_pjsip_notify.so’ reloaded successfully.
Module ‘res_pjsip_outbound_publish.so’ reloaded successfully.
Module ‘res_pjsip_publish_asterisk.so’ reloaded successfully.
Module ‘res_pjsip_outbound_registration.so’ reloaded successfully.
Reloading module ‘res_pjsip.so’ (Basic SIP resource)
[Aug 13 13:27:22] NOTICE[2536]: res_pjsip/config_transport.c:768 transport_apply: Transport ‘transport-udp’ is not fully reloadable, not reloading: protocol, bind, TLS (everyth
ing but certificate and private key if filename is unchanged), TCP, ToS, or CoS options.
[Aug 13 13:27:22] NOTICE[2536]: sorcery.c:1348 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values
Reloading module ‘res_pjsip_authenticator_digest.so’ (PJSIP authentication resource)
Reloading module ‘res_pjsip_endpoint_identifier_ip.so’ (PJSIP IP endpoint identifier)
Reloading module ‘res_pjsip_mwi.so’ (PJSIP MWI resource)
Reloading module ‘res_pjsip_notify.so’ (CLI/AMI PJSIP NOTIFY Support)
Reloading module ‘res_pjsip_outbound_publish.so’ (PJSIP Outbound Publish Support)
Reloading module ‘res_pjsip_publish_asterisk.so’ (PJSIP Asterisk Event PUBLISH Support)
Reloading module ‘res_pjsip_outbound_registration.so’ (PJSIP Outbound Registration Support)

sorry you are right. After another reload, it shows

    -- Added contact 'sip:zoiper@192.168.2.175:35552;transport=UDP;rinstance=2c1c830746b0d539' to AOR 'zoiper' with expiration of 60 seconds
  == Endpoint zoiper is now Reachable

but when I try to call the doorbird (extension 6001) from the zoiper phone (extension 6002) I get the error message

    -- Executing [6001@internal:1] Dial("PJSIP/zoiper-00000001", "SIP/6001,20") in new stack
[Aug 13 13:31:47] WARNING[2565][C-00000002]: channel.c:6204 request_channel: No channel type registered for 'SIP'
[Aug 13 13:31:47] NOTICE[2565][C-00000002]: app_dial.c:2720 dial_exec_full: Unable to create channel of type 'SIP' (cause 66 - Channel not implemented)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'PJSIP/zoiper-00000001' status is 'CHANUNAVAIL'

You’ve configured the dialplan to call a chan_sip device, not a PJSIP device. It should dial “PJSIP/6001” and not “SIP/6001”.

I have changed it in the dialplan. But the call doesn’t go through

-- Executing [6001@internal:1] Dial("PJSIP/zoiper-00000007", "PJSIP/6001,20") in new stack
    -- Called PJSIP/6001
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'PJSIP/zoiper-00000007' status is 'CHANUNAVAIL'

In zoiper I see

call to 6001 rejected
service unavailable (503)

Okay, do basic troubleshooting. Go through your assumptions and verify that they are true. For example:

Was 6001 registered at the time you placed the call?

You are right. But why can’t the doorbird not register again ?

[Aug 13 15:00:35] NOTICE[3168]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '"Doorbird" <sip:doorbird@192.168.2.209>' failed for '192.168.2.131:5060' (callid: 71b8d937-0004-4435-a0ec-b1716e489b91) - No matching endpoint found
[Aug 13 15:00:35] NOTICE[3168]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '"Doorbird" <sip:doorbird@192.168.2.209>' failed for '192.168.2.131:5060' (callid: 71b8d937-0004-4435-a0ec-b1716e489b91) - No matching endpoint found
[Aug 13 15:00:35] NOTICE[3168]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '"Doorbird" <sip:doorbird@192.168.2.209>' failed for '192.168.2.131:5060' (callid: 71b8d937-0004-4435-a0ec-b1716e489b91) - No matching endpoint found
[Aug 13 15:00:35] NOTICE[3168]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '"Doorbird" <sip:doorbird@192.168.2.209>' failed for '192.168.2.131:5060' (callid: 71b8d937-0004-4435-a0ec-b1716e489b91) - Failed to authenticate
    -- Removed contact 'sip:doorbird@192.168.2.131:5060;ob' from AOR 'doorbird' due to expiration
  == Contact doorbird/sip:doorbird@192.168.2.131:5060;ob has been deleted
  == Endpoint 6001 is now Unreachable

You’ve named the endpoint “6001”. The doorbird is trying to use the name “doorbird”.

I have two internal stations

  1. My Doorbird
  2. A zoiper softphone on debian 12 (that seems to work and seems tp be registered)

this is my pjsip.conf

  GNU nano 7.2                                                                             pjsip.conf                                                                                      
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
 
; Basic templates, they will be copied for each user

[endpoint_basic](!)
type=endpoint         ; endpoint (phone/rpi/pc...)
context=internal      ; uses the dial plan defined in extensions.conf
disallow=all          ; disabling all audio codecs
allow=ulaw            ; except the ULAW codec
allow=alaw            ; and the ALAW codec
language=de

[authentication](!)
type=auth             ; type of section: authentication
auth_type=userpass    ; password authentication

[aor_template](!)
type=aor              ; find out where the endpoint can be contacted
max_contacts=1

; Definitions of user accounts associated with equipment

[doorbird](endpoint_basic)
auth=doorbird
aors=doorbird
callerid="Doorbird" <6001> ; to have the name of the caller displayed
[doorbird](authentication)
password=doorbird
username=doorbird
[doorbird](aor_template)

[zoiper](endpoint_basic)
auth=zoiper
aors=zoiper
callerid="Zoiper" <6002>
[zoiper](authentication)
password=zoiper
username=zoiper
[zoiper](aor_template)


this is my extension.conf

[internal]
exten => _6XXX,1,Dial(PJSIP/${EXTEN},20)

I would like to call from the zoiper phone the doorbird and I want to call from the doorbird my zioper phone

what is missing ?

Do you understand what this does/means, or dialplan in general?

I have learned that it says which extension can be reached how and from whom

can you recommend a good introduction into asterisk for version asterisk 22

youtube

pdf Documents?

I got it up and running. Can call the doorbird with zoiper

my extensions.conf

exten => 6001,1,Dial(PJSIP/doorbird,20)
exten => 6001,2,Hangup