login | register
Tue 02 of Dec, 2008 [00:11 UTC]

voip-info.org

VoipStunt

Created by: enzo,Last modification on Thu 21 of Sep, 2006 [01:53 UTC] by xrobau

VoipStunt.com


Website: www.voipstunt.com

The latest service introduced by Finarea SA. Like VoipBuster it's offered for access through a softphone, but can also be used with a standard SIP client, including Asterisk (this mode is undeclared and not officially supported). The domain name of the SIP proxy/registrar is sip.voipstunt.com , and resolves to the same set of IP addresses as sip1.sipdiscount.com. The server is not Asterisk-based, only supports G.711 and G.726 codecs (GSM announced as available soon), and does not speak IAX. Only dtmfmode=inband is supported.

Note: from 20 Jan 2006, please use sip.voipstunt.com as domain name for the SIP proxy. The domain name connectionserver.voipstunt.com, used by the softphone client for Windows, resolves to a set of IP addresses larger than sip.voipstunt.com, and some of the hosts in that set only seem to support the undocumented protocol used by the softphone client, not the SIP protocol.

As the list of free destinations changes quite often, I have centralized its maintenance in the Finarea SA page, together with other sibling services.

For signing up, the procedure is similar to VoipBuster's: one has to create an account with the softphone, and then can reuse username and password with other SIP clients. Initially the free calls are limited to 1 minute, and become of unlimited duration after logging on and paying €10 with PayPal or credit card.

Asterisk Settings


In sip.conf:

[voipstunt]
type=friend ; (or "peer" if we don't need incoming calls, or if there is a separate section with "type=user")
host=sip.voipstunt.com
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g726
username={{YOURUSERNAME}}
fromuser={{YOURUSERNAME}}
secret={{YOURPASSWORD}}
qualify=1000 ; optional
canreinvite=no ; new SIP servers don't like reINVITEs
dtmfmode=inband ; only inband currently works, and not that well


To dial out using this use the line:

Dial(SIP/00{EXTEN}@voipstunt)

in the appropriate place in your extensions.conf dialplan. If you're using FreePBX or AMP, this would translate to adding this to the trunk dial patterns (Eg, Prefix anytihing going out this trunk with 00):

00+.






Configuring Asterisk to receive incoming calls (from "VoIP-in" numbers).


You can also register with SIP using:

register => YOURUSERNAME:YOURPASSWORD@sip.voipstunt.com

However, it must be noted that the new SIP servers that have replaced the old Asterisk-based ones do not handle registration properly. In particular, the "Contact:" header, built by the Asterisk client from the optional /nnn parameter to the "register" line, is ignored (so don't bother to specify the latter...); furthermore, the server will send INVITEs with URI's pointing to sip:YOURUSERNAME@<server's IP address>, not to sip:<client's IP address> as it should. As a workaround, do this:

1. Use "insecure=port,invite" (or, in Asterisk 1.0.x, "insecure=very" in order to accept unauthenticated calls. Make sure this option is read also for incoming calls by putting it in a section with "type=friend" or "type=user"...

2. In the context assigned to the incoming calls (typically "default", unless you reserve a specific one with "context=..."), create as landing point an extension identical to the username. That is because the server sends INVITEs to YOURUSERNAME@... , so the call won't jump to the "s" extension as you might expect. This "bugfix" extension might just execute a single GoTo to the "s" extension:
exten => YOURUSERNAME,1,Goto(s,1)

3. Finally, the new SIP servers reject reINVITEs with "400 Bad Request", so don't forget the line "canreinvite=no" (again, this is used for incoming calls only when placed in sections with "type=friend" or "type=user").

Isolation of chargeable routes from free routes


This route list is part of the latest LCDIAL.sh AGI script package. It is supposed to restrict VoipStunt's routing to the free routes alone. Please report any mistake to enzomich-at-gmail.com.
Note: now the required dialplan fragment may be automatically generated for you, without having to use AGI! See the note about LCDC at the beginning of the LCDIAL.sh AGI script page.


; this list is partial and NOT GUARANTEED TO BE CORRECT
; it only includes VoipStunt's free destinations
; the paid ones are set to 9999999 to force their exclusion
; see: http://www.voipstunt.com/en/rates.html

; This provider gives no dialplan information, so
; info on which number is a plain landline is based on:
; (T) http://www.teliax.com/rates.html
; (V) http://www.voipjet.com/prices.php
; (E) http://www.ecallchina.com/country/
; (S) http://www.stanaphone.com/
;
; The cost is 1 rather than the actual 0 to give priority to
; other free channels (e.g., ENUM) if available.
;
; --- Andorra — (T) (S) (V)
;
376 1
3763 9999999 # ...but exclude mobile
3764 9999999 # ...but exclude mobile
3766 9999999 # ...but exclude mobile
;
; --- Argentina (T)
;
54 1 # Argentina landlines
549 9999999 # ...but exclude mobile and special services
;
; --- Australia (T) (S)
;
61 1
6107 9999999 # ...but exclude special services
6108 9999999 # ...but exclude special services
611 9999999 # ...but exclude mobile
614 9999999 # ...but exclude mobile
615 9999999 # ...but exclude mobile
6178 9999999 # ...but exclude special services
6179 9999999 # ...but exclude special services
61891 9999999 ...but exclude Christmas and Cocos Islands
;
; --- Austria (T) (S)
;
43 1 # Austria landlines --
43650 9999999 # ...but exclude mobile and special services
4366 9999999 # ...but exclude mobile and special services
43662 1 # Austria landlines (Salzburg)
4367 9999999 # ...but exclude mobile and special services
4368 9999999 # ...but exclude mobile and special services
4369 9999999 # ...but exclude mobile and special services
43710 9999999 # ...but exclude mobile and special services
43711 9999999 # ...but exclude mobile and special services
43720 9999999 # ...but exclude mobile and special services
43730 9999999 # ...but exclude mobile and special services
43740 9999999 # ...but exclude mobile and special services
43780 9999999 # ...but exclude mobile and special services
438 9999999 # ...but exclude mobile and special services
439 9999999 # ...but exclude mobile and special services
;
; --- Belgium (T) (E) (S)
;
32 1 # Belgium 
3217 9999999 # ...but exclude mobile and special services
324 9999999 # ...but exclude mobile
3242 1 # Belgium landlines Liege
3243 1 # Belgium landlines Liege
327 9999999 # ...but exclude mobile and special services
3271 1 # Belgium landlines Charleroi
3296 9999999 # ...but exclude premium services
3297 9999999 # ...but exclude special services (XFP)
;
; --- Bulgaria — (T) (S) (V)
;
359 1
35917 9999999 # ...but exclude mobile
35948 9999999 # ...but exclude mobile
35987 9999999 # ...but exclude mobile
35988 9999999 # ...but exclude mobile
35989 9999999 # ...but exclude mobile
35998 9999999 # ...but exclude mobile
35999 9999999 # ...but exclude mobile
;
; --- Canada
;
1204 1
1250 1
1289 1
1306 1
1403 1
1416 1
1418 1
1450 1
1506 1
1514 1
1519 1
1604 1
1613 1
1647 1
1705 1
1709 1
1778 1
1780 1
1807 1
1819 1
1867 1
1902 1
1905 1
;
; --- Chile — (V) (S) (T)
;
56 1
561 9999999 # ...but exclude mobile
568 9999999 # ...but exclude mobile
569 9999999 # ...but exclude mobile
;
; --- China
;
86 1
;
; --- Colombia — (T) (S) (V)
;
57 1
5711 9999999 # ...but exclude mobile
573 9999999 # ...but exclude mobile
;
; --- Croatia — (V) (S) (T)
;
385 1
38560 9999999 # ...but exclude mobile
38562 9999999 # ...but exclude mobile
38576 9999999 # ...but exclude mobile
38577 9999999 # ...but exclude mobile
3859 9999999 # ...but exclude mobile
;
; --- Cyprus — (V) (S) (T)
;
357 1
3579 9999999 # ...but exclude mobile
35770 9999999 # ...but exclude mobile
;
; --- Denmark — (T) (S)
;
45 1 # Denmark
452 9999999 # ...but exclude mobile and special services
4530 9999999 # ...but exclude mobile and special services
4531 9999999 # ...but exclude mobile and special services
4540 9999999 # ...but exclude mobile and special services
4541 9999999 # ...but exclude mobile and special services
4542 9999999 # ...but exclude mobile and special services
4550 9999999 # ...but exclude mobile and special services
4551 9999999 # ...but exclude mobile and special services
4552 9999999 # ...but exclude mobile and special services
4560 9999999 # ...but exclude mobile and special services
4561 9999999 # ...but exclude mobile and special services
4570 9999999 # ...but exclude mobile and special services
4572 9999999 # ...but exclude mobile and special services
4577 9999999 # ...but exclude mobile and special services
4588 9999999 # ...but exclude mobile and special services
4590 9999999 # ...but exclude mobile and special services
45922 9999999 # ...but exclude mobile and special services
;
; --- Finland — (T) (S)
;
358 1 # Finland
3581 9999999 # ...but exclude special services
35820 9999999 # ...but exclude special services
35829 9999999 # ...but exclude special services
35830 9999999 # ...but exclude special services
35839 9999999 # ...but exclude special services
3584 9999999 # ...but exclude mobile
35850 9999999 # ...but exclude special services
35859 9999999 # ...but exclude special services
35860 9999999 # ...but exclude special services
35869 9999999 # ...but exclude special services
3587 9999999 # ...but exclude special services
35880 9999999 # ...but exclude special services
35889 9999999 # ...but exclude special services
35890 9999999 # ...but exclude special services
35899 9999999 # ...but exclude special services
;
; --- France — (T) (E) (S)
;
33 1 # France
336 9999999 # ...but exclude mobile 
338 9999999 # ...but exclude special services
;
; --- Georgia — (T) (S) (V)
;
995 1
995321 9999999 # ...but exclude mobile
995322 9999999 # ...but exclude mobile
995325 9999999 # ...but exclude mobile
9953297 9999999 # ...but exclude mobile
995328 9999999 # ...but exclude mobile
99555 9999999 # ...but exclude mobile
99577 9999999 # ...but exclude mobile
99590 9999999 # ...but exclude mobile
99593 9999999 # ...but exclude mobile
99595 9999999 # ...but exclude mobile
99597 9999999 # ...but exclude mobile
99598 9999999 # ...but exclude mobile
99599 9999999 # ...but exclude mobile
;
; --- Germany — (T) (E) (S)
;
49 1 # Germany
491 9999999 # ...but exclude mobile and special services
49700 9999999 # ...but exclude mobile and special services
49701 9999999 # ...but exclude mobile and special services
49800 9999999 # ...but exclude mobile and special services
;
; --- Gibraltar
;
350 1
35054 9999999 # ...but exclude mobile
35056 9999999 # ...but exclude mobile
35057 9999999 # ...but exclude mobile
35058 9999999 # ...but exclude mobile
;
; --- Hong Kong
;
852 1
;
; --- Hungary
;
36
3620 9999999 # ...but exclude mobile
3630 9999999 # ...but exclude mobile
3650 9999999 # ...but exclude mobile
3660 9999999 # ...but exclude mobile
3670 9999999 # ...but exclude mobile
;
; --- Iceland — (V) (S)

354 1
3543 9999999 # ...but exclude mobile
3546 9999999 # ...but exclude mobile
3548 9999999 # ...but exclude mobile
;
; --- Ireland — (T) (E) (S)
;
353 1 # Ireland
3538 9999999 # ...but exclude mobile
;
; --- Italy — (T) (V) (S)
;
390 1 # Italy Landlines
;
; --- Japan — (V) (S)
;
81 1
8110 9999999 # ...but exclude mobile
8130 9999999 # ...but exclude mobile
8131 9999999 # ...but exclude mobile
8140 9999999 # ...but exclude mobile
8150 9999999 # ...but exclude mobile
8160 9999999 # ...but exclude mobile
8170 9999999 # ...but exclude mobile
8180 9999999 # ...but exclude mobile
8190 9999999 # ...but exclude mobile
;
; --- Latvia — (S) (T) (V)
;
371 1
37158 9999999 # ...but exclude mobile
37159 9999999 # ...but exclude mobile
3716 9999999 # ...but exclude mobile
3718 9999999 # ...but exclude mobile
3719 9999999 # ...but exclude mobile
;
; --- Liechtenstein — (T) (V) (S)
;
423 1 # Liechtenstein
4235 9999999 # ...but exclude mobile and special services
4236 9999999 # ...but exclude special services
4237 9999999 # ...but exclude mobile
;
; --- Luxembourg — (T) (V) (S)
;
352 1 # Luxembourg
3520 9999999 # ...but exclude mobile and special services
3522 9999999 # ...but exclude mobile and special services
3526 9999999 # ...but exclude mobile and special services
3529 9999999 # ...but exclude mobile and special services
;
;
; --- Malaysia (V) (S)
;
60 1
601 9999999 # ...but exclude mobile
;
; --- Monaco (V)
;
377 1
3774 9999999 # ...but exclude mobile
3776 9999999 # ...but exclude mobile
;
; --- Mongolia — (T) (S) (V)
;
976 1
;
; --- Netherlands — (T) (V) (S)
;
31 1 # Netherlands
316 9999999  # ...but exclude mobile and special services
318 9999999  # ...but exclude mobile and special services
319 9999999  # ...but exclude mobile and special services
;
; --- New Zealand (S) (V)
;
64 1
642 9999999  # ...but exclude mobile
648 9999999  # ...but exclude mobile
64900 9999999  # ...but exclude mobile
;
; --- Norway — (T) (V) (S)
;
47 1 # Norway (T) (V)
474 9999999  # ...but exclude mobile and special services
478 9999999  # ...but exclude mobile and special services
479 9999999  # ...but exclude mobile and special services

; --- Poland (S) (V)
;
48 1
48400   9999999  # ...but exclude special services
4850 9999999  # ...but exclude mobile
4851 9999999  # ...but exclude mobile and special services
4860 9999999  # ...but exclude mobile
4864 9999999  # ...but exclude mobile
4866 9999999  # ...but exclude mobile
4869 9999999  # ...but exclude mobile
48707   9999999  # ...but exclude special services
48708   9999999  # ...but exclude special services
48800   9999999  # ...but exclude special services
48801   9999999  # ...but exclude special services
48804   9999999  # ...but exclude special services
48806   9999999  # ...but exclude special services
48808   9999999  # ...but exclude special services
4888 9999999  # ...but exclude mobile
4890 9999999  # ...but exclude mobile
;
; --- Portugal — (T) (V) (S)
;
351 1 # Portugal
351169 9999999  # ...but exclude mobile and special services
351189 9999999  # ...but exclude mobile and special services
351470 9999999  # ...but exclude mobile and special services
3516 9999999  # ...but exclude mobile and special services
3518 9999999  # ...but exclude mobile and special services
3519 9999999  # ...but exclude mobile and special services
;

; --- Singapore
;
65 1
;
; --- South Korea (S) 
;
82 1
821 9999999  # ...but exclude mobile and special services
;
; --- Spain — (T) (V) (E) (S)
;
34 1 # Spain
346 9999999 # ...but exclude mobile
3480 9999999 # ...but exclude special services
3490 9999999 # ...but exclude special services
;
; --- Sweden — (T) (V) (E) (S)
;
46 1 # Sweden
4610 9999999 # ...but exclude mobile
46124 9999999 # ...but exclude mobile
46126 9999999 # ...but exclude mobile
46127 9999999 # ...but exclude mobile
46129 9999999 # ...but exclude mobile
4620 9999999 # ...but exclude mobile
46252 9999999 # ...but exclude mobile
46450 9999999 # ...but exclude mobile
46458 9999999 # ...but exclude mobile
46518 9999999 # ...but exclude mobile
46519 9999999 # ...but exclude mobile
46592 9999999 # ...but exclude mobile
46593 9999999 # ...but exclude mobile
46595 9999999 # ...but exclude mobile
46596 9999999 # ...but exclude mobile
467 9999999 # ...but exclude mobile and special services
;
; --- Switzerland — (T) (V) (S)
;
41 1 # Switzerland
4120 9999999  # ...but exclude mobile
4170 9999999  # ...but exclude mobile
4174 9999999  # ...but exclude mobile
4176 9999999  # ...but exclude mobile
4177 9999999  # ...but exclude mobile
4178 9999999  # ...but exclude mobile
4179 9999999  # ...but exclude mobile
4180 9999999  # ...but exclude mobile
4186 9999999  # ...but exclude mobile
4189 9999999  # ...but exclude mobile
4190 9999999  # ...but exclude mobile
;
; --- Taiwan — (T) (V) (S)
;
886 1
88660 9999999  # ...but exclude mobile
88670 9999999  # ...but exclude mobile
8869 9999999  # ...but exclude mobile
;
; --- Turkey — (T) (S) (V)
;
90 1
905 9999999 # ...but exclude mobile
90900 9999999 # ...but exclude special services
;
; --- UK — (T) (V) (S)
;
441 1 # UK landlines
442 1 # UK landlines
;
; --- USA — (E)
;
1 1 # USA 
;
1456 9999999  # ...but exclude special services
1500 9999999  # ...but exclude special services
1600 9999999  # ...but exclude special services
1670 9999999  # ...but exclude special services
1700 9999999  # ...but exclude special services
1709 9999999  # ...but exclude special services
1710 9999999  # ...but exclude special services
1800 9999999  # ...but exclude special services
1809 9999999  # ...but exclude special services
1866 9999999  # ...but exclude special services
1867 9999999  # ...but exclude special services
1877 9999999  # ...but exclude special services
1880 9999999  # ...but exclude special services
1888 9999999  # ...but exclude special services
1900 9999999  # ...but exclude special services
;
;1XXX976 9999999 # reserved
;1XXX555 9999999 # reserved
;1X11 9999999 # N11
;
;_1NPA Country
;
1242 9999999 # ...but exclude BAHAMAS
1246 9999999 # ...but exclude BARBADOS
1264 9999999 # ...but exclude ANGUILLA
1268 9999999 # ...but exclude ANTIGUA/BARBUDA
1284 9999999 # ...but exclude BRITISH VIRGIN ISLANDS
1340 9999999 # ...but exclude U.S. Virgin Islands 340
1345 9999999 # ...but exclude CAYMAN ISLANDS
1441 9999999 # ...but exclude BERMUDA
1473 9999999 # ...but exclude GRENADA
1649 9999999 # ...but exclude TURKS & CAICOS ISLANDS
1664 9999999 # ...but exclude MONTSERRAT
1671 9999999 # ...but exclude Guam 671 
1758 9999999 # ...but exclude ST. LUCIA
1767 9999999 # ...but exclude DOMINICA
1784 9999999 # ...but exclude ST. VINCENT & GRENADINES
1787 9999999 # ...but exclude Puerto Rico 787, 939 
1809 9999999 # ...but exclude DOMINICAN REPUBLIC
1829 9999999 # ...but exclude DOMINICAN REPUBLIC
1868 9999999 # ...but exclude TRINIDAD AND TOBAGO
1869 9999999 # ...but exclude ST. KITTS AND NEVIS
1876 9999999 # ...but exclude JAMAICA
1939 9999999 # ...but exclude Puerto Rico 787, 939  




Comments

Comments Filter
222

333am having problems with voippstunt

by mbong, Monday 19 of February, 2007 [13:11:27 UTC]
I keep getting the message "call ended by the other party due to unknowm error"when i try to make a call,although i have 10€ of credit in my account i can't make even a single call.
I have tried lowratevoip and i still have the same problem.
can somebody tell me what to do?
the customer care service has not bothered to reply to any of my complaints,so i am trying this forum now to see if it works.
thanks
222

333Re: A possibly better way to do isolation of chargeable routes from free routes in Asterisk@Home

by jakeshaw, Tuesday 11 of July, 2006 [21:37:33 UTC]
Does anyone have working settings for Voipstunt running on AAH2.8?
If so, if you could post your trunk settings id be grateful! I have tried for days but keep getting "all circuits are busy" message :(
222

333Re: Incoming call on VoIP-In issue

by enzo, Thursday 16 of March, 2006 [08:08:39 UTC]
> But it worked only one time, and now when I call my DID
> number I got a congestion tone... Maybe it is a VoipStunt
> problem, I will try again later.

Nicolas,
at least for VoIP-in numbers in the UK, there is (was?) a faulty gateway that doesn't pass calls (but to the caller, in my case, it appears to be ringing, not busy or congested). On the 4th of February I sent a report to the customer service, but never received any reply :-( Here it is:

Problem: incoming calls to my VoIP-in number 0044-560-******* sometimes do
not pass the audio: the caller keeps hearing ringback tone (as if nobody
had answered the phone) and the called party hears silence.
Hint: This seems to always happen when the Media Gateway that handles the
call has IP address 194.120.0.42 . Everything always works fine when the
Media Gateway has addresses 80.239.235.41 or 194.221.62.42 . I found this
out by analyzing the SDP data sent in the SIP INVITE by sip.voipstunt.com
to my Asterisk server.
Best regards,
Enzo Michelangeli

222

333incoming calls - line ring busy

by citrix34, Tuesday 14 of March, 2006 [23:11:11 UTC]
Under Voipstunt...
i try to contact my asterisk Pabx with the phone number Voipstunt provides to me but it rings always busy ...
Any idea ? could anyone give me a sample of setup for incoming calls with VoipStunt ?
Cheers
222

333A possibly better way to do isolation of chargeable routes from free routes in Asterisk@Home

by michigantelephone, Saturday 11 of March, 2006 [09:00:22 UTC]
There is an easier way to block calls to the high-cost destinations while still allowing calls to the "free" destinations in Asterisk@Home. The key is to first create an ENUM trunk - this is very easy to do, just go to trunks, click on "Add ENUM Trunk", and then in the outgoing dial rules just put something that makes sense in your area - for example if you were in Grand Rapids, Michigan (USA) you might put something like this:

1616+NXXXXXX
1NXXNXXXXXX
011|.

First line adds county and area code to numbers dialed using seven digits only, the second line passes numbers using 11 digits to country code "1" unchanged, and the final line strips the international prefix "011" from all international calls. In almost all my outgoing routes (the ones that process any "normal" number, as opposed to something like a Free Word Dialup number) I have it try the ENUM trunk FIRST, because if it finds a direct ENUM route the call will be free and you will probably get a much better connection.

However, the great thing about having an ENUM trunk is that you can use it as the one and only trunk available for high-cost routes, if you prefer to block calls on those routes entirely (as you might if you never call those areas, or use a calling card to place such calls). You don't really care if a call to a high cost number actually finds its way over an ENUM route, now do you?

So having set up your ENUM trunk, you then set up your outbound routes so they are checked in this order. Note I have separate routes for things that you may wish to combine, but only because it gives me more flexibility in how I handle them (for example there are several ways to send out toll-free calls in the U.S., e.g. SIPbroker, Free World Dialup, VoIPStunt, a PSTN line if available, etc).

So here is I have my routes set up (from first checked to last checked - SEE NOTE AT BOTTOM OF THIS COMMENT, ASTERISK@HOME MAY NOT BE ORDERING ROUTES AS YOU THINK!):

          • USTollFree

Dial patterns accepted are:

1800NXXXXXX
1822NXXXXXX
1833NXXXXXX
1844NXXXXXX
1855NXXXXXX
1866NXXXXXX
1877NXXXXXX
1888NXXXXXX

For trunk sequence I have ENUM first (no harm in checking) then three different ways I know of to send out toll free.

          • FriendsName

A special route (and trunk) I have to directly send certain specific numbers directly to a friend's Asterisk box

          • FreeWorldDialup

Simply because I want to get this out of the way (and not have any blocking apply) I put this here. Dial patterns are XXXXX and
XXXXXX and the only trunk these can go to is the IAX trunk to FWD. Many readers probably won't have this route, but if you do it probably won't work right if you put it any later in the sequence of routes.

Now we get to handling non-tollfree calls that have PSTN-type numbers...

          • NANPHighCostBlock

These are the "exceptions" in the North American Numbering Plan - not regular codes in the 50 U.S. States or D.C., not Canada, not toll-free. I don't want these to go anywhere except ENUM. Note that with some other services some of these area codes might be included in the plan (such as U.S. Territories like Puerto Rico, the Virgin Islands, etc.) but for now I leave those in the exceptions. The dial plan for these is:

1242.
1246.
1264.
1268.
1284.
1340.
1345.
1441.
1456.
1473.
1500.
1600.
1649.
1664.
1670.
1671.
1700.
1709.
1710.
1758.
1767.
1784.
1787.
1809.
1829.
1867.
1868.
1869.
1876.
1880.
1900.
1939.
1XXX976.

Again, the above are allowed to try the ENUM trunk only (and will usually fail). You may optionally want to add codes like 411, 1411, and 1XXX5551212, if you want directory assistance calls to fail (of course, you may prefer to map these numbers to one of the "free" directory assistance services).

          • USA

Having done away with the high cost calls in the North American Numbering Plan, we can now handle the USA calls. I separate these from the Canadian calls because I have access to another service (not free, but unlimited residential usage) that allows USA calls only. Depending on the specific plans you have, you may want to combine the USA and Canada, which comes next. Dial plan is:

1201NXXXXXX
1202NXXXXXX
1203NXXXXXX
1205NXXXXXX
1206NXXXXXX
1207NXXXXXX
1208NXXXXXX
1209NXXXXXX
1210NXXXXXX
1212NXXXXXX
1213NXXXXXX
1214NXXXXXX
1215NXXXXXX
1216NXXXXXX
1217NXXXXXX
1218NXXXXXX
1219NXXXXXX
1224NXXXXXX
1225NXXXXXX
1228NXXXXXX
1229NXXXXXX
1231NXXXXXX
1234NXXXXXX
1239NXXXXXX
1240NXXXXXX
1248NXXXXXX
1251NXXXXXX
1252NXXXXXX
1253NXXXXXX
1254NXXXXXX
1256NXXXXXX
1260NXXXXXX
1262NXXXXXX
1267NXXXXXX
1269NXXXXXX
1270NXXXXXX
1276NXXXXXX
1281NXXXXXX
1301NXXXXXX
1302NXXXXXX
1303NXXXXXX
1304NXXXXXX
1305NXXXXXX
1307NXXXXXX
1308NXXXXXX
1309NXXXXXX
1310NXXXXXX
1312NXXXXXX
1313NXXXXXX
1314NXXXXXX
1315NXXXXXX
1316NXXXXXX
1317NXXXXXX
1318NXXXXXX
1319NXXXXXX
1320NXXXXXX
1321NXXXXXX
1323NXXXXXX
1325NXXXXXX
1330NXXXXXX
1334NXXXXXX
1336NXXXXXX
1337NXXXXXX
1339NXXXXXX
1347NXXXXXX
1351NXXXXXX
1352NXXXXXX
1360NXXXXXX
1361NXXXXXX
1385NXXXXXX
1386NXXXXXX
1401NXXXXXX
1402NXXXXXX
1404NXXXXXX
1405NXXXXXX
1406NXXXXXX
1407NXXXXXX
1408NXXXXXX
1409NXXXXXX
1410NXXXXXX
1412NXXXXXX
1413NXXXXXX
1414NXXXXXX
1415NXXXXXX
1417NXXXXXX
1419NXXXXXX
1423NXXXXXX
1424NXXXXXX
1425NXXXXXX
1430NXXXXXX
1432NXXXXXX
1434NXXXXXX
1435NXXXXXX
1440NXXXXXX
1443NXXXXXX
1469NXXXXXX
1470NXXXXXX
1478NXXXXXX
1479NXXXXXX
1480NXXXXXX
1484NXXXXXX
1501NXXXXXX
1502NXXXXXX
1503NXXXXXX
1504NXXXXXX
1505NXXXXXX
1507NXXXXXX
1508NXXXXXX
1509NXXXXXX
1510NXXXXXX
1512NXXXXXX
1513NXXXXXX
1515NXXXXXX
1516NXXXXXX
1517NXXXXXX
1518NXXXXXX
1520NXXXXXX
1530NXXXXXX
1540NXXXXXX
1541NXXXXXX
1551NXXXXXX
1559NXXXXXX
1561NXXXXXX
1562NXXXXXX
1563NXXXXXX
1567NXXXXXX
1570NXXXXXX
1571NXXXXXX
1573NXXXXXX
1574NXXXXXX
1580NXXXXXX
1585NXXXXXX
1586NXXXXXX
1601NXXXXXX
1602NXXXXXX
1603NXXXXXX
1605NXXXXXX
1606NXXXXXX
1607NXXXXXX
1608NXXXXXX
1609NXXXXXX
1610NXXXXXX
1612NXXXXXX
1614NXXXXXX
1615NXXXXXX
1616NXXXXXX
1617NXXXXXX
1618NXXXXXX
1619NXXXXXX
1620NXXXXXX
1623NXXXXXX
1626NXXXXXX
1630NXXXXXX
1631NXXXXXX
1636NXXXXXX
1641NXXXXXX
1646NXXXXXX
1650NXXXXXX
1651NXXXXXX
1660NXXXXXX
1661NXXXXXX
1662NXXXXXX
1678NXXXXXX
1682NXXXXXX
1701NXXXXXX
1702NXXXXXX
1703NXXXXXX
1704NXXXXXX
1706NXXXXXX
1707NXXXXXX
1708NXXXXXX
1712NXXXXXX
1713NXXXXXX
1714NXXXXXX
1715NXXXXXX
1716NXXXXXX
1717NXXXXXX
1718NXXXXXX
1719NXXXXXX
1720NXXXXXX
1724NXXXXXX
1727NXXXXXX
1731NXXXXXX
1732NXXXXXX
1734NXXXXXX
1740NXXXXXX
1754NXXXXXX
1757NXXXXXX
1760NXXXXXX
1762NXXXXXX
1763NXXXXXX
1765NXXXXXX
1769NXXXXXX
1770NXXXXXX
1772NXXXXXX
1773NXXXXXX
1774NXXXXXX
1775NXXXXXX
1781NXXXXXX
1785NXXXXXX
1786NXXXXXX
1801NXXXXXX
1802NXXXXXX
1803NXXXXXX
1804NXXXXXX
1805NXXXXXX
1806NXXXXXX
1808NXXXXXX
1810NXXXXXX
1812NXXXXXX
1813NXXXXXX
1814NXXXXXX
1815NXXXXXX
1816NXXXXXX
1817NXXXXXX
1818NXXXXXX
1828NXXXXXX
1830NXXXXXX
1831NXXXXXX
1832NXXXXXX
1843NXXXXXX
1845NXXXXXX
1847NXXXXXX
1848NXXXXXX
1850NXXXXXX
1856NXXXXXX
1857NXXXXXX
1858NXXXXXX
1859NXXXXXX
1860NXXXXXX
1862NXXXXXX
1863NXXXXXX
1864NXXXXXX
1865NXXXXXX
1870NXXXXXX
1878NXXXXXX
1901NXXXXXX
1903NXXXXXX
1904NXXXXXX
1906NXXXXXX
1907NXXXXXX
1908NXXXXXX
1909NXXXXXX
1910NXXXXXX
1912NXXXXXX
1913NXXXXXX
1914NXXXXXX
1915NXXXXXX
1916NXXXXXX
1917NXXXXXX
1918NXXXXXX
1919NXXXXXX
1920NXXXXXX
1925NXXXXXX
1928NXXXXXX
1931NXXXXXX
1936NXXXXXX
1937NXXXXXX
1940NXXXXXX
1941NXXXXXX
1947NXXXXXX
1949NXXXXXX
1951NXXXXXX
1952NXXXXXX
1954NXXXXXX
1956NXXXXXX
1970NXXXXXX
1971NXXXXXX
1972NXXXXXX
1973NXXXXXX
1978NXXXXXX
1979NXXXXXX
1980NXXXXXX
1985NXXXXXX
1989NXXXXXX
NXXXXXX

Note I do allow seven digit dialing (the 1+ area code is prepended by the trunk dial plans). I have this one try the ENUM trunk first, then whatever other trunks I have available and may want to use.

          • Canada

Same as the USA except Canadian area codes and I use a slightly different trunk selection, still ENUM first. Dial plan is:

1204NXXXXXX
1250NXXXXXX
1289NXXXXXX
1306NXXXXXX
1403NXXXXXX
1416NXXXXXX
1418NXXXXXX
1450NXXXXXX
1506NXXXXXX
1514NXXXXXX
1519NXXXXXX
1604NXXXXXX
1613NXXXXXX
1647NXXXXXX
1705NXXXXXX
1709NXXXXXX
1778NXXXXXX
1780NXXXXXX
1807NXXXXXX
1819NXXXXXX
1867NXXXXXX
1902NXXXXXX
1905NXXXXXX

If, for example, one of your providers offers free calling to Puerto Rico and another doesn't, you can create a separate route just for Puerto Rico, as I have done here for Canada, and only use ENUM and trunks to the carriers that allow Puerto Rico calls in their calling plan. You can have as many routes as you need to cover all situations, BUT be careful because the Asterisk Management Panel might be lying to you about the ordering of the routes (see below)!.

Now having disposed on the NANP stuff, we deal with the International, Note that in North America we dial 011 for International calls, so that starts most lines in these next sections (people in other areas can substitute 00 or whatever you use as an International prefix).

          • BlockHighCostIntl

In this route I put all the International points that I don't want to call, but that might be included within other areas that I do want to allow calling to (the exceptions in the script elsewhere on this page, such as mobile and special services numbers). These are only allowed to use the ENUM trunk, which as a practical matter means that most of the time they will fail. My dial plan on March 10, 2006 is as follows (note the first entry in 0111. so no one can sneak out a NANP call by using the international prefix):

0111.
011316.
011318.
011319.
0113217.
011324.
011327.
0113296.
0113297.
011336.
011338.
011346.
0113480.
0113490.
01135054.
01135056.
01135057.
01135058.
011351169.
011351189.
011351470.
0113516.
0113518.
0113519.
0113520.
0113522.
0113526.
0113529.
0113538.
0113543.
0113546.
0113548.
01135770.
0113579.
0113581.
01135820.
01135829.
01135830.
01135839.
0113584.
01135850.
01135859.
01135860.
01135869.
0113587.
01135880.
01135889.
01135890.
01135899.
01135917.
01135948.
01135987.
01135988.
01135989.
01135998.
01135999.
0113620.
0113630.
0113650.
0113660.
0113670.
01137158.
01137159.
0113716.
0113718.
0113719.
0113763.
0113764.
0113766.
0113774.
0113776.
01138560.
01138562.
01138576.
01138577.
0113859.
0114120.
0114170.
0114174.
0114176.
0114177.
0114178.
0114179.
0114180.
0114186.
0114189.
0114190.
0114235.
0114236.
0114237.
01143650.
0114366.
0114367.
0114368.
0114369.
01143710.
01143711.
01143720.
01143730.
01143740.
01143780.
011438.
011439.
011452.
0114530.
0114531.
0114540.
0114541.
0114542.
0114550.
0114551.
0114552.
0114560.
0114561.
0114570.
0114572.
0114577.
0114588.
0114590.
01145922.
0114610.
01146124.
01146126.
01146127.
01146129.
0114620.
01146252.
01146450.
01146458.
01146518.
01146519.
01146592.
01146593.
01146595.
01146596.
011467.
011474.
011478.
011479.
01148400.
0114850.
0114851.
0114860.
0114864.
0114866.
0114869.
01148707.
01148708.
01148800.
01148801.
01148804.
01148806.
01148808.
0114888.
0114890.
011491.
01149700.
01149701.
01149800.
011549.
011561.
011568.
011569.
0115711.
011573.
011601.
0116107.
0116108.
011611.
011614.
011615.
0116178.
0116179.
01161891.
011642.
011648.
01164900.
0118110.
0118130.
0118131.
0118140.
0118150.
0118160.
0118170.
0118180.
0118190.
011821.
01188660.
01188670.
0118869.
011905.
01190900.
011995321.
011995322.
011995325.
011995328.
0119953297.
01199555.
01199577.
01199590.
01199593.
01199595.
01199597.
01199598.
01199599.

          • International

Here are the places we DO want to allow calls to, except for the codes above. Trunks used are ENUM first, then VoIPstunt (note the 011 is stripped in the trunk dial plans). Dial plan is:

01131.
01132.
0113242.
0113243.
0113271.
01133.
01134.
011350.
011351.
011352.
011353.
011354.
011357.
011358.
011359.
01136.
011371.
011376.
011377.
011385.
011390.
01141.
011423.
01143.
01143662.
011441.
011442.
01145.
01146.
01147.
01148.
01149.
01154.
01156.
01157.
01160.
01161.
01164.
01165.
01181.
01182.
011852.
01186.
011886.
01190.
011976.
011995.

Again, the key to this working is that the route for places we disallow is ABOVE the route for places we allow, and that route only allows access to the free ENUM trunk.

          • OtherIntl

Dial plan is simply 011. and I only let it try the ENUM trunk. It's just here to catch any international calls that have fallen through before we get to...

          • Sipbroker

This is sort of my last ditch desperation attempt to find a free route if nothing else has matched. Dial plan I use is *. and
XXXXXX. and I only let it go to the SIPbroker trunk. In case you are wondering, a SIPbroker trunk is easy to create, the only fields you need to fill in are the Trunk Name Outgoing Settings, and I only have these four lines in the latter:

canreinvite=yes
host=sipbroker.com
port=5059
type=friend

However if you never use SIPbroker you might want to leave this route out.

Note, no scripts required, it's just a matter of putting the more specific dial plans before the less specific ones (when either might match), and keeping in mind that you are not limited to one route per trunk and can in fact have any route check multiple trunks. And that the ENUM trunk is always free and simply will reject the call if there's no ENUM mapping for it. Hope this helps someone, and please comment if you see any errors in my logic (also feel free to copy this if it might be useful elsewhere).

Also please note that the code numbers are for ILLUSTRATIVE PURPOSES ONLY, and I do NOT guarantee that I have correctly identified the high or low cost area/city/country codes. Indeed, these will vary from provider to provider.

NOTE ABOUT ROUTE ORDERING IN ASTERISK@HOME: You will note that I have quite a few routes above. It seems that if you have 9 routes or less, the Asterisk Management Panel shows the ordering correctly. However if you add a tenth route, everything breaks. The reason will become obvious if you open up extensions_additional.conf and look in the outbound-allroutes section of the file.

What you will see is that each route has a three digit number, starting with 001. The routes are displayed in the Asterisk Management Panel in numerical order, but the routes are actually checked in the order in which they appear in extensions_additional.conf - more than nine routes and these are NOT the same, at least not in AAH version 2.4. And bear in mind that you can't just edit extensions_additional.conf, because the Asterisk Management Panel will just rewrite your changes the next time you make any edits using AMP.

So what you need to do is make sure that the routes are the way you want them in extensions_additional.conf, but you have to actually move them using AMP. How to do that is left as a puzzle for the reader to figure out. I hope this bug was squashed in more recent versions (when are they going to provide an upgrade path?) but it sure gave me fits until I figured out what was happening!
222

333Re: Incoming call on VoIP-In issue

by Nick69, Friday 10 of March, 2006 [07:16:52 UTC]
Thanks Enzo & Yves!

Using the default context didn't work, but the Enzo's way with a dummy Anonymous entry yes! But it worked only one time, and now when I call my DID number I got a congestion tone... Maybe it is a VoipStunt problem, I will try again later.

Thanks again!
222

333Re: Incoming call on VoIP-In issue

by enzo, Wednesday 08 of March, 2006 [04:00:16 UTC]
Nicolas,
You are assuming that the incoming calls will be sent from the user "myuser", but VoipStunt's gateways are not fully SIP compliant: the SIP INVITEs have a "From:" URI pointing to the username "Anonymous", so you'll have to create a dummy entry for it:

[Anonymous]
type=user       ; to receive incoming calls from Voipstunt's DID (user=Anonymous)
context=from-voipstunt ; context accepting the "myuser" extension that VS calls
disallow=all
allow=alaw
allow=gsm
canreinvite=no ; VoipStunt answers "400 Bad request" to reINVITEs
dtmfmode=inband
progressinband=yes

Also, there is a second brokenness: they ignore any contact information you pass in the "register" (e.g., in Asterisk with a trailing "/nnn"), and always set the recipient of the INVITE to the username used for the authentication. So, in the "from-voipstunt" context of extensions.conf you'll have to catch calls to the extension "myuser", if only to pass the control elsewhere in the dialplan:

[from-voipstunt]
exten => myuser,n,Goto(default,s,1) 

Of course, now your voipstunt-sip section in sip.conf may become of "type=peer", as it can only handle outbound calls.
222

333RE : Incoming call on VoIP-In issue

by munshine, Friday 03 of March, 2006 [16:07:24 UTC]
Hi Nicolas,
Try default context in dial plan!
On my system incoming calls never go in voipstunt-in context.

I have another pb with voipstunt incoming calls, voice channels comes up after a 10 sec delay ! Does anybody know why?
222

333Incoming call on VoIP-In issue

by Nick69, Tuesday 28 of February, 2006 [21:32:07 UTC]
Hi all,

I tried all configurations around there, but I can't recieve any call via the VoIP-In number from VoipStunt (and VoipBuster and Netappel).
I call the number, and get no response (no sounds), then I get a congestion tone. Debug mode show me nothing... :'(
Here is my sip.conf part:

voipstunt-sip
type=friend
context=from-voipstunt
dtmfmode=inband
progressinband=yes
host=sip.voipstunt.com
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g726
insecure=very
username=myuser
fromuser=myuser
fromdomain=voipstunt.com
secret=mypass
qualify=1000
canreinvite=no
register => myuser:mypass@sip.voipstunt.com

And here is the extension.conf part:

from-voipstunt
exten => myuser,1,NoOp(Incoming call from VoipStunt +33123456789)
exten => myuser,2,Dial(IAX2/Test)
exten => myuser,3,Hangup

Any idea ?



222

333Re: voipstunt has changed something ?

by enzo, Wednesday 15 of February, 2006 [09:54:40 UTC]
In the past I had similar problems for one day or so, then it went back to normal. At the moment everything seems to work fine: perhaps the server you were accessing was undergoing maintenance.