== Using SIP RTP CoS mark 5 bei ankommenden Anrufen - sipgate

Hab das gleiche Problem :(

Hallo Leute,

ich muß das Thema noch mal rauskramen, da ich vor exakt dem selben Problem stehe, aber bereits alle Einstellungen vorgenommen habe, wie hier beschrieben. Ergebnis ist aber auch immer dasselbe, immer als Antwort bei eingehendem Anruf SIP RTP CoS mark 5

Hat jemand eine Idee, an was es noch liegen könnte? Bin mit meinem Latein am Ende.

Zum Setup:
- Asterisk 1.6.2.20 hinter Arcor DSL Modem, kein NAT
- per SIP registriert an sipgate.de Trunk
- An der Anlage hängt ein Cisco 7941 mit SCCP, korrekt registriert und dem User 6000 zugeordnet (Status offhook und hangup an der GUI abzulesen)
- bei Anruf der Nummer erhalte ich immer nur ein "Der Anschluss ist zur Zeit nicht erreichbar, bitte versuchen Sie es später noch einmal", der SIP Debug (s. unten) gibt mir ein Unauthorized aus ..

SIP Status
Code:
Host                           dnsmgr Username       Refresh State                Reg.Time                 
sipconnect.sipgate.de:5060     N      xxx          105 Registered           Tue, 01 Jan 2002 01:33:19
1 SIP registrations.

Code:
OS Version: 
Linux localhost 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:09:06 EDT 2010 i686 i686 i386 GNU/Linux 

Uptime: 
01:24:51 up 1:15, 1 user, 
Load Average: 0.07, 0.36, 0.24 

Asterisk Build: 
Asterisk/1.6.2.20
Asterisk GUI-version : SVN--rexported

Server Date & TimeZone:Tue Jan 1 01:24:51 CET 2002 

Hostname: 
localhost

sip.conf

Code:
[sipconnect.sipgate.de]
type = peer
host = sipconnect.sipgate.de
outboundproxy = sipconnect.sipgate.de
port = 5060
defaultuser = xxx
fromuser = xxx
fromdomain = sipconnect.sipgate.de
secret = xxx
qualify = yes
nat = no
insecure = port, invite
disallow = all
allow = all

extensions.conf

Code:
[DLPN_DialPlan1]
include = default
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory
include = pagegroups
include = page_an_extension

[CallingRule_Default]
exten = s,1,Macro(trunkdial-failover-0.3,${sipconnect.sipgate.de}/${,${EXTEN:0})},,sipconnect.sipgate.de,)
[DID_trunk_1]
include = DID_trunk_1_default
[DID_trunk_1_default]
exten = _X.,1,Goto(ringroups-custom-1,s,1)

[ringroups-custom-1]
exten = s,1,NoOp(Zentrale)
exten = s,n,Dial(SIP/6000,20,${DIALOPTIONS}i)
exten = s,n,Voicemail(6000,u)

users.conf

Code:
[6000]
username = 6000
transfer = yes
mailbox = 6000
call-limit = 100
type = peer
fullname = meb
registersip = no
host = dynamic
callgroup = 1
type = peer
context = DLPN_DialPlan1
cid_number = 6000
hasvoicemail = yes
vmsecret = xxxx
email = [email protected]
threewaycalling = no
hasdirectory = no
callwaiting = no
hasmanager = no
hasagent = no
hassip = yes
hasiax = yes
secret = 
nat = yes
canreinvite = no
dtmfmode = rfc2833
insecure = no
pickupgroup = 1
autoprov = no
label = 
macaddress = 
linenumber = 1
LINEKEYS = 1
callcounter = yes
disallow = all
allow = ulaw,gsm

[trunk_1]
host = sipconnect.sipgate.de
username = xxx
secret = xxx
trunkname = sipgate.de  ; GUI metadata
context = DID_trunk_1
group = null
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip

outboundproxy = sipconnect.sipgate.de
insecure = no
disallow = all
allow = ulaw,alaw,gsm,g726

Und hier der Auszug aus dem SIP Debug bei eingehendem Anruf ..

Code:
<--- SIP read from UDP:217.10.68.150:5060 --->
INVITE sip:[email protected] SIP/2.0
Record-Route: <sip:217.10.68.150;lr;ftag=as11e6e8d2>
Record-Route: <sip:172.20.40.5;lr>
Record-Route: <sip:217.10.68.150;lr;ftag=as11e6e8d2>
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK682b.caf0466b033acc66305d4b907885e283.0
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK682b.e7d05431ea85f862364368d6bff2d904.0
Via: SIP/2.0/UDP 217.10.68.150:5060;received=217.10.68.178;branch=z9hG4bK682b.3b2d14d49df71d8411b2e8f145cf26fc.0
Via: SIP/2.0/UDP 217.10.67.136:5060;branch=z9hG4bK3e0527e6;rport=5060
Max-Forwards: 67
From: "xxx" <sip:[email protected]>;tag=as11e6e8d2
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 464
X-LEGID: 2a3cfa62

v=0
o=root 585269847 585269848 IN IP4 217.10.77.22
s=sipgate VoIP GW
c=IN IP4 217.10.77.22
t=0 0
m=audio 62600 RTP/AVP 8 0 3 97 18 112 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:112 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
a=direction:active
a=nortpproxy:yes

<------------->
-- (19 headers 21 lines) ---
  == Using SIP RTP CoS mark 5
Sending to 217.10.68.150 : 5060 (no NAT)
Using INVITE request as basis request - [email protected]
Found peer 'trunk_1' for 'xxx' from 217.10.68.150:5060

<--- Reliably Transmitting (no NAT) to 217.10.68.150:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK682b.caf0466b033acc66305d4b907885e283.0;received=217.10.68.150
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK682b.e7d05431ea85f862364368d6bff2d904.0
Via: SIP/2.0/UDP 217.10.68.150:5060;received=217.10.68.178;branch=z9hG4bK682b.3b2d14d49df71d8411b2e8f145cf26fc.0
Via: SIP/2.0/UDP 217.10.67.136:5060;branch=z9hG4bK3e0527e6;rport=5060
From: "xxx" <sip:[email protected]>;tag=as11e6e8d2
To: <sip:[email protected]>;tag=as0163555f
Call-ID: [email protected]
CSeq: 103 INVITE
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6afac243"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:217.10.68.150:5060 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK682b.caf0466b033acc66305d4b907885e283.0
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK682b.e7d05431ea85f862364368d6bff2d904.0
Max-Forwards: 67
From: "xxx" <sip:[email protected]>;tag=as11e6e8d2
To: <sip:[email protected]>;tag=as0163555f
Call-ID: [email protected]
CSeq: 103 ACK
Content-Length: 0
X-hint: rr-enforced
 
Zuletzt bearbeitet:
- per SIP registriert an sipgate.de Trunk
- bei Anruf der Nummer erhalte ich immer nur ein "Der Anschluss ist zur Zeit nicht erreichbar, bitte versuchen Sie es später noch einmal", der SIP Debug (s. unten) gibt mir ein Unauthorized aus ..
Dein Asterisk verlangt vom Provider (Sipgate), dass er sich authentifizeren soll. Das tut ein Provider aber nicht, deshalb wird der Anruf praktisch abgewiesen.

Der eingehende Anruf landet nicht in dem Peer [sipconnect.sipgate.de], den du in der sip.conf definiert hast, sondern in dem User-Peer [trunk_1] (definiert in der users.conf):

Und hier der Auszug aus dem SIP Debug bei eingehendem Anruf ..

Code:
<--- SIP read from UDP:217.10.68.150:5060 --->
INVITE sip:[email protected] SIP/2.0
[...]

<------------->
-- (19 headers 21 lines) ---
  == Using SIP RTP CoS mark 5
Sending to 217.10.68.150 : 5060 (no NAT)
Using INVITE request as basis request - [email protected]
[COLOR="red"][B]Found peer 'trunk_1' for 'xxx' from 217.10.68.150:5060[/B][/COLOR]

<--- Reliably Transmitting (no NAT) to 217.10.68.150:5060 --->
SIP/2.0 401 Unauthorized
[...]

Der User [trunk_1] ist aber mit insecure = no konfiguriert, und deshalb verlangt Asterisk die Authentifizierung:

users.conf
Code:
[trunk_1]
host = sipconnect.sipgate.de
trunkname = sipgate.de  ; GUI metadata
context = DID_trunk_1
[COLOR="red"][B]insecure = no[/B][/COLOR]
[...]

Mir ist nicht ganz klar, wozu du den User-Eintrag überhaupt brauchst. Ich würde darauf verzichten, damit die Anrufe im Peer [sipconnect.sipgate.de] ankommen. Dort müsstest du dann wohl context = DID_trunk_1 ergänzen:

Code:
[sipconnect.sipgate.de]
type = peer
host = sipconnect.sipgate.de
insecure = port, invite
[COLOR="seagreen"][B]context = DID_trunk_1[/B][/COLOR]
[...]

Außerdem könnte es sein, dass dann vielleicht noch ein register-Befehl in der sip.conf fehlt, ungefähr so:
register => 1234567t0:[email protected]/1234567t0.

In der Beispielkonfiguration von Sipgate (Abschnitt 9.1) kommt die User-Definition übrigens auch nicht vor.
 
Danke für Deine Antwort.
Irgendwas war jetzt zum Schluß völlig zerschossen, hab deshalb Asterisk kurz neu aufgesetzt.
Folgende Configs sind jetzt maßgeblich, das Ergebnis ist allerdings noch das gleiche ..

Noch eine Info: Ich verwende die Asterisk GUI. Nach der Konfiguration des sipgate Trunks, wurden in der sip.conf seitens der GUI keine weiteren Eintragungen gemacht zum Provider, etc.
Lediglich der Register wurde in [general] hinzugefügt. Ansonsten ist alles jungfräulich. Hab den general Context mal nachfolgend gepostet.

sip.conf

Code:
[general]
context = default
allowoverlap = no
udpbindaddr = 0.0.0.0
tcpenable = no 
tcpbindaddr = 0.0.0.0
srvlookup = yes
subscribecontext = device-hints,device-hints,device-hints,device-hints,device-hints,device-hints,device-hints,device-hints,device-hints,device-hints,device-hints
subscribecontext = device-hints
subscribecontext = device-hints
subscribecontext = device-hints
subscribecontext = device-hints
subscribecontext = device-hints
allowexternaldomains = yes
allowguest = yes
allowsubscribe = yes
allowtransfer = yes
alwaysauthreject = no
autodomain = no
bindaddr = 
bindport = 
callevents = no
canreinvite = 
checkmwi = 10
compactheaders = no
defaultexpiry = 120
domain = 
dtmfmode = 
dumphistory = no
externrefresh = 10
fromdomain = 
g726nonstandard = no
jbenable = no
jbforce = no
jbimpl = 
jblog = no
jbmaxsize = 
jbresyncthreshold = 
language = 
maxcallbitrate = 384
maxexpiry = 3600
minexpiry = 60
mohinterpret = default
mohsuggest = 
mwi_from = 
nat = 
notifyringing = yes
pedantic = no
progressinband = never
promiscredir = no
realm = asterisk
recordhistory = no
registerattempts = 0
registertimeout = 20
relaxdtmf = no
rtpholdtimeout = 
rtptimeout = 
sendrpid = no
sipdebug = no
t1min = 100
t38pt_udptl = no
tos_audio = none
tos_sip = none
tos_video = none
trustrpid = no
useragent = Asterisk PBX
usereqphone = no
videosupport = no
register = xxx:[email protected]
disallow = all
allow =

users.conf

Code:
[trunk_1]
host = sipconnect.sipgate.de
username = xxx
secret = xxx
trunkname = sipgate.de
context = DID_trunk_1
group = null
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip
disallow = all
allow = all

[6000]
username = 6000
transfer = yes
mailbox = 6000
call-limit = 100
type = peer
fullname = meb
registersip = no
host = dynamic
callgroup = 1
type = peer
context = DLPN_DialPlan1
cid_number = 6000
hasvoicemail = no
vmsecret = 
email = 
threewaycalling = no
hasdirectory = no
callwaiting = no
hasmanager = no
hasagent = no
hassip = yes
hasiax = yes
secret = 
nat = yes
canreinvite = no
dtmfmode = rfc2833
insecure = no
pickupgroup = 1
disallow = all
allow = ulaw,gsm
autoprov = no
label = 
macaddress = 
linenumber = 1
LINEKEYS = 1

extensions.conf

Code:
[DID_trunk_1]
include = DID_trunk_1_default

[DID_trunk_1_default]
exten = _X.,1,Goto(default,6000,1)

[DLPN_DialPlan1]
include = default
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory
include = pagegroups
include = page_an_extension

Tja, und das Ergebnis haben wir hier ..

Code:
Connected to Asterisk 1.6.2.20 currently running on localhost (pid = 15124)
Verbosity is at least 3

<--- SIP read from UDP:217.10.68.150:5060 --->
INVITE sip:[email protected] SIP/2.0
Record-Route: <sip:217.10.68.150;lr;ftag=as23558b7a>
Record-Route: <sip:172.20.40.5;lr>
Record-Route: <sip:217.10.68.150;lr;ftag=as23558b7a>
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK000e.e240e3fbf0f9a8e2ff434d987161e07d.0
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK000e.c69162eefb35bb1aa4481b232fc7a9f8.0
Via: SIP/2.0/UDP 217.10.68.150:5060;received=217.10.68.178;branch=z9hG4bK000e.d05425879fa3f87a93ffc3bafcb14ea1.0
Via: SIP/2.0/UDP 217.10.67.13:5060;branch=z9hG4bK52f759ba;rport=5060
Max-Forwards: 67
From: "xxxxxxxxxxx" <sip:[email protected]>;tag=as23558b7a
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 464
X-LEGID: 0ab6ca53

v=0
o=root 417859415 417859416 IN IP4 217.10.77.41
s=sipgate VoIP GW
c=IN IP4 217.10.77.41
t=0 0
m=audio 57680 RTP/AVP 8 0 3 97 18 112 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:112 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
a=direction:active
a=nortpproxy:yes

<------------->
--- (19 headers 21 lines) ---
  == Using SIP RTP CoS mark 5
Sending to 217.10.68.150 : 5060 (no NAT)
Using INVITE request as basis request - [email protected]
Found peer 'trunk_1' for 'xxxxxxxxxxx' from 217.10.68.150:5060

<--- Reliably Transmitting (no NAT) to 217.10.68.150:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK000e.e240e3fbf0f9a8e2ff434d987161e07d.0;received=217.10.68.150
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK000e.c69162eefb35bb1aa4481b232fc7a9f8.0
Via: SIP/2.0/UDP 217.10.68.150:5060;received=217.10.68.178;branch=z9hG4bK000e.d05425879fa3f87a93ffc3bafcb14ea1.0
Via: SIP/2.0/UDP 217.10.67.13:5060;branch=z9hG4bK52f759ba;rport=5060
From: "xxxxxxxxxxx" <sip:[email protected]>;tag=as23558b7a
To: <sip:[email protected]>;tag=as43652444
Call-ID: [email protected]
CSeq: 103 INVITE
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3b000353"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:217.10.68.150:5060 --->
ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 217.10.68.150:5060;branch=z9hG4bK000e.e240e3fbf0f9a8e2ff434d987161e07d.0
Via: SIP/2.0/UDP 172.20.40.5;branch=z9hG4bK000e.c69162eefb35bb1aa4481b232fc7a9f8.0
Max-Forwards: 67
From: "xxxxxxxxxxx" <sip:[email protected]>;tag=as23558b7a
To: <sip:[email protected]>;tag=as43652444
Call-ID: [email protected]
CSeq: 103 ACK
Content-Length: 0
X-hint: rr-enforced


<------------->
--- (10 headers 0 lines) ---

<--- SIP read from UDP:217.10.68.150:5060 --->

<------------->
 
Kleines Update. Ich hab die Config um insecure erweitert, die GUI scheint das irgendwie unterschlagen zu haben.

users.conf, context [trunk_1]

Code:
insecure = port,invite

Jetzt lande ich auf der Mailbox der 6000.
Und jetzt die nächste Frage .. warum, denn ich sitze neben dem Telefon und das ist frei. Aber das dürfte wohl ein anderes Kapitel sein, denn SIP kommt rein ..

Code:
Connected to Asterisk 1.6.2.20 currently running on localhost (pid = 17646)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [49xxxxxxxxxxxxxx@DID_trunk_1:1] Goto("SIP/trunk_1-00000001", "default,6000,1") in new stack
    -- Goto (default,6000,1)
    -- Executing [6000@default:1] Macro("SIP/trunk_1-00000001", "stdexten,6000,SIP/6000") in new stack
    -- Executing [s@macro-stdexten:1] Set("SIP/trunk_1-00000001", "__DYNAMIC_FEATURES=") in new stack
    -- Executing [s@macro-stdexten:2] Set("SIP/trunk_1-00000001", "ORIG_ARG1=6000") in new stack
    -- Executing [s@macro-stdexten:3] GotoIf("SIP/trunk_1-00000001", "0?6:4") in new stack
    -- Goto (macro-stdexten,s,4)
    -- Executing [s@macro-stdexten:4] Dial("SIP/trunk_1-00000001", "SIP/6000,20,") in new stack
  == Using SIP RTP CoS mark 5
[Oct 31 13:02:41] WARNING[17854]: app_dial.c:1780 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-stdexten:5] Goto("SIP/trunk_1-00000001", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-stdexten,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-stdexten:1] Goto("SIP/trunk_1-00000001", "s-NOANSWER,1") in new stack
    -- Goto (macro-stdexten,s-NOANSWER,1)
    -- Executing [s-NOANSWER@macro-stdexten:1] VoiceMail("SIP/trunk_1-00000001", "6000,u") in new stack
    -- <SIP/trunk_1-00000001> Playing 'vm-theperson.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'digits/6.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'digits/0.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'digits/0.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'digits/0.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'vm-isunavail.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'vm-intro.ulaw' (language 'en')
    -- <SIP/trunk_1-00000001> Playing 'beep.ulaw' (language 'en')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/iJP62Y format: wav49, 0xa265780
    -- x=1, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/iJP62Y format: gsm, 0xa279338
    -- x=2, open writing:  /var/spool/asterisk/voicemail/default/6000/tmp/iJP62Y format: wav, 0xa2145b8
    -- User hung up
  == Spawn extension (macro-stdexten, s-NOANSWER, 1) exited non-zero on 'SIP/trunk_1-00000001' in macro 'stdexten'
  == Spawn extension (default, 6000, 1) exited non-zero on 'SIP/trunk_1-00000001'
 
Zuletzt bearbeitet:
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.