Trunk for Deutsche Glasfaser?

Hello,
does anyone have the settings for Deutsche Glasfaser VoIP for me?
I have already tried a few things, but always get only Error 404 back.

Thanks

Post their instructions. Someone can likely help you.

1 Like

They only gave the instruction to contact the manufacturer of the phone. I only have the standard access data, which is intended for a FritzBox.
However, I would prefer to use Asterisk.

Thread from a year ago with what is likely most of it. Person was having issues, and no idea if it was fully resolved. That seems unclear.

That said, then what are the FritzBox instructions? The are only so many ways to do things.

Please post that (mask username, password, phone number, etc., but make it clear what each item is).

Do you get the 404 when attempting to register, or on an outbound call? If the latter, is incoming working properly?

The 404 comes when Asterisk tries to connect to SIP Server

I make Screenshots and post it later

pjsip Logger said

[2021-01-20 17:05:38] WARNING[1280]: res_pjsip_outbound_registration.c:1035 handle_registration_response: DG-SIP: '404' fatal response received from 'sip:dg.voip.dg-w.de:5060' on registration attempt to 'sip:Phone [email protected]:5060', retrying in '30' seconds

== Endpoint DG-SIP is now Reachable
– Contact DG-SIP/sip:[email protected]:5060 is now Reachable. RTT: 9.086 msec

pjsip registration said

DG-SIP/sip:dg.voip.dg-w.de:5060 DG-SIP Rejected Wed 17:07:38 30 Wed 17:08:08 22

I’m very confused. You have Registration set to None, but you are still getting errors attempting to register. I would assume that receiving incoming calls from this provider would require registration. Please explain.

Also, please post the suggested settings for FritzBox.

I tried also Send and Receive. But the request is stil rejected.

The settings in the Fritzbox was very easy. I just needed my Phonnenumber, Username and Password

I looked at the FritzBox GUI and believe that what they call Username is what Asterisk calls authuser, which unfortunately is not supported by the FreePBX GUI.

Please try these settings, where you set Authorization user manually in a config file:

Edit /etc/asterisk/pjsip.auth_custom_post.conf to contain (in addition to anything already there)
[DG-SIP](+type=auth)
username=SIP_DG Username

Change these settings for trunk DG-SIP:
Username: phonenumber
Registration: Send
Contact User: leave blank
From User: phonenumber
Client URI: (leave blank)
Server URI: (leave blank)

For phonenumber, use what DG gave you for the FritzBox (either 02864… or 00492864…)

Restart Asterisk and test. If you still have trouble, at the Asterisk command prompt type
pjsip set logger on
make or receive a failing call, paste the Asterisk log for the call at pastebin.freepbx.org and post the link here.

If registration fails, paste a registration attempt instead of a call.

Is it not available in advanced? I thought I dealt with this once in the past. I’m not at my desk to check at the moment.

Possibly added very recently, maybe in edge. However, it isn’t present in what the OP is running so I figured that a manual config edit was in order.

The /etc/asterisk/pjsip.auth_custom_post.conf is completely empty. Is this right?

I have something in the pjsip.auth.conf
[DG-SIP]
type=auth
auth_type=userpass
password=PW
username=Phonenumber

Should i change it in

[DG-SIP]
type=auth
auth_type=userpass
password=PW
username=SIP_DG Username

??
Sorry, I’m a complete beginner

Ok, i tried it.

The log says
== Endpoint DG-SIP is now Reachable
– Contact DG-SIP/sip:[email protected]:5060 is now Reachable. RTT: 14.177 msec

But in the Registry is this
Registration/ServerURI…> <Auth…> <Status…>

DG-SIP/sip:dg.voip.dg-w.de:5060 DG-SIP Rejected Thu 00:15:02 30 Thu 00:15:32 8
Sipgate/sip:sipgate.de:5060 Sipgate Registered Thu 00:10:08 590 Thu 00:19:58 274

Objects found: 2

[2021-01-21 00:15:32] WARNING[1343]: res_pjsip_outbound_registration.c:1035 handle_registration_response: DG-SIP: ‘404’ fatal response received from ‘sip:dg.voip.dg-w.de:5060’ on registration attempt to ‘sip:[email protected]:5060’, retrying in ‘30’ seconds

Is it possible that i need USERNAME + PHONENUMBER @ dg.voip.dg-w.de:5060 ?
Because i have 3 Phonenumbers with one SIP Account

If you have this account working with a FritzBox, softphone or other device, a log or capture from the device would be useful, so we can see how the register request is formatted and make Asterisk do the same thing.

If not, turn on pjsip logger (as noted earlier), paste a failed registration attempt and post the link. Then, change Username to SIP_DG Username (leaving everything else alone), turn on the logger again, paste a new failed attempt and post that link. We can compare and see whether one or the other attempts to authenticate.