1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TRY THIS XiVO / Wazo TollFree SIP trunk

Discussion in 'Trunks' started by David Foxworth, Dec 12, 2016.

  1. David Foxworth

    David Foxworth New Member

    Joined:
    Oct 26, 2013
    Messages:
    17
    Likes Received:
    9
    Is there a way in XiVO to implement a custom SIP trunk for toll free calls. I route all of my toll free calls through IdeaSIP. In Incredible PBX I just set up a custom trunk with the following custom dial string:

    SIP/$OUTNUM$@proxy.ideasip.com

    IdeaSIP doesn't require an account or registration, simply route the toll free calls to this custom trunk in Incredible PBX. I have been using this for a couple of years successfully in Incredible PBX.

    In XiVO, I can add a specific toll free number to xivo-extrafeatures.conf, borrowing from Ward's article on adding custom SIP URI dialing:

    ;# // BEGIN SpeedDials
    SIP/18005551212@proxy.ideasip.com
    exten = 6840,1,Dial(SIP/18005551212@proxy.ideasip.com) ; IdeaSIP tollfree termination
    ;# // END SpeedDials

    Now when I dial extension 6840 it will dial that toll free number, but what I would like to do is to make phone number generic, like the Incredible PBX example above, where the variable $OUTNUM$ is used for the actual number to dial.

    Is there a way to do this in XiVO? Either through the GUI, CLI, adding code to the extensions_extra.d, or any other method?

    Sorry, but I am not an Asterisk guru by any stretch, but if pointed in the right direction I could probably figure something out...

    Thanks for any assistance!
     
  2. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,819
    Likes Received:
    2,293
    @David Foxworth: Try this in /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf ...

    Code:
    ;# // BEGIN TollFree
    exten = _1800NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1888NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1877NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1866NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1855NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1844NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1833NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    ;# // END TollFree
    
     
    #2 wardmundy, Dec 13, 2016
    Last edited: Nov 14, 2017
  3. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,819
    Likes Received:
    2,293
    We've actually added this to today's build of the Incredible PBX 14 installer for Wazo. Here's the code for anyone that wants to add it to an existing XiVO/Wazo server:
    Code:
    echo "Adding IdeaSIP TollFree U.S. calling to Wazo..."
    sed -i '\:// BEGIN TollFree:,\:// END TollFree:d' /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
    echo ';# // BEGIN TollFree
    exten = _1800NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1888NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1877NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1866NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1855NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1844NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    exten = _1833NXXXXXX,1,Dial(SIP/${CALLERID(dnid)}@proxy.ideasip.com)
    ;# // END TollFree
    ' >> /etc/asterisk/extensions_extra.d/xivo-extrafeatures.conf
    asterisk -rx "dialplan reload"
    
     
    #3 wardmundy, Dec 13, 2016
    Last edited: May 4, 2017
  4. David Foxworth

    David Foxworth New Member

    Joined:
    Oct 26, 2013
    Messages:
    17
    Likes Received:
    9
    Thanks Ward, that did the trick! Interesting that they use the variable ${CALLERID(dnid)} to represent the phone number being called.

    I also dial the number without the 1 prefix to route tollfree calls through ArcTele. So using your example above:
    exten = _888NXXXXXX,1,Dial(SIP/1${CALLERID(dnid)}@tf.arctele.com)

    I do this for a fallback, as sometimes IdeaSIP's tollfree routing is down. I like to have several options...especially since they are the right price!

    EDIT: I modified the Arctele dial string to work by adding a 1 in front of the ${CALLERID(dnid)} variable...

    Thanks!
     
    #4 David Foxworth, Dec 14, 2016
    Last edited: Dec 14, 2016
    wardmundy likes this.
  5. directionpointer

    directionpointer New Member

    Joined:
    May 27, 2013
    Messages:
    18
    Likes Received:
    6
    Just an update that they are now issuing Toll Free numbers in the 833 Prefix. Just a heads up to anyone making toll free dial plans in their systems.
     
  6. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,819
    Likes Received:
    2,293
    Thanks. We've added it to the latest installer and adjusted the code above.
     
  7. Matt Kaufman

    Matt Kaufman New Member

    Joined:
    Nov 8, 2016
    Messages:
    4
    Likes Received:
    2
    Is there anyway to make this work even when the user includes the 1 prefix in the toll free number?
     

Share This Page