Hello, here in the UK the provision of PSTN services via copper pair is coming to an end. My ISP also provides my PSTN service and want to send me a “chinese” modem so I can use VoIP. However I use a commecial grate router (Ubiquiti EdgeMax EdgeRouter Pro). The ISP has now relented and sent me the list of SIP settings so I can attemp to enter these into my FreePBX machine and negate the need for the “Chinese Router”. I would really appreciate some help in determining what setting to use in the Trunk/sip settings/Outgoing & Incoming. Here is the list sent to me by the ISP (ZEN Internet);
Setting
Result
Provider Name
Zen Internet
Country
UK
Proxy or B2BUA, Media handling interface specification
**..88.0/28 and **..88.16/28 or enter the addresses from **..88.0 to **..88.31 (inclusive) if your network equipment does not support representing IP ranges using CIDR
A straightforward pjsip trunk setup should work. Try these settings as a start, report any problems.
pjsip General tab: Username: (as shown on Zen portal) Auth username: (if specified by Zen, otherwise leave blank) Secret: (SIP password shown on Zen portal) SIP Server: voip.zen.co.uk
pjsip Advanced tab: Expiration: 900 Outbound Proxy: sip:1.2.3.4\;lr\;hide
(replace 1.2.3.4 with IP address or hostname shown for Proxy on Zen portal) Contact User: phone number, matching DID number in your Inbound Route From Domain: voip.zen.co.uk From User: (same as you have for Username)
pjsip Codecs tab:
Only alaw and ulaw checked, alaw should come first.
Firewall: (as noted by Zen, though you’ll need other forwarding if you will have non-VPN remote extensions).
Hi Stewart,
Thanks for your help. I have entered the values you have recommended. However the connection is failing; here is the log file output.
[2023-09-12 09:42:56] WARNING[30684] res_pjsip_outbound_registration.c: Temporal response ‘401’ received from ‘sip:voip.zen.co.uk:5060’ on registration attempt to ‘sip:[email protected]:5060’, retrying in ‘60’
[2023-09-12 09:43:01] ERROR[30684] res_pjsip.c: Unable to create outbound OPTIONS request to endpoint ZEN_VoIP as URI ‘sip:zen416525@[email protected]’ is not valid
[2023-09-12 09:41:01] ERROR[30684] res_pjsip/pjsip_options.c: Unable to create request to qualify contact sip:zen416525@[email protected] on AOR ZEN_VoIP
I know nothing about Zen, but here are my guesses:
The hard 401 indicates that the server did not find the username/password combination to be valid. The SIP password is almost certainly different from the password you use to log into the Zen account. If the SIP password is something you set on their portal, choose one that is no more than 12 characters and consists only of letters and digits. Use copy/paste to ensure that Secret for the trunk is the same value.
If Zen assigns the SIP password, there might be an issue with special characters that need to be escaped. If this is the issue, their site may allow generation of a new password without the offending character.
Do you have some parameter(s) in your trunk set to ‘zen416525@zen’ ? If so, where did they specify that? It is likely valid for Auth username, but normally not elsewhere.
This may be easiest to resolve if you post a redacted version of their credentials documentation. Replace the password with ppppp and the username with uuuuu. If you feel that any other parameters are personal, redact them similarly, but use the same format.