[Home]

Summary:ASTERISK-10172: Registration failed with Wengo - Timeout
Reporter:tootai (tootai)Labels:
Date Opened:2007-08-26 11:30:57Date Closed:2007-08-30 15:59:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The last trunk doesn't register with Wengo as the last SVN 1.4 does. In sip.conf, the outboundproxy contains 213.91.9.206:5060, outboundproxyport is commented. Other providers are OK.

Here are the debug logs:

[Aug 26 18:14:11] NOTICE[23748] chan_sip.c:    -- Registration for 'tootai@wengo' timed out, trying again (Attempt #1)
[Aug 26 18:14:31] NOTICE[23748] chan_sip.c:    -- Registration for 'tootai@wengo' timed out, trying again (Attempt #2)
[Aug 26 18:14:51] NOTICE[23748] chan_sip.c:    -- Registration for 'tootai@wengo' timed out, trying again (Attempt #3)
[Aug 26 18:14:51] VERBOSE[23748] logger.c: REGISTER 12 headers, 0 lines
[Aug 26 18:14:51] VERBOSE[23748] logger.c: Reliably Transmitting (NAT) to 213.91.9.206:5060:
REGISTER sip:voip.wengo.fr SIP/2.0
Via: SIP/2.0/UDP OurIP:0;branch=z9hG4bK79bfc4a7;rport
Max-Forwards: 70
From: <sip:<OurUser>@voip.wengo.fr>;tag=as1139f146
To: <sip:<OurUser>@voip.wengo.fr>
Call-ID: 0c124753757d034577ac7f3c0059caca@voip.wengo.fr
CSeq: 105 REGISTER
User-Agent: TOOTAi PBX
Expires: 120
Contact: <sip:<OurUser>@OurIP:0>
Event: registration
Content-Length: 0


---
[Aug 26 18:14:51] VERBOSE[23748] logger.c: Really destroying SIP dialog '0c124753757d034577ac7f3c0059caca@voip.wengo.fr' Method: REGISTER
[Aug 26 18:14:52] VERBOSE[23748] logger.c: Retransmitting #1 (NAT) to 213.91.9.206:5060:
REGISTER sip:voip.wengo.fr SIP/2.0
Via: SIP/2.0/UDP 83.22.238.185:0;branch=z9hG4bK79bfc4a7;rport
Max-Forwards: 70
From: <sip:tootai@voip.wengo.fr>;tag=as1139f146

Daniel
Comments:By: Joshua C. Colp (jcolp) 2007-08-27 07:12:58

Please provide the relevant sip.conf parts minus passwords. Looks like the port for your local Asterisk box isn't getting set properly, probably causing the remote side to freak out.

By: Brandon Kruse (bkruse) 2007-08-27 09:04:45

File,

I have been working on a patch to brush on some asterisk programming, do we want this to be an option? To be able to set outboundproxy=ipaddress:port ?

-bk

By: tootai (tootai) 2007-08-27 10:24:55

File,

the setup is perfectly working with SVN 1.4, Only outboundproxyport is removed for trunk. Anyway, here is the sip.conf

[wengo]                         ;outgoing calls
type=peer
username=<myuser>
fromuser=<myuser>
secret=<mysecret>
fromdomain=voip.wengo.fr
realm=voip.wengo.fr
host=voip.wengo.fr              
outboundproxy=213.91.9.206:5060
;outboundproxyport=5060         ;For 1.4
dtmfmode=inband                 ;changed 30/01/07, was auto
disallow=all
allow=ulaw,alaw,slin
context=incoming-wengo
insecure=port,invite
registerattempts=0              ;given by wengo 04/05/07
registertimeout=10              ;idem
defaultexpiry=3600              ;idem
nat=yes
canreinvite=no                  ;from 08/10/06
language=fr

--
Daniel

By: Joshua C. Colp (jcolp) 2007-08-27 10:32:01

How about the general section and register line?

By: tootai (tootai) 2007-08-27 11:29:45

;
; SIP Configuration example for Asterisk


[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
realm=voip.tootai.net           ; Realm for digest authentication
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
tos_sip=cs3                    ; Sets TOS for SIP packets.
tos_audio=ef                   ; Sets TOS for RTP audio packets.
tos_video=af41                 ; Sets TOS for RTP video packets.

disallow=all                    ; First disallow all codecs
allow=ilbc,gsm,ulaw,alaw        ; Allow codecs in order of preference
relaxdtmf=yes                   ; Relax dtmf handling
useragent=TOOTAi PBX            ; Allows you to change the user agent string
allowsubscribe=yes                      ; Disable support for subscriptions.
subscribecontext=WholeExtensions        ; Set a specific context for SUBSCRIBE t38pt_udptl = yes            ; Default false
#include local/externip.conf    ; contains public IP address
localnet=192.168.0.0/16         ; All RFC 1918 addresses are local networks
#include local/localnet.conf    ; contains public IP address
set canreinvite=nonat
register => myuser:mypassword@wengo/myuser

but this is not the problem. When I switch back to 1.4 it's working again. This setup works since ages, even on servers with asterisk 1.2.

The only thing I know which changed in trunk for those kind of peers is the outboundproxyport who disappear, the port being added to the outboundproxy command. When I run trunk with my 1.4 setup, only Wengo is not ok. And it's the only peer I have with an outboundproxy ...

--
Daniel

By: Digium Subversion (svnbot) 2007-08-30 15:59:07

Repository: asterisk
Revision: 81394

------------------------------------------------------------------------
r81394 | file | 2007-08-30 15:59:07 -0500 (Thu, 30 Aug 2007) | 4 lines

(closes issue ASTERISK-10172)
Reported by: tootai
Make sure the external IP address has the standard SIP port set for when the user does not specify the port in the externip setting.

------------------------------------------------------------------------