Dial Plan MySipSwitch

r2d2ro

Neuer User
Mitglied seit
27 Jan 2009
Beiträge
41
Punkte für Reaktionen
0
Punkte
0
Hallo

Ich habe keine Ahnung von so einem Dialplan bei MySipSwitch und scheine ihn auch nach längerem studieren nicht zu verstehen. Ich möchte nur INCOMING Anrufe auf folgende SIP URL weiterleiten.

[email protected]

Kann mir da jemand helfen ? Besten Dank.


#Ruby
# Welcome to mysipswitch, this is your default Ruby dialplan.
# The default rules for incoming calls to [email protected] and for your
# outgoing calls to different providers have been configured for you. To use the outgoing rules you need
# add SIP Providers with names of providerx where x is 1 to 3. You can then use a prefix of *x for
# calls to providerx. For example to place a call to 0012345678 at provider1 you would dial *10012345678.

sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")

if sys.In then
# Do your incoming call processing customisations here.
sys.Dial("#{sys.Username}@local") # Forwards all incoming calls to your registered contacts.
else
# Do your outgoing call processing customisations here.
case req.URI.User
when /^303$/ then sys.Dial("[email protected]") # Blueface speaking clock.
when /^612$/ then sys.Dial("[email protected]") # FWD speaking clock.
when /^\*1/ then sys.Dial("${dst:2}@provider1") # Forward outgoing calls with a *1 prefix to provider1.
when /^\*2/ then sys.Dial("${dst:2}@provider2") # Forward outgoing calls with a *2 prefix to provider2.
when /^\*3/ then sys.Dial("${dst:2}@provider3") # Forward outgoing calls with a *3 prefix to provider3.
else sys.Dial("provider1")
end
end
 
Dazu musst Du die gewünschte SIP-URI unter den weiteren Optionen "register this provider" anstelle Deiner dort automatisch vorbelegten mySIPswitch-SIP-URI eintragen. Der dialplan ist nur für ausgehende Gespräche nötig.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.