Asterisk settings for Wengo
Created by: netadmin,Last modification on Thu 09 of Aug, 2007 [21:58 UTC] by monty241070
This setup is used to dial out from Wengo and to ring a SIP extension on incoming calls. The code is made entirely of excerpts of the configuration files, and need the remaining portions of the files to be useful.
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
Then edit sip.conf and extensions.conf
Important: SIPPASSWORD is your SIP authentication password, it is NOT your Wengo account password.
If you are behind a NAT, add the following in [wengo] in sip.conf
nat=yes
canreinvite=no
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

Comments
333Re: Is this configuration correct ?
333Re: Is this configuration correct ?
[general]
register => USERNAME:SIPPASSWORD@voip.wengo.fr/USERNAME ;PHONENUMBER should also work (R1)
[wengo]
type=peer
fromuser=USERNAME
username=USERNAME
secret=SIPPASSWORD
callerid="Firstname Lastname" <PHONENUMBER>
fromdomain=voip.wengo.fr
host=voip.wengo.fr
port=5060
disallow=all
allow=g729 ;if you have license
allow=ulaw
dtmfmode=auto
context=to-wengo
insecure=very
This config is enought, dtmfmode should be rfc2833 except for the voicemail which need info then set it to auto. outbound parameters are not necessary
333Is this configuration correct ?
- where is used the [to-wengo] part of extensions.conf ?
- "if you are behind a NAT, add the following in [wengo-out] in sip.conf " -> there is no [wengo-out] in sip.conf...
- if you don't have any PHONENUMBER (not included in all offers), what should we write instead ?
My problems :
- if I use [wengo] in sip.conf then I get an error : "hostname/auth name mismatch". This error disapears if I use [USERNAME] instead and add "host=dynamic". (I don't know if this is right to do this)
- I get errors : "SUBSCRIBE request to <sip:dchris@voip.wengo.fr>;tag=xxxxxxxxx failed", "SIP/2.0 401 Unauthorised", "SIP/2.0 484 Address Incomplete".
- I get This : Looking for "NUMBER_IM_CALLING" in from-wengo (domain voip.wengo.fr) -> "SIP/2.0 404 Not Found".
If someone could review this configuration, It would be nice. Thanks in advance.
333Settings are changed now.
http://www.wengo.fr/assistance/forum/viewtopic.php?t=9131&postdays=0&postorder=asc&highlight=asterisk+patch&start=0
333Openwengo call out only sip.conf?