Get help with installing, upgrading and running a PBX such as Asterisk.
User avatar
By WelshPaul
Posts Signature Likes Avatar Topics
#6010
Below is my Sipgate Basic PJSIP configuration that I use with my FreePBX 15.0.16.78 setup. So far so good! :nerd:

First thing you will need to do is enable the "SIP Channel Driver" to use both chan_sip and chan_pjsip. You can do that by navigating to the Settings > Advanced Settings configuration page and scrolling down until you see the "SIP Channel Driver" setting. Make sure that "both" is selected in the dropdown box. If it isn't, make the change and click "Submit" to save it and then "Apply Changes" to implement it.

Now that's out of the way, let's create a Sipgate Basic PJSIP Trunk...
  1. Navigate to Connectivity > Trunks > + Add Trunk > Add SIP (chan_pjsip) Trunk page.
    You should be at the following screen:
    Image
  2. Under the "General" tab section make the following changes:
    • Trunk Name = Sipgate-(SIP-ID)
    • Outbound CallerID = (PHONE-NUMBER)
    It should look something like this:
    Image
  3. Click on the "pjsip Settings" tab and in the "General" tab section make the following changes:
    • Username = (SIP-ID)
    • Secret = (SIP-PASSWORD)
    • Authentication = Outbound
    • Registration = Send
    • Language Code = English - United Kingdom
    • SIP Server = sipgate.co.uk
    • SIP Server Port = 5060
    • Context = from-pstn
    • Transport = 0.0.0.0-udp
    Again, it should look like this:
    Image
  4. While still in the "pjsip Settings" tab click on the "Advanced" tab and make the following changes:
    • General Retry Interval = 20
    • Expiration = 600
    • Contact User = (SIP-ID)
    • From Domain = (YOUR_IP)
    • From User = (SIP-ID)
    • Client URI = sip:(SIP-ID)@(YOUR_IP):5060
    • Server URI = sip:(SIP-ID)@ 217.10.79.23:5060
    • AOR Contact = sip:(SIP-ID)@ 217.10.79.23:5060
    • Match (Permit) = 217.10.79.23,(YOUR_IP)
    You can leave the rest at their defaults.
    Image
    Image
  5. Finally click on the "Submit" button to save your changes and then "Apply Changes" to implement them.
Additional information on how to convert extensions from chan_sip to chan_pjsip can be read here: WelshPaul @ FREEPBX - New tool to assist converting from SIP to PJSIP

NOTE: Replace the following (in the above configuration) with your real Voipfone credentials:
  1. (SIP-ID) = Your Sipgate Basic SIP-ID number.
  2. (PHONE-NUMBER) = Your Sipgate Basic Phone Number
  3. (SIP-PASSWORD) = Your Sipgate Basic SIP Password.
  4. (YOUR_IP) = Your IP Address (Find it here: Settings > Asterisk SIP Settings > NAT Settings > External Address)
0
Newbie help!

Hello Richard, A good solution for you would be yay.c…

Fed up with paying a monthly fee for extensions, call …

Before you go any further have a read of this: https://…

A few years has passed since my original post and thing…

Sign up for VIP membership