- Mitglied seit
- 11. Mai 2023
- Beiträge
- 226
Hallo zusammen,
ich habe es geschafft, Asterisk an meine 3CX Bridge Master anzubinden. Der Punkt ist grün. Wenn ich aber versuche einen Anruf über das Asterisk CLI mit dem Command "originate PJSIP/1000@3CX application Dial(PJSIP/3CX)" auszuführen, gibt mir Asterisk diese Meldung: "-- Called 1000@3CX"
Der Anruf kommt aber nicht bei der 3CX Extension 1000 an und erhalte in den Logs:
Die Extension Nr. 10001 stimmt mit der Master Bridge überein und das Passwort der Master Bridge wird in der Asterisk pjsip.conf verwendet.
/etc/asterisk/pjsip.conf:
/etc/asterisk/extensions.conf:
ich habe es geschafft, Asterisk an meine 3CX Bridge Master anzubinden. Der Punkt ist grün. Wenn ich aber versuche einen Anruf über das Asterisk CLI mit dem Command "originate PJSIP/1000@3CX application Dial(PJSIP/3CX)" auszuführen, gibt mir Asterisk diese Meldung: "-- Called 1000@3CX"
Der Anruf kommt aber nicht bei der 3CX Extension 1000 an und erhalte in den Logs:
Code:
23.02.2024 15:09:19 - [CM102001]: Authentication failed for AuthFail Recv Req INVITE from xxx:4849 tid=Pj05957b63-18cc-42a6-87ec-1964d2913524 Call-ID=2f82d03c-1fe6-4336-9f52-36b60b822310:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP xxx:4849;rport=4849;branch=z9hG4bKPj05957b63-18cc-42a6-87ec-1964d2913524
Max-Forwards: 70
Contact: <sip:asterisk@xxx:4849>
To: <sip:[email protected]>
From: "Anonymous"<sip:[email protected]>;tag=6d55f4dc-25c6-4549-a3ca-4c032fedd563
Call-ID: 2f82d03c-1fe6-4336-9f52-36b60b822310
CSeq: 9234 INVITE
Session-Expires: 1800
Min-SE: 90
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, INFO, REFER
Content-Type: application/sdp
Proxy-Authorization: Digest username="10001",realm="3CXPhoneSystem",nonce="414d535965d8a70f63:4dad6231e7c2592c4d02951605fcf90c",uri="sip:[email protected]",response="d95f6ef17c9bf851db9b5b14b2a272be",algorithm=MD5
Supported: 100rel, timer, replaces, norefersub, histinfo
User-Agent: Asterisk PBX UNKNOWN__and_probably_unsupported
Content-Length: 287
v=0
o=- 1885542461 1885542461 IN IP4 xxx
s=Asterisk
c=IN IP4 xxx
t=0 0
m=audio 15332 RTP/AVP 8 0 9 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
Code:
23.02.2024 15:09:19 - [CM302002]: Authentication failed due to unidentified source of: SipReq: INVITE [email protected] tid=Pj05957b63-18cc-42a6-87ec-1964d2913524 cseq=9234 INVITE contact=asterisk@xxx:4849 / 9234 from(wire)
Die Extension Nr. 10001 stimmt mit der Master Bridge überein und das Passwort der Master Bridge wird in der Asterisk pjsip.conf verwendet.
/etc/asterisk/pjsip.conf:
Code:
[global]
type=global
endpoint_identifier_order=auth_username,ip,username
[udp]
type=transport
protocol=udp
bind=0.0.0.0:4849
local_net=10.0.0.0/24
external_media_address=xxx
external_signaling_address=xxx
[3CX]
type=registration
transport=udp
outbound_auth=3CX_auth
server_uri=sip:xxx
client_uri=sip:10001@xxx
contact_user=10001
retry_interval=60
forbidden_retry_interval=600
expiration=1800
line=yes
endpoint=3CX
[3CX_auth]
type=auth
auth_type=userpass
password=xxx
username=10001
realm=3CXPhoneSystem
[3CX]
type=endpoint
transport=udp
context=3CX
disallow=all
allow=alaw,ulaw,g722
outbound_auth=3CX_auth
aors=3CX_aor
force_rport=yes
direct_media=no
ice_support=no
rtp_symmetric=yes
from_domain=xxx
send_pai=yes
[3CX_aor]
type=aor
contact=sip:10001@xxx
[3CX_in]
type=endpoint
transport=udp
context=3CX_in
disallow=all
allow=alaw,ulaw,g722
outbound_auth=3CX_auth
[111]
type=endpoint
transport=udp
context=internal
disallow=all
allow=alaw,ulaw,g722
auth=111_auth
aors=111
callerid=10001 <sip:10001@xxx>
[111_auth]
type=auth
auth_type=userpass
password=xxx
username=Nebenstelle001
[111]
type=aor
max_contacts=1
remove_existing=true
[111]
type=identify
endpoint=111
match=10.0.0.9
[222]
type=endpoint
transport=udp
context=internal
disallow=all
allow=alaw,ulaw,g722
auth=222_auth
aors=222
callerid=xxx002 <xxx>
[222_auth]
type=auth
auth_type=userpass
password=xxx
username=Nebenstelle002
[222]
type=aor
max_contacts=1
remove_existing=true
[222]
type=identify
endpoint=222
match=10.0.0.10
/etc/asterisk/extensions.conf:
Code:
[general]
userscontext=unspecified
autofallthrough=yes
extenpatternmatchnew=no
[internal]
exten => 111,1,Dial(PJSIP/111)
exten => 222,1,Dial(PJSIP/222)
exten => _X.,1,Dial(PJSIP/sip:${EXTEN}@3CX)
exten => _X.,n,Hangup()
exten => 110,1,Dial(PJSIP/sip:110@3CX)
exten => 110,n,Hangup()
exten => 112,1,Dial(PJSIP/sip:112@3CX)
exten => 112,n,Hangup()
[3CX]
exten => 10001,1,Dial(PJSIP/111,30)
exten => 10001,n,Hangup()
[unspecified]
exten => i,1,Answer()
exten => i,n,Verbose(DEFAULT ==> ${CALLERID(num)} kam um ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)} in UNBEKANNT an, als versucht wurde die Nummer ${EXTEN} anzurufen.)
exten => i,n,Playback(pbx-invalid)
exten => i,n,Hangup()
