[commit] r7187 - in freeswitch/trunk: conf/directory/default scripts
Author: brian Date: Sat Jan 12 10:19:49 2008 New Revision: 7187 Added: freeswitch/trunk/conf/directory/default/sip.broadvoice.com.noload Modified: freeswitch/trunk/scripts/sipsetup Log: added these from Robert La Ferla. Thank you. Added: freeswitch/trunk/conf/directory/default/sip.broadvoice.com.noload ============================================================================== --- (empty file) +++ freeswitch/trunk/conf/directory/default/sip.broadvoice.com.noload Sat Jan 12 10:19:49 2008 @@ -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> Modified: freeswitch/trunk/scripts/sipsetup ============================================================================== --- freeswitch/trunk/scripts/sipsetup (original) +++ freeswitch/trunk/scripts/sipsetup Sat Jan 12 10:19:49 2008 @@ -17,7 +17,8 @@ "3" => "IS", "4" => "AL", "5" => "SB", - "6" => "VU" + "6" => "VU", + "7" => "BV" }; @@ -29,6 +30,14 @@ "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 @@ "IS" => $IDEASIP, "AL" => $ASTERLINK, "SB" => $SIPBROKER, - "VU" => $VOIPUSER + "VU" => $VOIPUSER, + "BV" => $BROADVOICE }; print "\n" x 60; @@ -88,6 +98,7 @@ 4. Configure Asterlink.com 5. Configure SIPBroker.com 6. Configure voipuser.org + 7. Configure broadvoice.com X. Exit @@ -98,7 +109,7 @@ 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})) {
participants (1)
-
Freeswitch SVN