Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a SIP trunk

  2. Name it SIPGATE_UK



  3. Add the following configuration to the Outgoing section of the SIP trunk:



    Trunk Name:
    SIPGATE_UK

    Peer Details:
    host=sipconnect.sipgate.co.uk
    defaultuser=user_name_from_sipgate
    fromuser=user_name_from_sipgate
    fromdomain=sipconnect.sipgate.co.uk
    secret=password_from_sipgate
    type=peer
    insecure=port,invite
    canreinvite=no
    disallow=all
    allow=alaw&ulaw
    qualify=yes

  4. Add the following configuration to the Incoming section of the SIP trunk:



    Register String:
    user_from_sipgate:password_from_sipgate@sipconnect.sipgate.co.uk/user_from_sipgate

  5. Create an outgoing route

  6. You can name it Outside or any other descriptive name

     
    Make sure that the route position is "first before last" if you have other trunks in the outbound routes section.
    Choose the trunk name in the trunk sequence according to the name you gave to your sipgate trunk.

  7. Fill in the correct dial pattern to dial in order to send calls through this trunk


    Usually the X. (capital X with a dot) is a pattern that matches any number that starts with a digit between 0-9 with as many digits as you dial (e.g. 442032225555).
    You can set a prefix to catch the trunk if this is a second trunk and not your default one:



    It means that every number that starts with 99 followed by any digit between 0-9 with as many digits as you dial (e.g. 99442032225555)
    will catch this route and strip the first 2 digits (99) and send the rest to the trunk.

  8. for callerid to be correct the following must also be added to extensions_custom.conf 


    Code Block
    [macro-dialout-trunk-predial-hook]
    exten => s,1,SipAddHeader(P-Preferred-Identity:sip:${CALLERID(number)}@sipconnect.sipgate.de)




  9. Do not forget to click on the red button in order to apply the configuration.


...