Search:
Asterisk settings for Wengo
Tested on Asterisk 1.4.9.
Conventions:
PHONENUMBER is your phone number assigned by Wengo
USERNAME is your Wengo username chosen when subscribing to Wengo
PASSWORD is your Wengo password chosen when subscribing to Wengo
EMAIL is your email address used when subscribing to Wengo
First you need to get a 16 characters SIP password (referred later to as SIPPASSWORD) from Wengo using Internet Explorer (or any other browser but you will need to view the source of the XML file):
http://ws.wengo.fr/softphone-sso/sso.php?login=EMAIL&password=PASSWORD
You'll get something like this
<?xml version="1.0" ?>
- <sso vapi="1">
<status code="200">OK</status>
<user>USERNAME</user>
<userid>USERNAME</userid>
<displayname>USERNAME</displayname>
<password>SIPPASSWORD</password>
<outbound>1</outbound>
<realm>voip.wengo.fr</realm>
- <proxy>
<host>voip.wengo.fr</host>
<port>5060</port>
</proxy>
- <server>
<host>voip.wengo.fr</host>
<port>5060</port>
</server>
</sso>
- <sso vapi="1">
<status code="200">OK</status>
<user>USERNAME</user>
<userid>USERNAME</userid>
<displayname>USERNAME</displayname>
<password>SIPPASSWORD</password>
<outbound>1</outbound>
<realm>voip.wengo.fr</realm>
- <proxy>
<host>voip.wengo.fr</host>
<port>5060</port>
</proxy>
- <server>
<host>voip.wengo.fr</host>
<port>5060</port>
</server>
</sso>
Then edit sip.conf and extensions.conf
sip.conf
[general]
register => USERNAME:SIPPASSWORD@voip.wengo.fr/USERNAME ;PHONENUMBER should also work (R1)
[voip.wengo.fr]
type=peer
qualify=5000
fromdomain=voip.wengo.fr
fromuser=USERNAME ; Do not put quotes around the username!
username=USERNAME
secret=SIPPASSWORD
progressinband=yes
host=voip.wengo.fr
realm=voip.wengo.fr
outboundproxy=sipproxy.wengo.fr
outboundproxyport=5060
disallow=all
;allow=g729 ;if you have license
allow=ulaw
allow=alaw
dtmfmode=RFC2833
insecure=very
callerid="Firstname Lastname" <PHONENUMBER>
context=to-wengo
autocreatepeer=yes
auth=md5
[general]
register => USERNAME:SIPPASSWORD@voip.wengo.fr/USERNAME ;PHONENUMBER should also work (R1)
[voip.wengo.fr]
type=peer
qualify=5000
fromdomain=voip.wengo.fr
fromuser=USERNAME ; Do not put quotes around the username!
username=USERNAME
secret=SIPPASSWORD
progressinband=yes
host=voip.wengo.fr
realm=voip.wengo.fr
outboundproxy=sipproxy.wengo.fr
outboundproxyport=5060
disallow=all
;allow=g729 ;if you have license
allow=ulaw
allow=alaw
dtmfmode=RFC2833
insecure=very
callerid="Firstname Lastname" <PHONENUMBER>
context=to-wengo
autocreatepeer=yes
auth=md5
Important: SIPPASSWORD is your SIP authentication password, it is NOT your Wengo account password.
extensions.conf
[from-Wengo]
;For incoming calls
;This extension line will ring SIP extension MySipPhone
;60 seconds then hang up. Modify as necessary to fit your dialplan
;Replace USERNAME by PHONENUMBER or whatever you put in register line above (see R1)
exten => USERNAME,1,Dial(SIP/MySipPhone,60,tr)
exten => USERNAME,2,hangup
[to-wengo]
;For outgoing calls
;Modify as necessary to fit your dialplan.
exten => _0.,1,SetCallerID(PHONENUMBER)
exten => _0.,2,SetCIDName(Firstname Lastname)
exten => _0.,3,Dial,SIP/${EXTEN}@voip.wengo.fr
exten => _0.,4,Congestion
[from-Wengo]
;For incoming calls
;This extension line will ring SIP extension MySipPhone
;60 seconds then hang up. Modify as necessary to fit your dialplan
;Replace USERNAME by PHONENUMBER or whatever you put in register line above (see R1)
exten => USERNAME,1,Dial(SIP/MySipPhone,60,tr)
exten => USERNAME,2,hangup
[to-wengo]
;For outgoing calls
;Modify as necessary to fit your dialplan.
exten => _0.,1,SetCallerID(PHONENUMBER)
exten => _0.,2,SetCIDName(Firstname Lastname)
exten => _0.,3,Dial,SIP/${EXTEN}@voip.wengo.fr
exten => _0.,4,Congestion
If you are behind a NAT, add the following in [wengo] in sip.conf
nat=yes
canreinvite=no
- Asterisk | Tips & Tricks | FAQ
Created by: netadmin,Last modification on Thu 09 of Aug, 2007 [21:58 UTC] by monty241070

Page Changes
