Hi,
ich habe das Problem dass ich mit meinem Asterisk zwar raustelefonieren kann, aber ankommende nicht zugestellt werden.
Hier erstmal meine Dateien:
sip.conf
und die dazugehörige extensions.conf
So, wenn ich jetzt anrufe kommt folgende Ausgabe des Asterisk
und mit "sip debug" kann man sehen, dass er anscheinend versucht den Anruf an die IP des Providers toplink-voice.de durchzustellen, den er aber natürlich nicht finden kann.
Was mache ich falsch?
ich habe das Problem dass ich mit meinem Asterisk zwar raustelefonieren kann, aber ankommende nicht zugestellt werden.
Hier erstmal meine Dateien:
sip.conf
Code:
[general]
context=incoming ; Default context for incoming calls
port=5060
bindaddr=0.0.0.0
srvlookup=yes
maxexpirey=4000
defaultexpirey=3600
disallow=all ; First disallow all codecs
allow=ulaw ; Allow codecs in order of preference
allow=alaw ; Note: codec order is respected only in
allow=gsm
register => toplinkUSER:[email protected]/1004
[toplink-voice.de]
type=peer
host=toplink-voice.de
username=toplinkUSER
fromuser=toplinkUSER
fromdomain=toplink-voice.de
secret=toplinkPW
nat=yes
context=sip
[toplink_in]
type=peer
fromdomain=toplink-voice.de
host=toplink-voice.de
context=incoming
[1002]
type=friend
host=dynamic
defaultip=192.168.1.101
dtmfmode=rfc2833
context=sip
callerid="..." <1002>
[1003]
type=friend
host=dynamic
defaultip=192.168.1.102
dtmfmode=rfc2833
context=sip
callerid="..." <1003>
[1001]
type=friend
host=dynamic
defaultip=192.168.1.103
dtmfmode=rfc2833
context=sip
callerid="..." <1001>
[1004]
type=friend
host=dynamic
username=1004
port=5060
secret=secretPW
nat=no
defaultip=192.168.1.104
disallow=all
allow=ulaw
allow=alaw
allow=gsm
canreinvite=yes
dtmfmode=rfc2833
context=sip
callerid="..." <1004>
und die dazugehörige extensions.conf
Code:
[general]
static=yes
writeprotect=no
[globals]
[default]
exten => toplink_in,1,Dial(SIP/1004)
[sip]
exten => 1002,1,Dial(SIP/1002,20) ; Extension 1002
exten => 1003,1,Dial(SIP/1003,20) ; Extension 1003
exten => 1001,1,Dial(SIP/1001,20) ; Extension 1001
exten => 1004,1,Dial(SIP/1004,20) ; Extension 1004
exten => _0X.,1,Dial(SIP/${EXTEN:1}@toplink-voice.de) ; Extension für externe Verbindungen bei 0
[incoming]
exten => toplink_in,1,Dial(SIP/1004)
So, wenn ich jetzt anrufe kommt folgende Ausgabe des Asterisk
Code:
Setting NAT on RTP to 0
Check for res for
is not a local user
is not a local user
Stopping retransmission on '[email protected]' of Response 969645250: Found
Setting NAT on RTP to 0
Check for res for
is not a local user
is not a local user
Stopping retransmission on '[email protected]' of Response 969645250: Found
und mit "sip debug" kann man sehen, dass er anscheinend versucht den Anruf an die IP des Providers toplink-voice.de durchzustellen, den er aber natürlich nicht finden kann.
Code:
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:18 annexb=no
a=fmtp:101 0-15
a=sendrecv
20 headers, 15 lines
Using latest request as basis request
Sending to 213.218.12.2 : 5060 (non-NAT)
Found peer 'toplink_in'
Setting NAT on RTP to 0
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 4
Found RTP audio format 2
Found RTP audio format 18
Found RTP audio format 101
Peer audio RTP is at port 195.2.177.66:4990
Peer audio RTP is at port 195.2.177.66:4990
Found description format PCMA
Found description format PCMU
Found description format G723
Found description format G726-32
Found description format G729
Found description format telephone-event
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x11d (g723|ulaw|alaw|g726|g729)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Check for res for
is not a local user
Looking for s in incoming
Reliably Transmitting (no NAT):
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 213.218.12.2;branch=z9hG4bK0b2.0401d827.2
Via: SIP/2.0/UDP 213.218.10.130;branch=z9hG4bK0b2.25bf6a32.0
Via: SIP/2.0/UDP 213.218.10.2;branch=z9hG4bK0b2.c9708206.0
Via: SIP/2.0/UDP 195.2.177.66:5060;branch=z9hG4bK9eb8f2efb
From: <sip:[email protected];user=phone>;tag=082f257e9bfdb3b
To: <sip:[email protected]:5060;user=phone>;tag=as3bf09428
Call-ID: [email][email protected][/email]
CSeq: 1439637875 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:[email protected]>
Content-Length: 0
to 213.218.12.2:5060
is not a local user
Sip read:
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 213.218.12.2;branch=z9hG4bK0b2.0401d827.2
From: <sip:[email protected];user=phone>;tag=082f257e9bfdb3b
Call-ID: [email][email protected][/email]
To: <sip:[email protected]:5060;user=phone>;tag=as3bf09428
CSeq: 1439637875 ACK
Content-Length: 0
7 headers, 0 lines
Stopping retransmission on '[email protected]' of Response 1439637875: Found
Destroying call '[email protected]'
Sip read:
0 headers, 0 lines
Sip read:
0 headers, 0 lines
Was mache ich falsch?