Sunr1ses / google-voice-sipsorcery-dialplans

Automatically exported from code.google.com/p/google-voice-sipsorcery-dialplans
1 stars 0 forks source link

Add support for use of star-codes in SIP addresses #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to dial out to other SIP providers using star codes (*### <SIP number> 
or *#### <SIP number> ), users of the complex dialplan must do one of the 
following:

• Go to the SIPBroker provider White Pages and look up what provider the star 
code is for, and then connect to the full address (SIP number@matching provider)

• Connect to the "coded" number with ekiga.net.

Wouldn't it be nice if we could simply dial the star coded number, and it 
automatically connects to say, ekiga.net? Perhaps have a way to override this 
for certain star codes (e.g. *747 links to gizmo5/sipphone, which doesn't work 
with Ekiga, so have it directly connect to sipphone.com).

Original issue reported on code.google.com by hmmwhats...@gmail.com on 21 Jun 2010 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by easter...@gmail.com on 24 Jun 2010 at 12:39

GoogleCodeExporter commented 9 years ago
If you're capable of reading the code, check out the vsptab section of the 
Complex Dialplan. Mike may need to explain how the vsptab section works, but I 
have a feeling it already works the way you would like. I do know that you 
would need to have credentials at each of the different providers if you'd like 
to be able to switch among them.

Original comment by easter...@gmail.com on 24 Jun 2010 at 1:15

GoogleCodeExporter commented 9 years ago
Yes, an explanation of how to do such would be nice. 

Original comment by hmmwhats...@gmail.com on 30 Jun 2010 at 7:37

GoogleCodeExporter commented 9 years ago
In order to get it to work, you need 3 things:

1. Accept "starred" numbers. It's already done, check out this line

        when /^\*/                  # Voxalot voicemail, echotest & other special numbers

in the callswitch() method.

2. Add VSPtab entry for Voxalot, Sipbroker or whoever is supposed to connect 
your "star" codes. Example:

  '8' => '@ Voxalot',              # Voxalot

3. Add a "when" clause in selectVSP() which would intercept "starred" numbers 
and route them to the provider of your choice (e.g. Voxalot). Example:

    when /^\*/                                       # For *500, *600 and other Voxalot services
       route(8,"Call to Voxalot services")

Original comment by mte...@gmail.com on 1 Jul 2010 at 2:45

GoogleCodeExporter commented 9 years ago
*Scratches head*

It still doesn't make sense. Could you perhaps explain it to someone who 
doesn't have any knowledge of ruby? What I wanted was to have something like 
this (I'm using the CNAM-enabled complex dialplan) happen: 

If I send a number that begins with a star, has 3 or 4 digits afterwards, 
possibly a separating character (if it helps the system distinguish the code), 
and then another number or username, then the dial plan will either take out 
the separating character and send the number to sipbroker.com or ekiga.net, or 
query the sipbroker.com database of SIP star codes to find the matching SIP 
proxy name. 

For example, if I dialed *9876 70000, the dialplan would do either (A) connect 
to *987670000@ekiga.net or *987670000@sipbroker.com, or (B) query the 
sipbroker.com provider white pages database, determin the *9876 connects to the 
SIP proxy address darkvoip.net, and then connects to 70000@darkvoip.net.

Original comment by hmmwhats...@gmail.com on 2 Jul 2010 at 2:30

GoogleCodeExporter commented 9 years ago
You don't need to search Sipbroker.com database in the dialplan because 
Sipbroker.com does this search automatically when "starred" number is passed to 
it. You can pass the number to sipbroker.com directly:

*987670000@sipbroker.com

or thru "affiliated" VoIP provider, such as Voxalot or Ekiga (there are many 
others).

In the examples I assumed that you have a Voxalot account and you added Voxalot 
as SIP provider under name "Voxalot" (on the Sipsorcery "SIP providers" page). 
In fact, you don't even need to register an account; you can merely pass 
"starred" number to sipbroker.com:

  '8' => '@ sipbroker.com',

and it will do the rest.

Original comment by mte...@gmail.com on 2 Jul 2010 at 3:29