Registration of the pjsip trunk to Sip Server german Telekom rejected

Hello,
I just can not manage to register my pjsip-trunk on the sip trunk of the german telecom.
A pjsip show registrations shows the following:

FritzBox19/sip:192…168…178…1:5060 FritzBox19 Registered
FritzBox90/sip:192…168…178…1:5060 FritzBox90 Registered
FritzBox91/sip:192…168…178…1:5060 FritzBox91 Registered
FritzBox92/sip:192…168…178…1:5060 FritzBox92 Registered
FritzBox95/sip:192…168…178…1:5060 FritzBox95 Registered
Sip_Trunk_Telekom/sip:sip-trunk…telekom…de:5060 Sip_Trunk_Telekom Rejected
sipgate/sip:sipconnect…sipgate…de:5060 sipgate Registered

In the CLI I get the following error message:

[2018-09-24 16:00:35] ERROR[21461]: res_pjsip…c:3627 create_out_of_dialog_request: Unable to apply outbound proxy on request OPTIONS to endpoint Sip_Trunk_Telekom as outbound proxy URI ‘reg…sip-trunk…telekom…de’ is not valid
[2018-09-24 16:00:35] ERROR[21461]: res_pjsip/pjsip_options…c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:+49XXXXXXXXXXX@sip-trunk…telekom…de:5060 on AOR Sip_Trunk_Telekom

The SRV lookup also seems to be out of tune with the outbound proxy:

nslookup -querytype=SRV sip-trunk…telekom…de
Server: 127…0…0…1
Address: 127…0…0…1#53

Non-authoritative answer:
*** Can’t find sip-trunk…telekom…de: No answer

Authoritative answers can be found from:
sip-trunk…telekom…de
origin = dns00…dns…t-ipnet…de
mail addr = hostmaster…t-ipnet…net
serial = 2018092000
refresh = 1800
retry = 900
expire = 7257600
minimum = 3600

nslookup -querytype=SRV reg…sip-trunk…telekom…de
Server: 127…0…0…1
Address: 127…0…0…1#53

Non-authoritative answer:
*** Can’t find reg…sip-trunk…telekom…de: No answer

Authoritative answers can be found from:
sip-trunk…telekom…de
origin = dns00…dns…t-ipnet…de
mail addr = hostmaster…t-ipnet…net
serial = 2018092000
refresh = 1800
retry = 900
expire = 7257600
minimum = 3600

I tried it with Freepbx 14 / Asterisk 13 on the Raspberry and Freepbx 14 / Asterisk 15 with the
current download image of Sangoma.
On a website of the Telekom is written that Sangoma Freepbx has successfully tested on the Sip trunk of German Telekom…
So it has to work somehow
What can this be?
Urgently need your help.

Best regards
Jockel

It appears that you must use TCP and enable DNS SRV lookups.
See https://www.onlinekosten.de/forum/showthread.php?t=148511 .

If you still have trouble, post your trunk settings (except for username, password, etc.).

I already use TCP. But where can I activate the SRV lookup in FreePBX for a pjsip-trunk?

Here are my trunk settings:

[global]
type=global
user_agent=FPBX-14…0…3…1(15…5…0)

[Sip_Trunk_Telekom]
type=aor
qualify_frequency=60
contact=sip:my_registration_number@sip-trunk…telekom…de:5060

[Sip_Trunk_Telekom]
type=auth
auth_type=userpass
password=YYYYYYYYY
username=my_registration_number

[Sip_Trunk_Telekom]
type=endpoint
transport=0…0…0…0-tcp
context=from-pstn
disallow=all
allow=ulaw,alaw,gsm,g726,g722
aors=Sip_Trunk_Telekom
language=en
outbound_auth=Sip_Trunk_Telekom
from_domain=sip-trunk…telekom…de
from_user=my_registration_number
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
trust_id_inbound=no
t38_udptl_nat=no
direct_media=no
rewrite_contact=yes
rtp_symmetric=yes
dtmf_mode=auto

[Sip_Trunk_Telekom]
type=identify
endpoint=Sip_Trunk_Telekom
match=217…0…0…0/13
[Sip_Trunk_Telekom]
type=registration
transport=0…0…0…0-tcp
outbound_auth=Sip_Trunk_Telekom
retry_interval=60
max_retries=10
expiration=480
line=yes
endpoint=Sip_Trunk_Telekom
auth_rejection_permanent=no
contact_user=my_registration_number
server_uri=sip:sip-trunk…telekom…de:5060
client_uri=sip:my_registration_number@sip-trunk…telekom…de:5060

pjsip…transports_custom…conf

[0…0…0…0-udp]
type=transport
protocol=udp
bind=0…0…0…0:5060
external_media_address=external_IP
external_signaling_address=external_IP
allow_reload=yes
tos=cs3
cos=3
local_net=local_net/24
local_net=local_net/24

[0…0…0…0-tcp]
type=transport
protocol=tcp
bind=0…0…0…0:5060
external_media_address=external_IP
external_signaling_address=external_IP
allow_reload=yes
tos=cs3
cos=3
local_net=local_net/24
local_net=local_net/24

[0…0…0…0-tls]
type=transport
protocol=tls
bind=0…0…0…0:5061
external_media_address=external_IP
external_signaling_address=external_IP
ca_list_file=/etc/pki/tls/certs/ca-bundle…crt
method=default
allow_reload=yes
tos=cs3
cos=3
local_net=local_net/24

Use Asterisk 15 and it’s enabled by default:
https://wiki.freepbx.org/display/PPS/Changing+Major+Asterisk+Versions+on+the+Fly

As I have already written in my first post, I have tried it with asterisk 15. Unfortunately, I also get the same error. My registration is also rejected there.

What else could be the reason. If Sangoma FreePBX has successfully tested on the Sip trunk of German Telekom, then there must be a configuration that works well with me.
Has anyone yet registered a pjsip-Trunk successfully on the Sip trunk of German Telekom?

“unable to apply outbound proxy” sounds like one of your settings in the trunk configuration is incorrect. I don’t use PJ-SIP, so I can’t be more help than that, but one of the PJ-SIP-trained killers that hangs out here should be able to do something with that specific error…

I would be very happy if someone could help me.

For the Telekom trunk:

PJSIP Settings -> Advanced -> Outbound Proxy:
sip:reg.sip-trunk.telekom.de

If you still have trouble, post relevant log of failed registration.

Halleo Steward1,
Thank you for your suggestion.
I made the appropriate entry in Outbound Proxy. Unfortunately, without success.
Here is my log. The interesting entries are more likely to be found at the end.

[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip.so’ (Basic SIP resource)
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_endpoint_identifier_ip.c: Identify ‘92-identify’ is not configured to match anything.
[2018-09-25 12:39:15] ERROR[16608] res_sorcery_config.c: Could not create an object of type ‘identify’ with id ‘92-identify’ from configuration file ‘pjsip.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_endpoint_identifier_ip.c: Identify ‘91-identify’ is not configured to match anything.
[2018-09-25 12:39:15] ERROR[16608] res_sorcery_config.c: Could not create an object of type ‘identify’ with id ‘91-identify’ from configuration file ‘pjsip.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_endpoint_identifier_ip.c: Identify ‘95-identify’ is not configured to match anything.
[2018-09-25 12:39:15] ERROR[16608] res_sorcery_config.c: Could not create an object of type ‘identify’ with id ‘95-identify’ from configuration file ‘pjsip.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_endpoint_identifier_ip.c: Identify ‘90-identify’ is not configured to match anything.
[2018-09-25 12:39:15] ERROR[16608] res_sorcery_config.c: Could not create an object of type ‘identify’ with id ‘90-identify’ from configuration file ‘pjsip.conf’
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] NOTICE[16608] sorcery.c: Type ‘system’ is not reloadable, maintaining previous values
[2018-09-25 12:39:15] ERROR[16608] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_outbound_publish.so’ (PJSIP Outbound Publish Support)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_xmpp.so’ (Asterisk XMPP Interface)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_crypto.so’ (Cryptographic Digital Signatures)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_ari.so’ (Asterisk RESTful Interface)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_fax.so’ (Generic FAX Applications)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_parking.so’ (Call Parking Resource)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/71/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/72/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/73/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/74/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/75/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/76/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/77/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/78/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] pbx.c: Remove parkedcalls/70/1, registrar=res_parking; con=((nil)); con->root=(nil)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_config_curl.so’ (Realtime Curl configuration)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_config_mysql.so’ (MySQL RealTime Configuration Driver)
[2018-09-25 12:39:15] VERBOSE[4167] res_config_mysql.c: MySQL RealTime reloaded.
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_authenticator_digest.so’ (PJSIP authentication resource)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_endpoint_identifier_ip.so’ (PJSIP IP endpoint identifier)
[2018-09-25 12:39:15] ERROR[4167] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_musiconhold.so’ (Music On Hold Resource)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_rtp_asterisk.so’ (Asterisk RTP Stack)
[2018-09-25 12:39:15] VERBOSE[4167] res_rtp_asterisk.c: RTP Allocating from port range 10000 → 20000
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_publish_asterisk.so’ (PJSIP Asterisk Event PUBLISH Support)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_mwi.so’ (PJSIP MWI resource)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘chan_iax2.so’ (Inter Asterisk eXchange (Ver 2))
[2018-09-25 12:39:15] NOTICE[4167] iax2/provision.c: No IAX provisioning configuration found, IAX provisioning disabled.
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘chan_motif.so’ (Motif Jingle Channel Driver)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘chan_sip.so’ (Session Initiation Protocol (SIP))
[2018-09-25 12:39:15] VERBOSE[12026] chan_sip.c: Reloading SIP
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_outbound_registration.so’ (PJSIP Outbound Registration Support)
[2018-09-25 12:39:15] VERBOSE[12026] netsock2.c: Using SIP TOS bits 96
[2018-09-25 12:39:15] VERBOSE[12026] netsock2.c: Using SIP CoS mark 4
[2018-09-25 12:39:15] ERROR[4167] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_pjsip_notify.so’ (CLI/AMI PJSIP NOTIFY Support)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘res_adsi.so’ (ADSI Resource)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘app_confbridge.so’ (Conference Bridge Application)
[2018-09-25 12:39:15] NOTICE[4167] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘cel_manager.so’ (Asterisk Manager Interface CEL Backend)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘cel_odbc.so’ (ODBC CEL backend)
[2018-09-25 12:39:15] VERBOSE[4167] cel_odbc.c: Found CEL table cel@asteriskcdrdb.
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘codec_speex.so’ (Speex Coder/Decoder)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘app_voicemail.so’ (Comedian Mail (Voicemail System))
[2018-09-25 12:39:15] WARNING[4167] app_voicemail.c: maxsilence should be less than minsecs or you may get empty messages
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘app_playback.so’ (Sound File Playback Application)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘codec_opus_open_source.so’ (Opus Coder/Decoder)
[2018-09-25 12:39:15] VERBOSE[4167] loader.c: Reloading module ‘app_queue.so’ (True Call Queueing)
[2018-09-25 12:39:15] NOTICE[4167] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
[2018-09-25 12:39:15] VERBOSE[4167] asterisk.c: Remote UNIX connection disconnected
[2018-09-25 12:39:39] WARNING[21267] res_pjsip_outbound_registration.c: Fatal response ‘403’ received from ‘sip:sip-trunk.telekom.de:5060’ on registration attempt to ‘sip:[email protected]:5060’, stopping outbound registration

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