I’m trying to find some good up-to-date documentation for Asterisk 14, Dahdi 2.11.2 and PJSIP using ODBC on Mysql. All this on Ubuntu 16.04 LTS
In general, documentation always seems out-of-date. Although there’s a doc directory in the source files, the documentation which it generates doesn’t help much.
Although I’m using the latest versions which for Dahdi means this does not work and for PJSIP means some things work but registration is proving difficult, in the past with earlier versions things have worked. I have been using Asterisk on a test basis for a long time.
Is the only way to get any decent documentation to go on a training course? I’m not convinced I should need to.
You may say that since this is only a test system, it doesn’t matter but since I’m a consultant I get to advise clients on whether to use this package or not. From the point of view of documentation I would advise against Asterisk.
Clearly Asterisk is feature rich but if documentation does not exist to exploit those features there’s no point in having them.
Have you looked at the wiki[1]? We have a ton of documentation for PJSIP[2] including examples, how to convert from SIP, and other parts. As for DAHDi it hasn’t really changed in years so any existing documentation should work.
Hi,
DAHDI may not have changed for years but the documentation still isn’t good.
I’m trying to configure DAHDI, which I have been able to do in the past.
sudo dahdi_genconf gives
Missing a channel number parameter
but using -h doesn’t indicate any channel number parameter
This is pretty fundamental since the config files are not being generated and so Dahdi won’t function.
As for pjsip, yes I have looke at the wiki. Sorcery may be a workaround but I’d like to get a standard config to work for outbound registration.
I’m getting res_pjsip_outbound_authenticator_digest.c:144 Unable to create reqest with auth. No auth credentials for any realms in challenge.
However I have another outbound registration which works.
Here is the outbound registration part of pjsip.conf
[net2phone]
type=registration
transport=transport-udp
outbound_auth=net2phone server_uri=sip:xyz:abc@ippbx.net2phone.com
client_uri=sip:xyz@192.168.1.40:5060
However I still don’t understand what is really being used: this pjsip.conf or the tables in mysql which correspond to the contents above i.e ps_aors, ps_auth, ps-endpoints, ps_registrations etc
logging doesn’t seem to be possible since it is impossible to reload pjsip without switching off logging in the process
res_pjsip_outbound_registration.c:880 handle_registration_response: Fatal response ‘401’ received from ‘sip:xxx:yyy@sip.ovh.fr’ on registration attempt to ‘sip:xxx@192.168.1.40:5061’, stopping outbound registration
Once the 1st 401 is received outbound registration stops for this destination despite the fact that auth_rejection_permanent is set to no in the ps_registrations table
Thanks. That was true but it didn’t help.
There is some confusion about what can be realtime and what can’t.
I have now trimmed pjsip.conf to only contain my outbound registrations since apparently these CANNOT be in the ps_registrations table which I have now emptied.
sorcery.conf now looks like this
[res_pjsip] ; Realtime PJSIP configuration wizard
endpoint=realtime,ps_endpoints
auth=realtime,ps_auths
aor=realtime,ps_aors
domain_alias=realtime,ps_domain_aliases
transport=realtime,ps_transports