added these from Robert La Ferla. Thank you.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7187 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-01-12 15:19:49 +00:00
parent 0fc1cd534a
commit 26d213213b
2 changed files with 47 additions and 3 deletions

View File

@ -0,0 +1,33 @@
<include>
<user id="%BVUSERNAME%">
<gateways>
<gateway name="sip.broadvoice.com">
<!--/// account username *required* ///-->
<param name="username" value="%BVUSERNAME%"/>
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
<param name="realm" value="BroadWorks"/>
<!--/// domain to use in from: *optional* same as realm, if blank ///-->
<param name="from-domain" value="sip.broadvoice.com"/>
<!--/// account password *required* ///-->
<param name="password" value="%BVPASSWORD%"/>
<!--/// replace the INVITE from user with the channel's caller-id ///-->
<!--<param name="caller-id-in-from" value="false"/>-->
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
<param name="extension" value="%BVEXTENSION%"/>
<!--/// proxy host: *optional* same as realm, if blank ///-->
<param name="proxy" value="sip.broadvoice.com"/>
<!--/// expire in seconds: *optional* 3600, if blank ///-->
<!--<param name="expire-seconds" value="3600"/>-->
<!--/// register ///-->
<param name="register" value="true"/>
<!--How many seconds before a retry when a failure or timeout occurs -->
<param name="retry_seconds" value="3600"/>
<!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
<!--<param name="caller-id-in-from" value="false"/>-->
</gateway>
</gateways>
<params>
<param name="password" value="%BVPASSWORD%"/>
</params>
</user>
</include>

View File

@ -17,7 +17,8 @@ my $providers = {
"3" => "IS",
"4" => "AL",
"5" => "SB",
"6" => "VU"
"6" => "VU",
"7" => "BV"
};
@ -29,6 +30,14 @@ my $FWD = {
"dialprefix" => "1-393"
};
my $BROADVOICE = {
"type" => "network",
"register" => "true",
"fields" => [username, password, extension],
"domain" => "sip.broadvoice.com",
"dialprefix" => "1-393"
};
my $SIPHONE = {
"type" => "network",
"register" => "true",
@ -71,7 +80,8 @@ my $TEMPLATES = {
"IS" => $IDEASIP,
"AL" => $ASTERLINK,
"SB" => $SIPBROKER,
"VU" => $VOIPUSER
"VU" => $VOIPUSER,
"BV" => $BROADVOICE
};
print "\n" x 60;
@ -88,6 +98,7 @@ sub welcome {
4. Configure Asterlink.com
5. Configure SIPBroker.com
6. Configure voipuser.org
7. Configure broadvoice.com
X. Exit
@ -98,7 +109,7 @@ WELCOME
chomp($i);
if ($i =~ m/X|x/) {
print "Thanks you!\n"; exit;
} elsif ($i > 6) {
} elsif ($i > 7) {
print "Invalid Choice\n"; &welcome;
} else {
if (exists($providers->{$i})) {