[Gelöst] Mehrere SIP Accounts

asteriskman

Neuer User
Mitglied seit
8 Nov 2012
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen, ich habe folgendes Problem als Asterisk Neuling und hoffe ihr könnt mir helfen:

Wenn ich unter Asterisk 1.8 einen Sipgate Account registriere, funktioniert alles einwandfrei, eingehende und ausgehende Telefonate können geführt werden. Sobald ich jedoch einen zweiten Sipgate Account hinzufüge, registriert sich keiner der beiden Sipgate Accounts erfolgreich. Registration for '[email protected]' timed out, trying again.

Code:
sip.conf:

[general]
language=de
port=5060
bindaddr=0.0.0.0
externip=xxx.dyndns.org
externhost=xxx.dyndns.org
localnet=192.168.1.1
register=>xxxxxxxe0:[email protected]/xxxxxxxe0
register=>xxxxxxxe1:[email protected]/xxxxxxxe1

[xxxxxxxe0]
type=friend
context=sipgate_i
username=xxxxxxxe0
fromuser=xxxxxxxe0
secret=passwort
host=sipgate.de
fromdomain=sipgate.de
qualify=yes
insecure=port,invite
nat=yes

[xxxxxxxe1]
type=friend
context=sipgate_i
username=xxxxxxxe1
fromuser=xxxxxxxe1
secret=passwort
host=sipgate.de
fromdomain=sipgate.de
qualify=yes
insecure=port,invite
nat=yes

Code:
Debug:

Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
[Nov  8 12:29:48] NOTICE[21805]: chan_sip.c:13294 sip_reg_timeout:    -- Registration for '[email protected]' timed out, trying again (Attempt #1981)
Really destroying SIP dialog '[email protected]' Method: REGISTER

<--- SIP read from UDP:217.10.x.x:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.3:5060;received=85.179.x.x;branch=z9hG4bK3028e49a;rport=5060
From: <sip:[email protected]>;tag=as253ed2d0
To: <sip:[email protected]>;tag=c3e497ecaece77a8e244e564b4212178.523c
Call-ID: [email protected]
CSeq: 2045 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="509b93a5067b342baa55164ef100a610d35ffb73", stale=true
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Retransmitting #1 (NAT) to 217.10.x.x:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK333866e5;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as4f2eae82
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2080 REGISTER
User-Agent: Asterisk PBX 1.8.17.0
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.10.x.x:5060:
OPTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK3d772ce8;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as08e49c55
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:29:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.10.x.x:5060:
OPTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK358be4b9;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as766c4977
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:29:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
       > doing dnsmgr_lookup for 'sipgate.de'
REGISTER 10 headers, 0 lines
Reliably Transmitting (NAT) to 217.10.x.x:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK40bb53f4;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as1cd571ed
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2081 REGISTER
User-Agent: Asterisk PBX 1.8.17.0
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
[Nov  8 12:30:08] NOTICE[21805]: chan_sip.c:13294 sip_reg_timeout:    -- Registration for '[email protected]' timed out, trying again (Attempt #1980)
Really destroying SIP dialog '[email protected]' Method: REGISTER

<--- SIP read from UDP:217.10.x.x:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.3:5060;received=85.179.x.x;branch=z9hG4bK46657f7c;rport=5060
From: <sip:[email protected]>;tag=as4bb9ba21
To: <sip:[email protected]>;tag=c3e497ecaece77a8e244e564b4212178.7080
Call-ID: [email protected]
CSeq: 2044 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="509b93b97bd10d43344cbe42f66efa7e4565d5d6"
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Retransmitting #1 (NAT) to 217.10.x.x:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK7fd1bed5;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as4304c4b5
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2082 REGISTER
User-Agent: Asterisk PBX 1.8.17.0
Authorization: Digest username="xxxxxxxe1", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="509a62b646bbcde6a8280e154df681d3d0618429", response="4c205dd7a7c9f0a72a41713d20d44f47"
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
Retransmitting #1 (NAT) to 217.10.x.x:5060:
OPTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK3d772ce8;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as08e49c55
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:29:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Retransmitting #1 (NAT) to 217.10.x.x:5060:
PTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK358be4b9;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as766c4977
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:29:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS
Really destroying SIP dialog '[email protected]:5060' Method: OPTIONS
       > doing dnsmgr_lookup for 'sipgate.de'
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 217.10.x.x:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK666243e2;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as0c52c907
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2083 REGISTER
User-Agent: Asterisk PBX 1.8.17.0
Authorization: Digest username="xxxxxxxe1", realm="sipgate.de", algorithm=MD5, uri="sip:sipgate.de", nonce="509a62b646bbcde6a8280e154df681d3d0618429", response="4c205dd7a7c9f0a72a41713d20d44f47"
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
[Nov  8 12:30:28] NOTICE[21805]: chan_sip.c:13294 sip_reg_timeout:    -- Registration for '[email protected]' timed out, trying again (Attempt #1982)
Really destroying SIP dialog '[email protected]' Method: REGISTER

<--- SIP read from UDP:217.10.x.x:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.3:5060;received=85.179.x.x;branch=z9hG4bK6f941ed5;rport=5060
From: <sip:[email protected]>;tag=as089e694a
To: <sip:[email protected]>;tag=c3e497ecaece77a8e244e564b4212178.8bd2
Call-ID: [email protected]
CSeq: 2046 REGISTER
WWW-Authenticate: Digest realm="sipgate.de", nonce="509b93cdc46792ee410b5b6b0569014d299b23e2", stale=true
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Retransmitting #1 (NAT) to 217.10.x.x:5060:
REGISTER sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK40bb53f4;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as1cd571ed
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 2081 REGISTER
User-Agent: Asterisk PBX 1.8.17.0
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.10.x.x:5060:
OPTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK65b7d0e9;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as46d51434
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:30:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (NAT) to 217.10.x.x:5060:
OPTIONS sip:sipgate.de SIP/2.0
Via: SIP/2.0/UDP 85.179.x.x:5060;branch=z9hG4bK09b3f4bd;rport
Max-Forwards: 70
From: "asterisk" <sip:[email protected]>;tag=as09d7c858
To: <sip:sipgate.de>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.17.0
Date: Thu, 08 Nov 2012 11:30:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

Code:
       > doing dnsmgr_lookup for 'sipgate.de'
linux-wfsm*CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time
sipgate.de:5060                         N      xxxxxxxe1          120 Request Sent
sipgate.de:5060                         N      xxxxxxxe0          120 Unregistered
2 SIP registrations.
linux-wfsm*CLI> exit
linux-wfsm:/etc/asterisk #
 
Zuletzt bearbeitet:
Problem gelöst, nach setzen folgender Zeile mit höherem Timeout werden alle Sipgate Accounts registriert.
Registertimeout=Sekunden
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.