[Asterisk-Users] Dial with 44 and +44 prefix

Marc Storck mstorck at voipgate.com
Mon Oct 31 05:38:08 MST 2005


To bad that prefixes like +220 (Gambia), +230 (Mauritius), +240 
(Equatorial Guinea), +250 (Rwanda), +260 (Zambia), +290 (Saint Helena), 
+350 (Gibraltar), +370 (Lithuania), +380 (Ukraine), +420 (Czech 
Republic), +500 (Falkland Island), +590 (Guadeloupe), +670 (Timor 
Leste), +680 (Palau), +690 (Tokelau), +800 (IFPS), +850 (Northern 
Korea), +870 (Inmarsat), +880 (Bangladesh) and +960 (Maldives) exist, 
otherwise your example would have worked. But you may always include 
these exceptions into your dialplan.

Regards,

Marc

Chris Bagnall wrote:
>>One further question, how can I set up a 
>>line so that if 440 is dialled before a number the 0 is taken 
>>out so only 44 is actually used?
> 
> 
> exten => _440.,1,Dial(IAX2/12345 at XXXX/44${EXTEN:3})
> 
> You could probably do it by playing around with different offets as well:
> 
> exten => _440.,1,Dial(IAX2/12345 at XXXX/${EXTEN::2}${EXTEN:3})
> 
> This would be more flexible if you wanted to do the same for different
> country codes, for example:
> 
> exten => _NX0.,1,Dial(IAX2/12345 at XXXX/${EXTEN::2}${EXTEN:3})
> 
> That would remove the zero from any 2-digit country code.
> 
> exten => _NXX0.,1,Dial(IAX2/12345 at XXXX/${EXTEN::3}${EXTEN:4})
> 
> That'd do the same thing for a 3-digit country code.
> 
> Regards,
> 
> Chris

-- 
voipGATE.com
Support Team




More information about the asterisk-users mailing list