SN2400: wrong password on authentication for INVITE

VOIPdani

Mitglied
Mitglied seit
8 Aug 2005
Beiträge
432
Punkte für Reaktionen
0
Punkte
0
Hallo!

Am Freitag haben wir unser SN2400 in Betrieb genommen und natürlich ausführlich getestet - war alles wunderbar.

Heute waren dann keine ausgehenden Calls mehr möglich, was ein großes Problem darstellt, da das Gateway unsere Schnittstelle ins PSTN ist.
Eingehende Calls waren möglich.

Bei dem Versuch einen Anruf nach extern abzusetzen, sagte mein * folgendes:
Code:
Sep  4 08:35:13 WARNING[9918] chan_sip.c: Forbidden - wrong password on authentication for INVITE to '"723633519213" <sip:[email protected]>;tag=as3f40d88c'

Hat jemand von euch dieses Problem schon mal gehabt?

Mein User am Gateway sieht wie folgt aus:
Code:
Auszug aus sip.conf
[OUTGOING]
name=OUTGOING
canreinvite=no
context=AMS-EXTERN
dtmfmode=rfc2833
host=dynamic
type=friend
insecure=very
secret=asterisk
username=OUTGOING

Zum rauswählen verwende ich folgende Syntax:
Code:
Auszug aus extensions.conf
EXTERN=SIP		
KONTEXT_OUT=OUTGOING

exten => _00X.,1,SetCallerID(${CALLERIDNUM})
exten => _00X.,2,Dial(${EXTERN}/${EXTEN:1}@${KONTEXT_OUT}|60|tr)

Bitte um Hilfe, da ich echt ratlos bin warum dieser Fehler aufgetreten ist!

PS: Ich verwende nur OUTGOING für alle Calls, die über das Gateway laufen, könnte hier das Problem liegen?

lg Dani
 
Hi Dani,

auch das Problem ist mir bekannt. Diese Meldung sagt eigentlich schon alles aus. Der User 723633519213 hat keine Berechtigung. Da sagst du sicherlich: das geht doch gar nicht!?

Das deutet aber auf eine Fehlkonfiguration hin. Kann das sein das dieser Call in der SmartNode wieder zurück auf den Asterisk geleitet wird?

mfg Guard-X
 
Hi Guard-X,

Danke für deine Antwort!

Wie kann ich den User 723633519213 die nötigen Rechte verleihen?

Zu meinem Context CS Switch, der sieht wie folgt aus:
Code:
context cs switch
  national-prefix 0
  international-prefix 00

  routing-table called-e164 Fax
    route 9011 dest-interface fxs_4_3
    route 11 dest-interface fxs_4_3
    route 9801 dest-interface fxs_4_0
    route default dest-interface SIP_GW

  routing-table called-e164 RT_CDPN_ISDN_2_SIP
    route T dest-table Fax MT_ADD_0

  routing-table calling-e164 RT_CDPN_SIP_2_ISDN
    route .T dest-service HUNT-PUBLIC-PSTN CF_TO_PSTN

  routing-table calling-e164 RT_CDPN_FAX_2_ISDN
    route .% dest-service HUNT-PUBLIC-PSTN CF_TO_PSTN_FAX

  mapping-table calling-e164 to calling-e164 MT_ADD_KOPFNR
    map (.%) to \1

  mapping-table calling-e164 to calling-e164 MT_ADD_FAXDW
    map (.%) to 7236****9011

  mapping-table calling-type-of-number to calling-type-of-number MT_TON_PSTN
    map default to national

  mapping-table called-e164 to called-e164 MT_ADD_0
    map $ to 0

  complex-function CF_TO_PSTN
    execute 1 MT_ADD_KOPFNR
    execute 2 MT_TON_PSTN

  complex-function CF_TO_PSTN_FAX
    execute 1 MT_ADD_FAXDW
    execute 2 MT_TON_PSTN

  interface isdn ISDN_1_0
    route call dest-table RT_CDPN_ISDN_2_SIP
    dtmf-dialing

  interface isdn ISDN_1_1
    route call dest-table RT_CDPN_ISDN_2_SIP
    dtmf-dialing

  interface isdn ISDN_1_2
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_1_3
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_2_0
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_2_1
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_2_2
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_2_3
    route call dest-table RT_CDPN_ISDN_2_SIP

  interface isdn ISDN_3_0
    route call dest-service HUNT-PUBLIC-PSTN

  interface isdn ISDN_3_1
    route call dest-service HUNT-PUBLIC-PSTN

  interface isdn ISDN_3_2
    route call dest-service HUNT-PUBLIC-PSTN

  interface isdn ISDN_3_3
    route call dest-service HUNT-PUBLIC-PSTN

  interface sip SIP_GW
    bind gateway Asterisk
    service default
    route call dest-table RT_CDPN_SIP_2_ISDN
    early-connect
    early-disconnect

  interface fxs fxs_4_0
    route call dest-service HUNT-PUBLIC-PSTN

  interface fxs fxs_4_1
    route call dest-service HUNT-PUBLIC-PSTN

  interface fxs fxs_4_2
    route call dest-service HUNT-PUBLIC-PSTN

  interface fxs fxs_4_3
    route call dest-table RT_CDPN_FAX_2_ISDN

  service hunt-group HUNT-PUBLIC-PSTN
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface ISDN_1_0
    route call 2 dest-interface ISDN_1_1
    route call 3 dest-interface ISDN_1_2
    route call 4 dest-interface ISDN_1_3

context cs switch
  no shutdown
Ich glaube nicht das ich den Call wieder zurück auf den Asterisk leite...

Weiters wollte ich dich fragen wie viele SIP-User du am SmartNode hast, bzw. ob 1 User ausreicht um alle Calls zu verwalten.

lg Dani
 
Die SmartNode benötigt nur einen Account am * für kommende und gehende Gespräche.

Nimm mal das Kennwort für diesen Account am Asterisk und in der SmartNode raus, zum Testen. Geht das dann?

Da müssen wir dann mal weitersehen...

mfg Guard-X
 
Also am Kennwort scheitert es nicht, das hab ich schon testweise rausgenommen...

Du hast ja vorher erwähnt, das dir das Problem bekannt sei bzw. das die Ursache eine Fehlkonfiguration ist. Kannst du mir diese Fehlkonfiguration genauer beschreiben?

lg
 
Also ich hatte auch an mehreren Stellen diesen Fehler.

z.B.
Ich rufe aus der SmartNode heraus. Für dieses Gespräch ist das Gerät am Asterisk authentifiziert. Im gleichen Moment kommt der Ruf aus irgendwelchen Gründen wieder rein (z.B. Rufumleitung), bei diesem zweiten Mal sagt der Asterisk ist nicht - geht nicht...

Du müsst mal mit den Debugmöglichkeiten den Call verfolgen, dann kann man das Problem genau erkennen. Vielleicht liegt es aber auch an dem SIP-User, den du in der SmartNode verwendest. Wie sehen die Einstellungen in der SmartNode aus?

mfg Guard-X
 
Der SIP-User, den ich am SmartNode verwende, sieht wie folgt aus:
Code:
gateway sip Asterisk
  bind interface eth0 router

  service default
    domain 172.21.0.160
    realm 172.21.0.160
    authentication OUTGOING password Wmnvmmbb5BwWqL+4Oy6gow== encrypted
    default-server 172.21.0.160 5060 loose-router
    registrar 172.21.0.160 5060
    user OUTGOING

gateway sip Asterisk
  no shutdown

Auszug aus sip.conf
[OUTGOING]
name=OUTGOING
canreinvite=no
context=AMS-EXTERN
dtmfmode=rfc2833
host=dynamic
type=friend
insecure=very
secret=asterisk
username=OUTGOING

Hier hab ich einige Debugs eines solchen Calls, vielleicht kann man mit diesen Debugs das Problem eingrenzen:
Code:
07:35:12  SIP_SI> [GW Asterisk] < Stack: New Context Needed
07:35:17  SIP_TR> [GW] < Stack: from 172.21.0.160:5060
INVITE sip:066454*****@172.21.0.164 SIP/2.0
Via: SIP/2.0/UDP 172.21.0.160:5060;branch=z9hG4bK725bb8bb;rport
From: "723633519213" <sip:[email protected]>;tag=as77cf5d3f
To: <sip:066454*****@172.21.0.164>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Mon, 04 Sep 2006 05:35:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 238

v=0
o=root 7261 7261 IN IP4 172.21.0.160
s=session
c=IN IP4 172.21.0.160
t=0 0
m=audio 19492 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -

07:35:17  SIP_SI> [GW Asterisk] < Stack: New Context Needed
07:35:17  SIP_SI> [PR SIP_GW] Added endpoint SIP_GW-009c34f0
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > LocCp: Build Local Capabilities merging Configured/Peer Cap
abilities
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Configured Codecs:       Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Peer Codecs:             N/A
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Resulting Local Codecs:  Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > RemCp: Build Remote Capabilities merging Configured/Remote 
Capabilities
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Configured Codecs:       Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Remote Codecs:           N/A
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Resulting Remote Codecs: Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Creating a new session
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Adding a new session
07:35:17  SIP_TR> [GW] > Stack: to 172.21.0.160:5060
SIP/2.0 100 Trying
Call-ID: [email protected]
CSeq: 102 INVITE
From: "723633519213" <sip:[email protected]>;tag=as77cf5d3f
To: <sip:066454*****@172.21.0.164>;tag=aeffe10fec88fdb
Via: SIP/2.0/UDP 172.21.0.160:5060;branch=z9hG4bK725bb8bb;rport
Content-Length: 0
User-Agent: Patton SN2400 MxSF v3.2.7.44 00A0BA01E76E


07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] < Stack: INVITE <sip:066454*****@172.21.0.164>
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708]          From:                "723633519213" <si
p:[email protected]>
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708]          To:                  <sip:066454*****@1
72.21.0.164>
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708]          Cn-Remote-Party-ID:  (invalid)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708]          Cd-Remote-Party-ID:  (invalid)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708]          P-Asserted-Identity: (invalid)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] < SM   : Event 'Stk-Invited' (State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] < SM   : Event 'RX-Invite' (State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] > SM   : Action 'Negotiate-Received-Offer'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] < Stack: Negotiating offer
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] > SM   : New state 'Final-Offer-Received'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] > SM   : Action 'Publish-Negotiated-Capabili
ties'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > RemCp: Build Remote Capabilities merging Configured/Remote 
Capabilities
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Configured Codecs:       Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Remote Codecs:           Voice: G.711 A-law[any/any]
[ss], G.711 u-law[any/any][ss]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Resulting Remote Codecs: Voice: G.711 A-law[20/20], 
G.711 u-law[20/20]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : New state 'Establishing-Incoming'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : Action 'App-Offered'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] < SM   : Event 'Active-Session-Offered' (Active State 'Idle',
 Passive State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : New active state 'Peer-Trying' (Code: 0)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : Action 'Call-Control-Dial'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > RemCp: Build Remote Capabilities merging Configured/Remote 
Capabilities
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Configured Codecs:       Voice: G.711 A-law[20/20], 
G.711 u-law[20/20], Transparent[10/10] / Fax: T.38 UDP[1/1][rel], G.711 A-law[20/20][vbd] / Modem: G
.711 A-law[20/20][!ec][vbd]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Remote Codecs:           Voice: G.711 A-law[any/any]
[ss], G.711 u-law[any/any][ss]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0]          Resulting Remote Codecs: Voice: G.711 A-law[20/20], 
G.711 u-law[20/20]
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] < SM   : Event 'CC-Proceeding' (Active State 'Peer-Trying', P
assive State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : New active state 'Peer-Proceeding' (Code: 0)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : Action 'Session-Proceeding'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] < SM   : Event 'App-Proceeding' (State 'Establis
hing-Incoming')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : Action 'Stk-Status(183)'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] < SM   : Event 'TX-Info-NoSDP' (State 'Final
-Offer-Received')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > Stack: 183 Session Progress
07:35:17  SIP_TR> [GW] > Stack: to 172.21.0.160:5060
SIP/2.0 183 Session Progress
Call-ID: [email protected]
CSeq: 102 INVITE
From: "723633519213" <sip:[email protected]>;tag=as77cf5d3f
To: <sip:066454*****@172.21.0.164>;tag=aeffe10fec88fdb
Via: SIP/2.0/UDP 172.21.0.160:5060;branch=z9hG4bK725bb8bb;rport
Content-Length: 0
Contact: sip:066454*****@172.21.0.164:5060
User-Agent: Patton SN2400 MxSF v3.2.7.44 00A0BA01E76E


07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : New state 'Establishing-Incoming-Procee
ding'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] < Peer : Early disconnect disconnecting call with inband info
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] < SM   : Event 'CC-Dropped' (Active State 'Peer-Proceeding', 
Passive State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : New active state 'Disconnected' (Code: 0)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : Action 'Session-Drop'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] < SM   : Event 'App-Drop' (State 'Establishing-I
ncoming-Proceeding')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] < SM   : Event 'Reset' (State 'Final-Offer-R
eceived')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] > SM   : New state 'Idle'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : New state 'Released'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : Action 'Stk-Status(403)'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708 SDP] < SM   : Event 'TX-Fail' (State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > Stack: 403 Forbidden
07:35:17  SIP_TR> [GW] > Stack: to 172.21.0.160:5060
SIP/2.0 403 Forbidden
Call-ID: [email protected]
CSeq: 102 INVITE
From: "723633519213" <sip:[email protected]>;tag=as77cf5d3f
To: <sip:066454*****@172.21.0.164>;tag=aeffe10fec88fdb
Via: SIP/2.0/UDP 172.21.0.160:5060;branch=z9hG4bK725bb8bb;rport
Content-Length: 0
User-Agent: Patton SN2400 MxSF v3.2.7.44 00A0BA01E76E


07:35:17  SIP_SI> [EP SIP_GW-009c34f0 SES 0xbf9708] > SM   : Action 'App-Finished'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] < SM   : Event 'Active-Session-Finished' (Active State 'Disco
nnected', Passive State 'Idle')
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : New active state 'Released' (Code: 0)
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] > SM   : Action 'App-Finished'
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Finished
07:35:17  SIP_SI> [PR SIP_GW] Removed endpoint SIP_GW-009c34f0
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Destroying a session
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Destroying a session
07:35:17  SIP_SI> [EP SIP_GW-009c34f0] Removing a session
07:35:17  SIP_SI> [PR SIP_GW] < SM   : Event 'Ep-Finished' (State 'Up')
07:35:17  SIP_TR> [GW] < Stack: from 172.21.0.160:5060
ACK sip:066454*****@172.21.0.164 SIP/2.0
Via: SIP/2.0/UDP 172.21.0.160:5060;branch=z9hG4bK725bb8bb;rport
From: "723633519213" <sip:[email protected]>;tag=as77cf5d3f
To: <sip:066454*****@172.21.0.164>;tag=aeffe10fec88fdb
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0

lg Dani
 
Irgendwas ist da total faul. Hast du noch mal einen Debug vom Asterisk für mich?

Wieso machst du das so, hat das einen besonderen Grund?
exten => _00X.,2,Dial(${EXTERN}/${EXTEN:1}@${KONTEXT_OUT}|60|tr)

Versuche es doch einfach erstmal hiermit. Damit müsste der Benutzer, der rausruft, 1 zu 1 durchgeroutet werden. Wahrscheinlich wird dann nicht die richtige Absenderkennung angezeigt, aber die kann man unter "MT_ADD_KOPFNR" eigentlich noch mit einbringen.

exten => _00X.,1,Dial(SIP/${EXTEN}@OUTGOING)

Diese Regeln greifen dann:

routing-table calling-e164 RT_CDPN_SIP_2_ISDN
route .T dest-service HUNT-PUBLIC-PSTN CF_TO_PSTN

complex-function CF_TO_PSTN
execute 1 MT_ADD_KOPFNR
execute 2 MT_TON_PSTN

mapping-table calling-e164 to calling-e164 MT_ADD_KOPFNR
map (.%) to \1

Ich würde so verfahren: interner (SIP-)Benutzer im Asterisk=Durchwahl und die Kopfnummer wird in der SmartNode hinzugefügt.

PS.: Ganz schön kompliziert deine Config!

mfg Guard-X
 
Irgendwas ist da total faul.
Meinst du das an meinen Konfigs was total faul ist?

Wieso machst du das so, hat das einen besonderen Grund?
exten => _00X.,2,Dial(${EXTERN}/${EXTEN:1}@${KONTEXT_OUT}|60|tr)
Das mach ich so kompliziert, um bei eventuellen Änderungen, diese nur an einer zentralen Stelle durchführen zu müssen.

Hier ein Debug vom Asterisk:
Code:
Sep  4 09:43:20 VERBOSE[13346] logger.c:     -- Executing SetCallerID("SIP/LetD-d9c6", "723633519213") in new stack
Sep  4 09:43:20 VERBOSE[13346] logger.c:     -- Executing Dial("SIP/LetD-d9c6", "SIP/066454*****@OUTGOING|60|tr") in new stack
Sep  4 09:43:20 VERBOSE[13346] logger.c:     -- Called 066454*****@OUTGOING
Sep  4 09:43:20 VERBOSE[13346] logger.c:     -- SIP/OUTGOING-6e1e is making progress passing it to SIP/LetD-d9c6
Sep  4 09:43:20 WARNING[9918] chan_sip.c: Forbidden - wrong password on authentication for INVITE to '"723633519213" <sip:[email protected]>;tag=as030f49b4'
Sep  4 09:43:20 VERBOSE[13346] logger.c:     -- SIP/OUTGOING-6e1e is circuit-busy
Sep  4 09:43:20 VERBOSE[13346] logger.c:   == Everyone is busy/congested at this time (1:0/1/0)

lg Dani
 
VOIPdani schrieb:
Meinst du das an meinen Konfigs was total faul ist?
Ja, ich denke mal der Fehler liegt in der Asterisk Konfiguration.

Hast du mal meinen Vorschlag ausprobiert?
Code:
exten => _00X.,1,Dial(SIP/${EXTEN}@OUTGOING)

mfg Guard-X
 
Wenn mein Eintrag in der extensions.conf aufgelöst wird sieht das eh fast wie dein Vorschlag aus:
Code:
exten => _00X.,1,SetCallerID(${CALLERIDNUM})
exten => _00X.,2,Dial(SIP/${EXTEN:1}@OUTGOING|60|tr)
Eine 0 schneid ich weg, weil irgendwann mal definiert wurde, dass zum rauswählen eine zusätzliche 0 gewählt werden muss, und das |60|tr generiert mir halt ein Rufzeichen.

Zur Zeit funktioniert ja alles, mit obiger Konfig.... das ist ja mein eigentliches Problem. Ich weiß nicht wie und warum der Fehler entstanden ist und auch nicht warums jetzt wieder hinhaut...

Wenn das Problem nochmal auftritt steh ich wieder so da...

lg Dani
 
Hallo,

ich habs geschafft die Fehlermeldung
Code:
Sep 28 15:37:48 WARNING[18410] chan_sip.c: Forbidden - wrong password on authentication for INVITE to '"9213" <sip:[email protected]>;tag=as46a9b4c2'
(unbewusst) zu produzieren....

Der SIP-User, den ich angewählt habe war zu diesem Zeitpunkt nicht angemeldet. Die DIALSTATUS-Abfrage hat aber ein CONGESTION ergeben...

Hier der ganze SIP-Debug des Calls:
Code:
---
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Executing Macro("SIP/LetD1-e066", "Besprechung|SIP/amsec_brch|1")
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Executing GotoIf("SIP/LetD1-e066", "0?2:5") in new stack
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Goto (macro-Besprechung,s,5)
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Executing SetCallerID("SIP/LetD1-e066", "9213") in new stack
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Executing Dial("SIP/LetD1-e066", "SIP/amsec_brch|30|tr") in new stack
Sep 28 15:37:48 VERBOSE[19853] logger.c: We're at 172.21.0.162 port 17826
Sep 28 15:37:48 VERBOSE[19853] logger.c: Adding codec 0x8 (alaw) to SDP
Sep 28 15:37:48 VERBOSE[19853] logger.c: Adding codec 0x4 (ulaw) to SDP
Sep 28 15:37:48 VERBOSE[19853] logger.c: Adding non-codec 0x1 (telephone-event) to SDP
Sep 28 15:37:48 VERBOSE[19853] logger.c: 13 headers, 11 lines
Sep 28 15:37:48 VERBOSE[19853] logger.c: Reliably Transmitting (NAT) to 172.21.2.229:2051:
INVITE sip:[email protected]:2051;line=n3b3x9av SIP/2.0
Via: SIP/2.0/UDP 172.21.0.162:5060;branch=z9hG4bK301d5dd6;rport
From: "9213" <sip:[email protected]>;tag=as46a9b4c2
To: <sip:[email protected]:2051;line=n3b3x9av>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Thu, 28 Sep 2006 13:37:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 240

v=0
o=root 17161 17161 IN IP4 172.21.0.162
s=session
c=IN IP4 172.21.0.162
t=0 0
m=audio 17826 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -

---
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Called amsec_brch
Sep 28 15:37:48 VERBOSE[19853] logger.c: Transmitting (NAT) to 172.21.2.21:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.21.2.21;branch=z9hG4bKac15021500000284451bd02c00003d07000006b9;received=172.21.2.21;rport=5060
From: "unknown"<sip:[email protected]>;tag=3021935332479
To: <sip:[email protected]>;tag=as7bebf803
Call-ID: [email protected]
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:[email protected]>
Content-Length: 0


---
Sep 28 15:37:48 VERBOSE[18410] logger.c: 
<-- SIP read from 172.21.2.229:2051: 
SIP/2.0 403 Use Proxy
Via: SIP/2.0/UDP 172.21.0.162:5060;branch=z9hG4bK301d5dd6;rport=5060
From: "9213" <sip:[email protected]>;tag=as46a9b4c2
To: <sip:[email protected]:2051;line=n3b3x9av>
Call-ID: [email protected]
CSeq: 102 INVITE
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, 100rel, replaces, callerid
Content-Length: 0


Sep 28 15:37:48 VERBOSE[18410] logger.c: --- (10 headers 0 lines)Sep 28 15:37:48 VERBOSE[18410] logger.c: --- (10 headers 0 lines)---
Sep 28 15:37:48 VERBOSE[18410] logger.c: Transmitting (NAT) to 172.21.2.229:2051:
ACK sip:[email protected]:2051;line=n3b3x9av SIP/2.0
Via: SIP/2.0/UDP 172.21.0.162:5060;branch=z9hG4bK301d5dd6;rport
From: "9213" <sip:[email protected]>;tag=as46a9b4c2
To: <sip:[email protected]:2051;line=n3b3x9av>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0


---
Sep 28 15:37:48 WARNING[18410] chan_sip.c: Forbidden - wrong password on authentication for INVITE to '"9213" <sip:[email protected]>;tag=as46a9b4c2'
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- SIP/amsec_brch-5110 is circuit-busy
Sep 28 15:37:48 VERBOSE[19853] logger.c:   == Everyone is busy/congested at this time (1:0/1/0)
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Executing Goto("SIP/LetD1-e066", "r-CONGESTION|1") in new stack
Sep 28 15:37:48 VERBOSE[19853] logger.c:     -- Goto (macro-Besprechung,r-CONGESTION,1)
Sep 28 15:37:49 VERBOSE[18410] logger.c: Destroying call '[email protected]'
Sep 28 15:37:51 VERBOSE[18410] logger.c:
Vielleicht hat ja jemand Rat für mich...

Danke im Voraus, lg Dani
 
Hi dani,

bei diesem Beitrag komme ich nicht mehr so ganz mit. Etwas weiter oben ging es doch um Gespräche auf das ISDN-Amt. Im letzten Beitrag aber um ein Anruf auf einen SIP-Teilnehmer. Du hast also in beiden Fällen diese Fehlermeldung, oder?

mfg Guard-X
 
Genau, ich hab in beiden Fällen diese Fehlermeldung.

Anfangs dachte ich dieses Porblem würde sich auf das Gateway bzw. den SIP-User des Gateways beschränken, darum mein Post in diesem Subforum, aber #12 zeigt das die Fehlermeldung eine Endgeräteunabhängige SIP-Fehlermeldung ist.

Mein Ziel ist es dieses Problem nun reproduzierbar zu machen um im Falle eines Falles eine Lösung parat zu haben.

Da ich total im Dunklen tappe, hoffe ich auf eure Unterstützung...

lg Dani
 
So, nun ist mir das Problem auch wieder am Gateway aufgefallen. Bei der Weiterleitung eines Anrufs auf eine Handynummer tritt wieder die Forbidden-Meldung auf:
Code:
16:37:01  SIP_TR> [GW] < Stack: INVITE sip:[email protected] SIP/2.0
16:37:01  SIP_TR> [GW] > Stack: SIP/2.0 100 Trying
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0] < Stack: INVITE <sip:[email protected]>
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0]          From:                "723633XXXXX" <si
p:[email protected]>
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0]          To:                  <sip:065042XXXXX@1
72.21.0.164>
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0]          Cn-Remote-Party-ID:  (invalid)
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0]          Cd-Remote-Party-ID:  (invalid)
16:37:01  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0]          P-Asserted-Identity: (invalid)
16:37:01  ICC   > [ISDN_1_0] Added endpoint ISDN_1_0-006e0e30
16:37:01  ICC   > [ISDN_1_0] NEW CALL. Allocated Endpoint ISDN_1_0-006e0e30
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] AOC-S User << Call Setup
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] AOC-D User << Call Setup
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] AOC-E User << Call Setup
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] >> [080005]
SETUP (DSS1 User)
  [04039090A3]
  Bearer capability : 3.1kHz Audio - CCITT
    circuit mode - 64kBit/s - G.711 A-law
  [6C0E2080373233363333353139323130]
  Calling party number : 723633XXXXX
    national number - unknown numbering plan
    presentation allowed - user provided not screened
  [700C803036353034323332393939]
  Called party number : 065042XXXXX
    unknown number - unknown numbering plan

16:37:01  ICC   > [EP ISDN_1_0-006e0e30] Set state to CALL INITIATED
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] State: CALL INITIATED, Event: PEER CONNECTED
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] Hold State: IDLE, Hold Event: PEER CONNECTED
16:37:01  ICC   > [ISDN_1_0] << Message: primitive=38
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] << [08000D]
SETUP ACKNOWLEDGEMENT (DSS1 User)
  [180189]
  Channel id : 1 - exclusive
    basic rate interface - is not d-channel - CCITT - b-channel units

16:37:01  ICC   > [EP ISDN_1_0-006e0e30] State: CALL INITIATED, Event: TERMINAL MORE INFO IND
16:37:01  ICC   > [EP ISDN_1_0-006e0e30] Set state to OVERLAP SENDING
16:37:01  SIP_ER> [EP SIP_GW-006de6b8] < Peer : ADDRESS INCOMPLETE BUT SIP DOES NOT SUPPORT OVERLAP 
SENDING
16:37:11  ICC   > [ISDN_1_0] << Message: primitive=31
16:37:11  ICC   > [EP ISDN_1_0-006e0e30] << [080001]
ALERTING (DSS1 User)

16:37:11  ICC   > [EP ISDN_1_0-006e0e30] State: OVERLAP SENDING, Event: TERMINAL ALERTING IND
16:37:11  ICC   > [EP ISDN_1_0-006e0e30] Set state to CALL DELIVERED
16:37:11  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0] > Stack: 180 Ringing
16:37:11  SIP_TR> [GW] > Stack: SIP/2.0 180 Ringing
16:37:14  ICC   > [ISDN_1_0] << Message: primitive=34
16:37:14  ICC   > [EP ISDN_1_0-006e0e30] << [080045]
DISCONNECT (DSS1 User)
  [08028095]
  Cause : call rejected
    user - CCITT - Q.931
  [1E028288]
  Progress indicator : inband information available
    public network serving local user - CCITT

16:37:14  ICC   > [EP ISDN_1_0-006e0e30] State: CALL DELIVERED, Event: TERMINAL DISCONNECT IND
16:37:14  ICC   > [EP ISDN_1_0-006e0e30] Set state to DISCONNECT INDICATION
16:37:14  SIP_SI> [EP SIP_GW-006de6b8 SES 0xbf64c0] > Stack: 403 Forbidden
16:37:14  SIP_TR> [GW] > Stack: [B]SIP/2.0 403 Forbidden[/B]
16:37:14  SIP_SI> [EP SIP_GW-006de6b8] Finished
Vielleicht kann mir jemand beim analysieren des Debugs weiterhelfen...
Danke im Voraus, lg Dani
 
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.