Hallo Sparkie,
ich habe meine sip.conf auch auf Deine Fassung reduziert und habe diese nur auf die unterschiedlichen Kontext-Bezeichnungen sowie das unterschiedliche Rufnummernsetup angepasst. Als Unterschied verbleibt noch, dass mein bindport 5064 ist, was ich aber für unproblematisch halte, da ich Anrufe empfangen kann. Hier ist meine aktuelle Fassung der sip.conf:
Code: Alles auswählen
[general]
context=public-direct-dial
bindport=5064
bindaddr=0.0.0.0
srvlookup=yes
qualify=no
disallow=all
allow=alaw
directmedia=no
dtmfmode=rfc2833
nat=no
externaddr=<MyPublicIp>
localnet=<MyPrivateIpRange>/24
register => +49XXXXXXXX:<ProviderSecret>:<CustomerId>@sip.kabelfon.vodafone.de:5060/0049XXXXXXXX
[SIP-PROVIDER-127121531954a3b40e91c2b]
type=peer
defaultuser=+49XXXXXXXX
secret=<ProviderSecret>
fromuser=0049XXXXXXXX
host=sip.kabelfon.vodafone.de
context=SIP-PROVIDER-127121531954a3b40e91c2b-incoming
fromdomain=sip.kabelfon.vodafone.de
nat=no
qualify=yes
insecure=invite
disallow=all
allow=alaw
[211]
type=peer
secret=<PhoneSecret>
context=SIP-PHONE-6518901275447f806cc321
host=dynamic
Code: Alles auswählen
<--- SIP read from UDP:<MyPrivatePhoneIP>:2051 --->
INVITE sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone SIP/2.0
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-1zmhghkuwq34;rport
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 1 INVITE
Max-Forwards: 70
Contact: <sip:211@<MyPrivatePhoneIP>:2051;line=abgjgw8x>
P-Key-Flags: keys="3"
User-Agent: snom190/3.60x
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, 100rel, replaces
Session-Expires: 3600
Content-Type: application/sdp
Content-Length: 364
v=0
o=root 94110898 94110898 IN IP4 <MyPrivatePhoneIP>
s=call
c=IN IP4 <MyPrivatePhoneIP>
t=0 0
m=audio 10224 RTP/AVP 0 8 9 2 3 18 4 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:9 g722/8000
a=rtpmap:2 g726-32/8000
a=rtpmap:3 gsm/8000
a=rtpmap:18 g729/8000
a=rtpmap:4 g723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
<------------->
--- (17 headers 17 lines) ---
Sending to <MyPrivatePhoneIP>:2051 (no NAT)
Using INVITE request as basis request - 3c9299d17ef4-6p8p6t3y8z0b@snom190
Found peer '211' for '211' from <MyPrivatePhoneIP>:2051
<--- Reliably Transmitting (no NAT) to <MyPrivatePhoneIP>:2051 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-1zmhghkuwq34;received=<MyPrivatePhoneIP>;rport=2051
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>;tag=as70fc2156
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 1 INVITE
Server: Asterisk PBX 10.9.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="AskoziaPBX", nonce="1516b409"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '3c9299d17ef4-6p8p6t3y8z0b@snom190' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:<MyPrivatePhoneIP>:2051 --->
ACK sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone SIP/2.0
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-1zmhghkuwq34;rport
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>;tag=as70fc2156
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 1 ACK
Max-Forwards: 70
Contact: <sip:211@<MyPrivatePhoneIP>:2051;line=abgjgw8x>
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:<MyPrivatePhoneIP>:2051 --->
INVITE sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone SIP/2.0
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-09hnrams54u0;rport
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 2 INVITE
Max-Forwards: 70
Contact: <sip:211@<MyPrivatePhoneIP>:2051;line=abgjgw8x>
P-Key-Flags: keys="3"
User-Agent: snom190/3.60x
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
Allow-Events: talk, hold, refer
Supported: timer, 100rel, replaces
Session-Expires: 3600
Authorization: Digest username="211",realm="AskoziaPBX",nonce="1516b409",uri="sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone",response="e600d66a4a702a08ef6d78cf1b2bde1b",algorithm=md5
Content-Type: application/sdp
Content-Length: 364
v=0
o=root 94110898 94110898 IN IP4 <MyPrivatePhoneIP>
s=call
c=IN IP4 <MyPrivatePhoneIP>
t=0 0
m=audio 10224 RTP/AVP 0 8 9 2 3 18 4 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:9 g722/8000
a=rtpmap:2 g726-32/8000
a=rtpmap:3 gsm/8000
a=rtpmap:18 g729/8000
a=rtpmap:4 g723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
<------------->
--- (18 headers 17 lines) ---
Sending to <MyPrivatePhoneIP>:2051 (no NAT)
Using INVITE request as basis request - 3c9299d17ef4-6p8p6t3y8z0b@snom190
Found peer '211' for '211' from <MyPrivatePhoneIP>:2051
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 9
Found RTP audio format 2
Found RTP audio format 3
Found RTP audio format 18
Found RTP audio format 4
Found RTP audio format 101
Found audio description format pcmu for ID 0
Found audio description format pcma for ID 8
Found audio description format g722 for ID 9
Found audio description format g726-32 for ID 2
Found audio description format gsm for ID 3
Found audio description format g729 for ID 18
Found audio description format g723 for ID 4
Found audio description format telephone-event for ID 101
Capabilities: us - (alaw), peer - audio=(g723|gsm|ulaw|alaw|g726|g729|g722)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port <MyPrivatePhoneIP>:10224
Looking for 0176XXXXXXXX in SIP-PHONE-6518901275447f806cc321 (domain <MyPrivateAsteriskIP>)
list_route: hop: <sip:211@<MyPrivatePhoneIP>:2051;line=abgjgw8x>
<--- Transmitting (no NAT) to <MyPrivatePhoneIP>:2051 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-09hnrams54u0;received=<MyPrivatePhoneIP>;rport=2051
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 2 INVITE
Server: Asterisk PBX 10.9.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064>
Content-Length: 0
<------------>
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:1] NoOp("SIP/211-00000002", "pre-processing for outgoing call to provider: Vodafone") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:2] Set("SIP/211-00000002", "DYNAMIC_FEATURES=recordtovm_caller") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:3] Set("SIP/211-00000002", "CDR(InternalCalleridNum)=211") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:4] Set("SIP/211-00000002", "_CALLED=211") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:5] Set("SIP/211-00000002", "ORIGEXTENSION=0176XXXXXXXX") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:6] Set("SIP/211-00000002", "CDR(origextension)=0176XXXXXXXX") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:7] NoOp("SIP/211-00000002", " - original extension = 0176XXXXXXXX") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:8] GotoIf("SIP/211-00000002", "0?calleridchannel:setcallerid") in new stack
-- Goto (SIP-PHONE-6518901275447f806cc321,0176XXXXXXXX,12)
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:12] ExecIf("SIP/211-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:13] ExecIf("SIP/211-00000002", "0?NoOp(Caller ID: Phone A over a remote breakout (interconnection) to external number, using caller id which is set for this phone: "21" <211>)") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:14] ExecIf("SIP/211-00000002", "1?NoOp(Caller ID: Phone A -> external number, using caller id which is set for this phone: "21" <211>") in new stack
-- Executing [0176XXXXXXXX@SIP-PHONE-6518901275447f806cc321:15] Goto("SIP/211-00000002", "SIP-PROVIDER-127121531954a3b40e91c2b,0176XXXXXXXX,1") in new stack
-- Goto (SIP-PROVIDER-127121531954a3b40e91c2b,0176XXXXXXXX,1)
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:1] NoOp("SIP/211-00000002", "outgoing call to provider: 21: Vodafon") in new stack
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:2] Set("SIP/211-00000002", "CDR(UserField)=outbound") in new stack
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:3] Set("SIP/211-00000002", "CDR(accountcode)=88775968") in new stack
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:4] Set("SIP/211-00000002", "EXTENSION_FAILOVER=0176XXXXXXXX") in new stack
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:5] Dial("SIP/211-00000002", "SIP/0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b,,T") in new stack
== Using SIP RTP CoS mark 5
Audio is at 10022
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 88.134.209.241:5060:
INVITE sip:0176XXXXXXXX@sip.kabelfon.vodafone.de SIP/2.0
Via: SIP/2.0/UDP <MyPublicIP>:5064;branch=z9hG4bK1016b7ef
Max-Forwards: 70
From: "21" <sip:0049XXXXXXXX@sip.kabelfon.vodafone.de>;tag=as0e7dfae8
To: <sip:0176XXXXXXXX@sip.kabelfon.vodafone.de>
Contact: <sip:0049XXXXXXXX@<MyPublicIP>:5064>
Call-ID: 3fab4f1e061bea3e4a4bfb234c144f89@sip.kabelfon.vodafone.de
CSeq: 102 INVITE
User-Agent: Asterisk PBX 10.9.0
Date: Thu, 21 May 2020 08:21:50 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 235
v=0
o=root 596537565 596537565 IN IP4 <MyPublicIP>
s=Asterisk PBX 10.9.0
c=IN IP4 <MyPublicIP>
t=0 0
m=audio 10022 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
-- Called SIP/0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b
<--- SIP read from UDP:88.134.209.241:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP <MyPublicIP>:5064;branch=z9hG4bK1016b7ef
From: "21" <sip:0049XXXXXXXX@sip.kabelfon.vodafone.de>;tag=as0e7dfae8
To: <sip:0176XXXXXXXX@sip.kabelfon.vodafone.de>
Call-ID: 3fab4f1e061bea3e4a4bfb234c144f89@sip.kabelfon.vodafone.de
CSeq: 102 INVITE
<------------->
--- (6 headers 0 lines) ---
<--- SIP read from UDP:88.134.209.241:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <MyPublicIP>:5064;branch=z9hG4bK1016b7ef
From: "21" <sip:0049XXXXXXXX@sip.kabelfon.vodafone.de>;tag=as0e7dfae8
To: <sip:0176XXXXXXXX@sip.kabelfon.vodafone.de>;tag=aprqngfrt-d7kv2c30000c6
Call-ID: 3fab4f1e061bea3e4a4bfb234c144f89@sip.kabelfon.vodafone.de
CSeq: 102 INVITE
<------------->
--- (6 headers 0 lines) ---
Transmitting (no NAT) to 88.134.209.241:5060:
ACK sip:0176XXXXXXXX@sip.kabelfon.vodafone.de SIP/2.0
Via: SIP/2.0/UDP <MyPublicIP>:5064;branch=z9hG4bK1016b7ef
Max-Forwards: 70
From: "21" <sip:0049XXXXXXXX@sip.kabelfon.vodafone.de>;tag=as0e7dfae8
To: <sip:0176XXXXXXXX@sip.kabelfon.vodafone.de>;tag=aprqngfrt-d7kv2c30000c6
Contact: <sip:0049XXXXXXXX@<MyPublicIP>:5064>
Call-ID: 3fab4f1e061bea3e4a4bfb234c144f89@sip.kabelfon.vodafone.de
CSeq: 102 ACK
User-Agent: Asterisk PBX 10.9.0
Content-Length: 0
---
Scheduling destruction of SIP dialog '3fab4f1e061bea3e4a4bfb234c144f89@sip.kabelfon.vodafone.de' in 6400 ms (Method: INVITE)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [0176XXXXXXXX@SIP-PROVIDER-127121531954a3b40e91c2b:6] Hangup("SIP/211-00000002", "") in new stack
== Spawn extension (SIP-PROVIDER-127121531954a3b40e91c2b, 0176XXXXXXXX, 6) exited non-zero on 'SIP/211-00000002'
Scheduling destruction of SIP dialog '3c9299d17ef4-6p8p6t3y8z0b@snom190' in 32000 ms (Method: INVITE)
<--- Reliably Transmitting (no NAT) to <MyPrivatePhoneIP>:2051 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-09hnrams54u0;received=<MyPrivatePhoneIP>;rport=2051
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>;tag=as4967a972
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 2 INVITE
Server: Asterisk PBX 10.9.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
<--- SIP read from UDP:<MyPrivatePhoneIP>:2051 --->
ACK sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone SIP/2.0
Via: SIP/2.0/UDP <MyPrivatePhoneIP>:2051;branch=z9hG4bK-09hnrams54u0;rport
From: "21" <sip:211@<MyPrivateAsteriskIP>:5064>;tag=lqjx0bjsn7
To: <sip:0176XXXXXXXX@<MyPrivateAsteriskIP>:5064;user=phone>;tag=as4967a972
Call-ID: 3c9299d17ef4-6p8p6t3y8z0b@snom190
CSeq: 2 ACK
Max-Forwards: 70
Contact: <sip:211@<MyPrivatePhoneIP>:2051;line=abgjgw8x>
Content-Length: 0
<------------->