.titleBar { margin-bottom: 5px!important; }

Cheaper Call Routes for +6113 +4484 +4487

Dieses Thema im Forum "Grundsätzliches" wurde erstellt von evilbunny, 14 Okt. 2006.

  1. evilbunny

    evilbunny Neuer User

    Registriert seit:
    1 März 2006
    Beiträge:
    132
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ok recently I started building up a database of non-geographical phone numbers in Australia, +61 13, while most people in Germany won't find this useful I was able to integrate UK numbers into the database as well, +44 84 and +44 87 numbers which are charged at higher rates then then regular land lines.

    Basically all the numbers are stored in e164.org's zone and I created a proof of concept script for asterisk. http://www.e164.org/cheaper.phps

    The following is an example dial plan for asterisk.

    Code:
    [users]
    exten => _13X.,1,Goto(special,61${EXTEN},1)
    
    [hangup]
    exten => 1,1,hangup
    
    [special]
    exten => _X.,1,AGI(cheaper.php|${EXTEN}|6191234567)
    exten => _X.,n,GotoIf($[${EXTENCOUNT} > 0]?routes)
    exten => _X.,n,Dial(SIP/${EXTEN:2}@VSP,120)*
    exten => _X.,n,Goto(hangup,1,1)
    
    exten => _X.,n(routes),Set(count=0)
    exten => _X.,n(top),GotoIf($[${EXTENCOUNT} >= ${count}]?hangup,1,1)
    exten => _X.,n,Dial(SIP/0${EXTEN${count}:2}@VSP,120)
    exten => _X.,n,Set(count=${count}+1)
    exten => _X.,n,Goto(top)