This is my private web page. Don't expect much...
How to configure the Tesco Internet Phoneon an Asterisk 1.4.x System
The service is run by FreshTel/Voicestream for them.
Configuration in Asterisk is simple, beside the authentication of incomming calls, where they don't use the password you've chosen.
Codec wise, if you think you have too much echo on the line, try to only include the gsm codec, this might help.
/PhoneNumber/ => The complete number you've been assigned
/Password/ => The password you have
In my dialplan, I've choosen to use 92 as the prefix to reach this network from my phones.
For this reason I prepend this number to every incomming number as well.
If you wonder about the password in the incomming section, that has to be there like this, as they are
really using that one! If it stops working and you don't receive any calls anymore, try to turn auth debug on
and set it to plaintext only. That way you will spot what they have switched to.
As allways, no liabilities accepted at all, use this information at your own risk.
; Register command somewhere in the [General] section
register => /PhoneNumber/:/Password/@gateway.tescointernetphone.com
; This is the Inbound Part
[/PhoneNumber/]
type=user
context=from_tesco
username=/PhoneNumber/
secret=$SECURITY-HOLE$
auth=md5,plaintext
disallow=all
allow=gsm,alaw,ulaw
; The Outbound Part
[tescoout]
type=peer
username=/PhoneNumber/
secret=/Password/
host=gateway.tescointernetphone.com
qualify=yes
disallow=all
allow=gsm,alaw,ulaw
; Inbound Calls
[from_tesco]
exten => /PhoneNumber/,1,Set(CALLERID(num)=92${CALLERID(num)})
exten => /PhoneNumber/,n,Dial(SIP/100,120)
exten => /PhoneNumber/,n,Hangup
; Outbound Calls
[to_tesco]
exten => _92.,1,Set(CALLERID(num)=/PhoneNumber/)
exten => _92.,n,Dial(IAX2/tescoout/${EXTEN:2},120,r)
exten => _92.,n,Hangup
Definitions
iax.conf
extensions.conf