[SOLVED] SIP-Trunk CompanyFlex Telekom does not work

Hi

i am trying to register at a Telekom CompanyFlex SIP-Trunk (german ISP).

But it does not work.

I hope somebody can gelp me.

Greetings Jens

full log:

[2021-12-16 22:19:35] DEBUG[2477] loader.c: Loader time with AST_XML_DOCS: 1.528325
[2021-12-16 22:19:35] DEBUG[14271] manager.c: Examining AMI event:
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
Uptime: 1
LastReload: 1


[2021-12-16 22:19:35] DEBUG[14291] manager.c: Examining AMI event:
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
Uptime: 1
LastReload: 1


[2021-12-16 22:19:35] VERBOSE[2477] asterisk.c: Asterisk Ready.
[2021-12-16 22:19:36] DEBUG[14336] manager.c: Running action 'Login'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip_outbound_registration.c: Outbound REGISTER attempt 1 to 'sip:tel.t-online.de' with client 'sip:[email protected]'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:19:41] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:19:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] All parallel queries completed
[2021-12-16 22:19:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:19:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Resolution completed - 0 viable targets
[2021-12-16 22:19:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a8000b3a8] Invoking user callback with '0' addresses
[2021-12-16 22:19:42] DEBUG[14279] res_pjsip_outbound_registration.c: Received REGISTER response 503(No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC))
[2021-12-16 22:19:42] DEBUG[14279] res_pjsip_outbound_registration.c: Processing REGISTER response 503 from server 'sip:tel.t-online.de' for client 'sip:[email protected]'
[2021-12-16 22:19:42] DEBUG[14279] res_pjsip_outbound_registration.c: Scheduling outbound registration to server 'sip:tel.t-online.de' from client 'sip:[email protected]' in 60 seconds
[2021-12-16 22:19:42] WARNING[14279] res_pjsip_outbound_registration.c: No response received from 'sip:tel.t-online.de' on registration attempt to 'sip:[email protected]', retrying in '60'
[2021-12-16 22:19:42] DEBUG[14291] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:19:42] DEBUG[14271] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:19:44] DEBUG[14345] manager.c: Running action 'Login'
[2021-12-16 22:19:47] DEBUG[14352] manager.c: Running action 'Login'
[2021-12-16 22:19:51] DEBUG[14359] manager.c: Running action 'Login'
[2021-12-16 22:19:54] DEBUG[14232] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:19:54] DEBUG[14218] threadpool.c: Destroying worker thread 4
[2021-12-16 22:19:54] DEBUG[14230] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:19:54] DEBUG[14231] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:19:54] DEBUG[14218] threadpool.c: Destroying worker thread 2
[2021-12-16 22:19:54] DEBUG[14218] threadpool.c: Destroying worker thread 3
[2021-12-16 22:19:54] DEBUG[14366] manager.c: Running action 'Login'
[2021-12-16 22:19:55] DEBUG[14228] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:19:55] DEBUG[14229] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:19:55] DEBUG[14218] threadpool.c: Destroying worker thread 0
[2021-12-16 22:19:55] DEBUG[14218] threadpool.c: Destroying worker thread 1
[2021-12-16 22:19:57] DEBUG[14373] manager.c: Running action 'Login'
[2021-12-16 22:20:00] DEBUG[14380] manager.c: Running action 'Login'
[2021-12-16 22:20:01] DEBUG[14421] manager.c: Running action 'Login'
[2021-12-16 22:20:01] DEBUG[14422] manager.c: Running action 'Login'
[2021-12-16 22:20:04] DEBUG[14444] manager.c: Running action 'Login'
[2021-12-16 22:20:04] DEBUG[14292] res_pjsip_registrar.c: Woke up at 1639689604 Interval: 30
[2021-12-16 22:20:04] DEBUG[14292] res_pjsip_registrar.c: Expiring 0 contacts
[2021-12-16 22:20:06] DEBUG[14453] manager.c: Running action 'Login'
[2021-12-16 22:20:07] DEBUG[14469] manager.c: Running action 'Login'
[2021-12-16 22:20:10] DEBUG[14476] manager.c: Running action 'Login'
[2021-12-16 22:20:12] DEBUG[14483] manager.c: Running action 'Login'
[2021-12-16 22:20:13] DEBUG[14489] manager.c: Running action 'Login'
[2021-12-16 22:20:16] DEBUG[14496] manager.c: Running action 'Login'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying all contacts on AOR 'company_flex'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying contact 'company_flex@@0f07ea2f28dd22e113c39120570595c2' on AOR 'company_flex'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: Wrapper created
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: Set timer to 3000 msec
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] All parallel queries completed
[2021-12-16 22:20:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Resolution completed - 0 viable targets
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed6f8] Invoking user callback with '0' addresses
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: PJSIP tsx response received
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: Cancelling timer
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: Timer cancelled
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: Callbacks executed
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip.c: 0x7f1a8000b8f0: wrapper destroyed
[2021-12-16 22:20:18] VERBOSE[14279] res_pjsip/pjsip_options.c: Contact company_flex/sip:[email protected] is now Unreachable. RTT: 0.000 msec
[2021-12-16 22:20:18] DEBUG[14279] res_pjsip/pjsip_options.c: AOR 'company_flex' now has 0 available contacts
[2021-12-16 22:20:18] DEBUG[14271] manager.c: Examining AMI event:
Event: ContactStatus
Privilege: system,all
URI: sip:[email protected]
ContactStatus: Unreachable
AOR: company_flex
EndpointName: company_flex
RoundtripUsec: 0


[2021-12-16 22:20:18] DEBUG[14291] manager.c: Examining AMI event:
Event: ContactStatus
Privilege: system,all
URI: sip:[email protected]
ContactStatus: Unreachable
AOR: company_flex
EndpointName: company_flex
RoundtripUsec: 0


[2021-12-16 22:20:20] DEBUG[14503] manager.c: Running action 'Login'
[2021-12-16 22:20:21] DEBUG[14512] manager.c: Running action 'Login'
[2021-12-16 22:20:21] DEBUG[14531] manager.c: Running action 'Login'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14512] manager.c: Running action 'Command'
[2021-12-16 22:20:22] DEBUG[14580] manager.c: Running action 'Login'
[2021-12-16 22:20:23] DEBUG[14596] manager.c: Running action 'Login'
[2021-12-16 22:20:26] DEBUG[14603] manager.c: Running action 'Login'
[2021-12-16 22:20:29] DEBUG[14610] manager.c: Running action 'Login'
[2021-12-16 22:20:32] DEBUG[14617] manager.c: Running action 'Login'
[2021-12-16 22:20:34] DEBUG[14281] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:20:34] DEBUG[14263] threadpool.c: Destroying worker thread 7
[2021-12-16 22:20:34] DEBUG[14282] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:20:34] DEBUG[14263] threadpool.c: Destroying worker thread 8
[2021-12-16 22:20:34] DEBUG[14283] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:20:34] DEBUG[14263] threadpool.c: Destroying worker thread 9
[2021-12-16 22:20:34] DEBUG[14286] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:20:34] DEBUG[14219] threadpool.c: Destroying worker thread 11
[2021-12-16 22:20:34] DEBUG[14292] res_pjsip_registrar.c: Woke up at 1639689634 Interval: 30
[2021-12-16 22:20:34] DEBUG[14292] res_pjsip_registrar.c: Expiring 0 contacts
[2021-12-16 22:20:34] DEBUG[14285] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:20:34] DEBUG[14219] threadpool.c: Destroying worker thread 10
[2021-12-16 22:20:36] DEBUG[14624] manager.c: Running action 'Login'
[2021-12-16 22:20:39] DEBUG[14631] manager.c: Running action 'Login'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip_outbound_registration.c: Outbound REGISTER attempt 2 to 'sip:tel.t-online.de' with client 'sip:[email protected]'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] All parallel queries completed
[2021-12-16 22:20:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:20:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Resolution completed - 0 viable targets
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ecd78] Invoking user callback with '0' addresses
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip_outbound_registration.c: Received REGISTER response 503(No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC))
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip_outbound_registration.c: Processing REGISTER response 503 from server 'sip:tel.t-online.de' for client 'sip:[email protected]'
[2021-12-16 22:20:42] DEBUG[14279] res_pjsip_outbound_registration.c: Scheduling outbound registration to server 'sip:tel.t-online.de' from client 'sip:[email protected]' in 60 seconds
[2021-12-16 22:20:42] WARNING[14279] res_pjsip_outbound_registration.c: No response received from 'sip:tel.t-online.de' on registration attempt to 'sip:[email protected]', retrying in '60'
[2021-12-16 22:20:42] DEBUG[14271] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:20:42] DEBUG[14291] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:20:42] DEBUG[14638] manager.c: Running action 'Login'
[2021-12-16 22:20:45] DEBUG[14645] manager.c: Running action 'Login'
[2021-12-16 22:20:49] DEBUG[14652] manager.c: Running action 'Login'
[2021-12-16 22:20:52] DEBUG[14659] manager.c: Running action 'Login'
[2021-12-16 22:20:55] DEBUG[14666] manager.c: Running action 'Login'
[2021-12-16 22:20:58] DEBUG[14673] manager.c: Running action 'Login'
[2021-12-16 22:21:01] DEBUG[14680] manager.c: Running action 'Login'
[2021-12-16 22:21:02] DEBUG[14707] manager.c: Running action 'Login'
[2021-12-16 22:21:04] DEBUG[14292] res_pjsip_registrar.c: Woke up at 1639689664 Interval: 30
[2021-12-16 22:21:04] DEBUG[14292] res_pjsip_registrar.c: Expiring 0 contacts
[2021-12-16 22:21:04] DEBUG[14720] manager.c: Running action 'Login'
[2021-12-16 22:21:08] DEBUG[14727] manager.c: Running action 'Login'
[2021-12-16 22:21:09] DEBUG[14736] manager.c: Running action 'Login'
[2021-12-16 22:21:11] DEBUG[14752] manager.c: Running action 'Login'
[2021-12-16 22:21:14] DEBUG[14759] manager.c: Running action 'Login'
[2021-12-16 22:21:17] DEBUG[14766] manager.c: Running action 'Login'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying all contacts on AOR 'company_flex'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying contact 'company_flex@@0f07ea2f28dd22e113c39120570595c2' on AOR 'company_flex'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: Wrapper created
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: Set timer to 3000 msec
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] All parallel queries completed
[2021-12-16 22:21:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Resolution completed - 0 viable targets
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a80009808] Invoking user callback with '0' addresses
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: PJSIP tsx response received
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: Cancelling timer
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: Timer cancelled
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: Callbacks executed
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip.c: 0x7f1a802ed690: wrapper destroyed
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_options.c: Contact company_flex/sip:[email protected] status didn't change: Unreachable, RTT: 0.000 msec
[2021-12-16 22:21:18] DEBUG[14279] res_pjsip/pjsip_options.c: AOR 'company_flex' now has 0 available contacts
[2021-12-16 22:21:18] DEBUG[14280] threadpool.c: Worker thread idle timeout reached. Dying.
[2021-12-16 22:21:18] DEBUG[14263] threadpool.c: Destroying worker thread 6
[2021-12-16 22:21:20] DEBUG[14773] manager.c: Running action 'Login'
[2021-12-16 22:21:24] DEBUG[14780] manager.c: Running action 'Login'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Login'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:26] DEBUG[14789] manager.c: Running action 'Command'
[2021-12-16 22:21:27] DEBUG[14841] manager.c: Running action 'Login'
[2021-12-16 22:21:30] DEBUG[14848] manager.c: Running action 'Login'
[2021-12-16 22:21:33] DEBUG[14855] manager.c: Running action 'Login'
[2021-12-16 22:21:34] DEBUG[14292] res_pjsip_registrar.c: Woke up at 1639689694 Interval: 30
[2021-12-16 22:21:34] DEBUG[14292] res_pjsip_registrar.c: Expiring 0 contacts
[2021-12-16 22:21:36] DEBUG[14862] manager.c: Running action 'Login'
[2021-12-16 22:21:40] DEBUG[14869] manager.c: Running action 'Login'
[2021-12-16 22:21:40] DEBUG[14876] manager.c: Running action 'Login'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip_outbound_registration.c: Outbound REGISTER attempt 3 to 'sip:tel.t-online.de' with client 'sip:[email protected]'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] All parallel queries completed
[2021-12-16 22:21:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:21:42] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Resolution completed - 0 viable targets
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Invoking user callback with '0' addresses
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip_outbound_registration.c: Received REGISTER response 503(No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC))
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip_outbound_registration.c: Processing REGISTER response 503 from server 'sip:tel.t-online.de' for client 'sip:[email protected]'
[2021-12-16 22:21:42] DEBUG[14279] res_pjsip_outbound_registration.c: Scheduling outbound registration to server 'sip:tel.t-online.de' from client 'sip:[email protected]' in 60 seconds
[2021-12-16 22:21:42] WARNING[14279] res_pjsip_outbound_registration.c: No response received from 'sip:tel.t-online.de' on registration attempt to 'sip:[email protected]', retrying in '60'
[2021-12-16 22:21:42] DEBUG[14291] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:21:42] DEBUG[14271] manager.c: Examining AMI event:
Event: Registry
Privilege: system,all
ChannelType: PJSIP
Username: sip:[email protected]
Domain: sip:tel.t-online.de
Status: Rejected


[2021-12-16 22:21:43] DEBUG[14882] manager.c: Running action 'Login'
[2021-12-16 22:21:44] DEBUG[14889] manager.c: Running action 'Login'
[2021-12-16 22:21:47] DEBUG[14895] manager.c: Running action 'Login'
[2021-12-16 22:21:50] DEBUG[14902] manager.c: Running action 'Login'
[2021-12-16 22:21:53] DEBUG[14909] manager.c: Running action 'Login'
[2021-12-16 22:21:56] DEBUG[14916] manager.c: Running action 'Login'
[2021-12-16 22:21:59] DEBUG[14923] manager.c: Running action 'Login'
[2021-12-16 22:22:01] DEBUG[14950] manager.c: Running action 'Login'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Login'
[2021-12-16 22:22:03] DEBUG[14971] manager.c: Running action 'Login'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:03] DEBUG[14965] manager.c: Running action 'Command'
[2021-12-16 22:22:04] DEBUG[14292] res_pjsip_registrar.c: Woke up at 1639689724 Interval: 30
[2021-12-16 22:22:04] DEBUG[14292] res_pjsip_registrar.c: Expiring 0 contacts
[2021-12-16 22:22:05] DEBUG[15025] manager.c: Running action 'Login'
[2021-12-16 22:22:06] DEBUG[15042] manager.c: Running action 'Login'
[2021-12-16 22:22:09] DEBUG[15049] manager.c: Running action 'Login'
[2021-12-16 22:22:12] DEBUG[15056] manager.c: Running action 'Login'
[2021-12-16 22:22:15] DEBUG[15063] manager.c: Running action 'Login'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying all contacts on AOR 'company_flex'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_options.c: Qualifying contact 'company_flex@@0f07ea2f28dd22e113c39120570595c2' on AOR 'company_flex'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: Wrapper created
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: Set timer to 3000 msec
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Performing SIP DNS resolution of target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: Transport type for target 'xxxxxxxxxxxx.primary.companyflex.de' is 'TCP transport'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Created resolution tracking for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '35', transport 'TCP transport', and port '5060'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target '_sip._tcp.xxxxxxxxxxxx.primary.companyflex.de' with record type '33', transport 'TCP transport', and port '5060'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Added target 'xxxxxxxxxxxx.primary.companyflex.de' with record type '1', transport 'TCP transport', and port '5060'
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Starting initial resolution using parallel queries for target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:22:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] All parallel queries completed
[2021-12-16 22:22:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] NAPTR record received on target 'xxxxxxxxxxxx.primary.companyflex.de'
[2021-12-16 22:22:18] DEBUG[14290] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Resolution completed - 0 viable targets
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_resolver.c: [0x7f1a802ed358] Invoking user callback with '0' addresses
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: PJSIP tsx response received
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: Cancelling timer
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: Timer cancelled
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: Callbacks executed
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip.c: 0x7f1a80006a70: wrapper destroyed
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_options.c: Contact company_flex/sip:[email protected] status didn't change: Unreachable, RTT: 0.000 msec
[2021-12-16 22:22:18] DEBUG[14279] res_pjsip/pjsip_options.c: AOR 'company_flex' now has 0 available contacts
[2021-12-16 22:22:19] DEBUG[15070] manager.c: Running action 'Login'
[2021-12-16 22:22:22] DEBUG[15077] manager.c: Running action 'Login'
[2021-12-16 22:22:22] DEBUG[15083] manager.c: Running action 'Login'

Config:

?

Depending on your underlying Asterisk version, TLS/SRTP also works as there is now official support for the endpoint’s media_encryption setting. In the past you had to patch the asterisk sources manually. I quickly checked the version 19.1.0 sources, but I don’t know since when this handler is part of the distribution.

It appears that the overall DNS resolution of the outbound proxy failed, although a NAPTR record was found.

If this is indeed the case, no REGISTER requests are being sent. You can track this down further by issuing dig queries from a shell prompt for NAPTR records, the indicated SRV records, and A records for the indicated servers. Depending on the results, determine whether you are using an incorrect name for the proxy server, Telekom has not set DNS correctly, or DNS lookups from the PBX are not functioning properly. Possibly, Telekom provides correct DNS resolution only if the lookup is done from a specific internet connection, and the PBX is querying via a different ISP or account.

If the log was misleading and REGISTER requests are being sent out, paste a log showing the request and any associated replies at pastebin.freepbx.org and post the link here.

This is more than likely, since customer data are part of the target string. The details can probably be found in the interface descriptions: | Telekom Hilfe

I’ve did a little diggin. It seems that Telekom only answers dns records for TLS connections.
We have two Telekom connections. But the dns requests are using the one that is assosciated with the Company Flex.

[root@pbx1 dnsmasq.d]# dig -t naptr 551137440188.primary.companyflex.de @localhost +noall +answer

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 <<>> -t naptr 55xxxxxxxxxx.primary.companyflex.de @localhost +noall +answer
;; global options: +cmd
55xxxxxxxxxx.primary.companyflex.de. 7094 IN NAPTR 10 0 "s" "SIPS+D2T" "" _sips._tcp.55xxxxxxxxxx.primary.companyflex.de.

I think that this is a wrong interpretation. The NAPTR returns only the SIPS service (I used some other router—obviously). The associated SRV lookups return the usual 3 (out of more) edns.t-ipnet.de servers (which can create problems further down the road).

It looks as if only secure connections are now possible regardless of the location of the PBX. Insofar the video could refer to an older setup and you might have to enable TLS/SRTP. You may not be able to enable TLS and use unencrypted media.

It could still be possible that you are not using the associated Telekom DNS server that would allow using unencrypted connections. A PCAP trace would show that. I would assume that Mr. Griebsch would have updated his video in case Telekom would have changed its policy.

It was the DNS-Server.
I thought it would be possible to use an own dns resolver from the correct isp-connection. But it must be the Telekom DNS-Server.

Thank you all!

This is a quite important conversation for me, planning also a change to comflex.
My expectation: use encryption, combine old single isdn msns with old isdn Anlagen-Anschluss.
What needs to be changed in addition to explanation of the very good video file for secured connection?
Does anyone think that the nomadischer use (connect from any telekom connect) is possible? --which does in opposite mean

  • not from 1&1
  • maybe not from t-systems
  • not from o2

The things we have looked at here are necessary, but not sufficient. The successor of the ISDN Anlagenanschluss, Deutschland LAN IP, or so, behaves quite differently than the CompanyFlex or (previous) SIP Trunk product, despite some similiarities. You always need to study the behavior.

Needless to say that most internet recipes for outbound configurations are partly outdated, wrong, or contain elements that are irrelevant. For 1&1 (or was it Vodafone?) I needed to to monitor the restart of the filters in pfSense (using shellcmd) a couple of years ago to get a stable system, i.e. you do have to consider the entire system.

SIPS and SRTP should work now out of the box, such that the “nomadic” use should now be possible. The recent Asterisk versions have everything on board meanwhile. I’ll give it a try during the holidays.

yes, quite true. Even older videos from Griebsch did’t work for me. He always used pjsip. Telekom works for my LAN SIP or whatever it is called only on old chan_sip on the trunk side. Internal extensions are partly on pjsip or chansip. I’ve heard - but not veryfied - that Telekom offers a “test-access” for company flex.
Anyway, i will store Griebsch video in the first step to have a common basis. Would be fine if you let me know any changes to be made in addition to this video. Meanwhile i’ll check my asterisk version to have an other common basis.

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