topleft topright
Home arrow Asterisk (trixbox)
Asterisk (trixbox) FAQ

trixbox FAQ

This section contains hints, tips and troubleshooting info for the trixbox platform.



How do I configure a SIP Trunk from trixbox to a Vega?

PDF 

trixbox SIP Trunk to Vegastream

By far the best method to use trixbox and still have local phone lines is to use a Telephony Gateway (such as Vegastream).  This FAQ covers the basic trunk and routing configuration for trixbox CE (Community Edition).  Certain assumptions are made when creating this FAQ - your trixbox already has extensions, and is working in terms of internal calls and external SIP calls via an ISTP (such as Gamma).

Creating the trixbox Trunk

Under the TRUNKS page, create a new SIP trunk with the details outlined below (outgoing settings):

 

  • Trunk Name  - a logical name for the trunk, generally called Vega or PSTN (keeping it simple from the start will make life easier later on)
  • PEER Details - this area details the parameters used for communication with the gateway
    • host= - either the name (DNS name) or IP Address of the Vega Gateway
    • type=friend - this tells the trixbox that the trunk can make and receive calls
    • insecure=very (or invite) - this tells the trixbox to authenticate the trunk - generally insecure=very works, but on some insecure=invite is required
    • nat=no - fairly obvious, this tells the trixbox to not do any translation, as the gateway is local
    • dtmfmode=rfc2833 - this tells the trixbox what dtmf mode the gateway is using - rfc2833 is the standard (press 1 for ...)
    • disallow=all - strangely enough, this tells the trixbox that it can't use any media codecs
    • allow=alaw&ulaw -now we're talking (literally) - this tells trixbox that it can use G.711 a & u law codecs for media.
    • context=from-trunk - this tells the trixbox what routing context the call should be placed in.  Other options available: context=from-pstn, context=from-internal

Outbound Routing

Outbound routing is fairly straightforward, what you need to decide is how your users are going to dial out over the local phone lines - i.e. do you want them to dial a "9" followed by the rest of the number (i.e. 9123 to get to the talking clock) or just dial the number (123).

 

We'll assume that you want to do prefix dialling in this instance, as you may already have an outbound route across your current SIP provider and you want to differentiate between local phone calls and SIP calls.

 

Under the Outbound Routes page follow the steps below to create your PSTN route:

 

  • Route Name - Logical name for the trunk - remember the simple philosophy
  • Route Password, Emergancy Dialling, Intra Company Route, Music On Hold - not required in this case
  • Dial Patterns - this is where trixbox will match the numbers dialled by the user for routing
    • 9|[3-8]XXXXX - this will match any 6 digit number starting with 3,4,5,6,7 & 8
    • 9|0XXXXXXXXXX - this will match any 11 digit UK national number starting with 0
    • 9|00XXXXXXXXXX. - this will match any international number - note the "." at the end - this gives this match a variable length 
    • The 9| indicates that the leading character will always be a "9" but will be manipulated and removed before the number is passed to the trunk itself
  • Dial Patterns - to be perfectly honest, this is useless for the UK as it was designed for the US style numbering scheme
  • Trunk Sequence - these drop down boxes contain any and all trunks configured on your trixbox, select the trunks you wish to use in order of priority, in our case we'll select "PSTN" (or "Vega" if you called it that) as the first trunk.


That's it, save and apply those changes and make some test calls.  If there is something missing on your outbound route from trixbox, you can simply add new matches using the following rules:

 

  • X - matches any digit between 0 & 9
  • Z - matches any digit between 1 & 9
  • N - matches any digit between 2 & 9
  • [1237-9] - any characters in the [] will be matched in this example 1,2,3,7,8,9
  • . - wildcard - matches any character any number of times (9|. will match 9 followed by any length number)
  • | - seperates the prefix ready for manipulation before passing to the trunk (i.e. 9|123456 will pass 123456 to the trunk)
67% of 3 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


Login

News Feed

feed image

Quick Navigation

Copyright Switchnet Systems Ltd 1996-2008 | Powered by Joomla! CMS
Joomla Templates by JoomlaShack Joomla Templates