- Mitglied seit
- 27 Okt 2004
- Beiträge
- 682
- Punkte für Reaktionen
- 0
- Punkte
- 16
Vielleicht habe ich meine Frage hier am falschen Ort gestellt.
Nochmals, im Prinzip funktionieren die eingehenden Anrufe. Es ist nur unschön, dass sie erst im extension.conf unter [default] abgefangen werden und, dass der port=5060 sein muss. Gibt es eine Möglichkeit solche eingehenden Anrufe (mit bekannter IP) "normal" schon im sip.conf abzufangen und an [incoming] weiterzuleiten? Ich habe es in der sip.conf damit probiert:
aber dies geht nich; die Anrufe kommen immer noch via [default] rein.
Hier noch ein debug mit dem derzeitigen Verbindungsaufbau.
Nochmals, im Prinzip funktionieren die eingehenden Anrufe. Es ist nur unschön, dass sie erst im extension.conf unter [default] abgefangen werden und, dass der port=5060 sein muss. Gibt es eine Möglichkeit solche eingehenden Anrufe (mit bekannter IP) "normal" schon im sip.conf abzufangen und an [incoming] weiterzuleiten? Ich habe es in der sip.conf damit probiert:
Code:
[Voxeo_in]
type=friend
host=IP_Voxeo
...
context=incoming
Hier noch ein debug mit dem derzeitigen Verbindungsaufbau.
Code:
<------------>
[Oct 9 17:28:35] VERBOSE[5854] logger.c:
<--- SIP read from IP_Voxeo:45672 --->
INVITE sip:Irgendwas@IPmyAsterisk SIP/2.0
From: <sip:Restricted@IP_Voxeo:45672>;tag=201320a8-0-13c4-6009-12d-2a1467ea-12d
To: <sip:Irgendwas@IPmyAsterisk>
Call-ID: 1444404515093-2aaab4253b20-20a65320-0000000f@IP_Local
CSeq: 1 INVITE
Via: SIP/2.0/UDP IP_Voxeo:45672;rport;branch=z9hG4bK-12d-499f4-c38c9f4-1febf670
x-accountid: AccNo
x-appid: 804b6b431f5d4cb3a0bdefac0fca266d
x-dialogid: f3908cd4fda3871e04354f1419082e95-0
x-joinsid: 31cc5ee944b0fbca37bd932512588eb4
x-psid: 76d9862e5d35998721ea5b773d5f3b39
x-sid: 60575430153fb8387f6ea8d674d1f9da
x-voxeo-romeo: true
x-voxeo-to: <sip:Irgendwas@IPmyAsterisk>
x-voxeo-type: bridge
Max-Forwards: 70
User-Agent: VCS14.0.10.111.82985
Contact: <sip:Restricted@IP_Voxeo:45672>
Content-Type: application/sdp
Content-Length: 290
v=0
o=- 1 1 IN IP4 IP_Voxeo
s=voxeo.14.0.10.111.82985
c=IN IP4 IP_Voxeo
t=0 0
m=audio 10108 RTP/AVP 101 0 8 104 106
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:104 iSAC/16000
a=rtpmap:106 OPUS/48000/2
a=ptime:20
<------------->
[Oct 9 17:28:35] VERBOSE[5854] logger.c: --- (20 headers 13 lines) ---
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Sending to IP_Voxeo : 45672 (no NAT)
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Using INVITE request as basis request - 1444404515093-2aaab4253b20-20a65320-0000000f@IP_Local
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found no matching peer or user for 'IP_Voxeo:45672'
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found RTP audio format 101
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found RTP audio format 0
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found RTP audio format 8
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found RTP audio format 104
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found RTP audio format 106
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found audio description format telephone-event for ID 101
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found audio description format PCMU for ID 0
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found audio description format PCMA for ID 8
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found unknown media description format iSAC for ID 104
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Found unknown media description format OPUS for ID 106
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Capabilities: us - 0xe0e (gsm|ulaw|alaw|g726|speex|ilbc), peer - audio=0xc (ulaw|alaw)/video=0x0 (nothing),
combined - 0xc (ulaw|alaw)
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1
(telephone-event)
[Oct 9 17:28:35] DEBUG[5854] chan_sip.c: Our T38 capability = (0), peer T38 capability (0), joint T38 capability (0)
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Peer audio RTP is at port IP_Voxeo:10108
[Oct 9 17:28:35] VERBOSE[5854] logger.c: Looking for Irgendwas in default (domain IPmyAsterisk)
[Oct 9 17:28:35] VERBOSE[5854] logger.c: list_route: hop: <sip:Restricted@IP_Voxeo:45672>
[Oct 9 17:28:35] VERBOSE[5854] logger.c:
<--- Transmitting (NAT) to IP_Voxeo:45672 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP IP_Voxeo:45672;branch=z9hG4bK-12d-499f4-c38c9f4-1febf670;received=IP_Voxeo;rport=45672
From: <sip:Restricted@IP_Voxeo:45672>;tag=201320a8-0-13c4-6009-12d-2a1467ea-12d
To: <sip:Irgendwas@IPmyAsterisk>
Call-ID: 1444404515093-2aaab4253b20-20a65320-0000000f@IP_Local
CSeq: 1 INVITE
User-Agent: MyDevice
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Contact: <sip:Irgendwas@IPmyAsterisk>
Content-Length: 0
<------------>
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [Irgendwas@default:1] Macro("SIP/45672-00000038", "ruf|SIP|30") in new stack
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-ruf:1] NoOp("SIP/45672-00000038", "Wir sind im Macro ruf gelandet") in new stack
[Oct 9 17:28:35] DEBUG[23015] app_macro.c: Executed application: NoOp
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-ruf:2] Macro("SIP/45672-00000038", "callforwarding|30") in new stack
[Oct 9 17:28:35] DEBUG[23015] func_db.c: DB: CFI/30 not found in database.
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-callforwarding:1] Set("SIP/45672-00000038", "temp=") in new stack
[Oct 9 17:28:35] DEBUG[23015] app_macro.c: Executed application: Set
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-callforwarding:2] GotoIf("SIP/45672-00000038", "?cfi:nocfi") in new stack
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Goto (macro-callforwarding,s,4)
[Oct 9 17:28:35] DEBUG[23015] app_macro.c: Executed application: GotoIf
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-callforwarding:4] NoOp("SIP/45672-00000038", "") in new stack
[Oct 9 17:28:35] DEBUG[23015] app_macro.c: Executed application: NoOp
[Oct 9 17:28:35] DEBUG[23015] app_macro.c: Executed application: Macro
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Executing [s@macro-ruf:3] Dial("SIP/45672-00000038", "SIP/30&IAX2/40|30|r") in new stack
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Audio is at IPmyAsterisk port 18352
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Adding codec 0x4 (ulaw) to SDP
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Adding codec 0x8 (alaw) to SDP
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Adding codec 0x2 (gsm) to SDP
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Adding codec 0x800 (g726) to SDP
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Adding non-codec 0x1 (telephone-event) to SDP
[Oct 9 17:28:35] VERBOSE[23015] logger.c: Reliably Transmitting (NAT) to IPmyLinksys:5062:
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP IPmyAsterisk:5060;branch=z9hG4bK1a286ce6;rport
From: "Restricted" <sip:Restricted@IPmyAsterisk>;tag=as601a3b47
To: <sip:[email protected]:5060>
Contact: <sip:Restricted@IPmyAsterisk>
Call-ID: 19821cef2286d1743a4c71f74efa8162@IPmyAsterisk
CSeq: 102 INVITE
User-Agent: MyDevice
Max-Forwards: 70
Date: Fri, 09 Oct 2015 15:28:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 314
v=0
o=root 5335 5335 IN IP4 IPmyAsterisk
s=session
c=IN IP4 IPmyAsterisk
t=0 0
m=audio 18352 RTP/AVP 0 8 3 111 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Called 30
[Oct 9 17:28:35] DEBUG[23015] chan_iax2.c: prepending 4 to prefs
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- Called 40
[Oct 9 17:28:35] VERBOSE[23015] logger.c:
<--- Transmitting (NAT) to IP_Voxeo:45672 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP IP_Voxeo:45672;branch=z9hG4bK-12d-499f4-c38c9f4-1febf670;received=IP_Voxeo;rport=45672
From: <sip:Restricted@IP_Voxeo:45672>;tag=201320a8-0-13c4-6009-12d-2a1467ea-12d
To: <sip:Irgendwas@IPmyAsterisk>;tag=as20198a65
Call-ID: 1444404515093-2aaab4253b20-20a65320-0000000f@IP_Local
CSeq: 1 INVITE
User-Agent: MyDevice
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Contact: <sip:Irgendwas@IPmyAsterisk>
Content-Length: 0
<------------>
[Oct 9 17:28:35] VERBOSE[5854] logger.c:
<--- SIP read from IPmyLinksys:5062 --->
SIP/2.0 100 Trying
To: <sip:[email protected]:5060>
From: "Restricted" <sip:Restricted@IPmyAsterisk>;tag=as601a3b47
Call-ID: 19821cef2286d1743a4c71f74efa8162@IPmyAsterisk
CSeq: 102 INVITE
Via: SIP/2.0/UDP IPmyAsterisk:5060;branch=z9hG4bK1a286ce6
Server: Linksys/SPA3102-5.1.5(GWa)
Content-Length: 0
<------------->
[Oct 9 17:28:35] VERBOSE[5854] logger.c: --- (8 headers 0 lines) ---
[Oct 9 17:28:35] VERBOSE[5854] logger.c:
<--- SIP read from IPmyLinksys:5062 --->
SIP/2.0 180 Ringing
To: <sip:[email protected]:5060>;tag=8ac01b9e64deceb4i0
From: "Restricted" <sip:Restricted@IPmyAsterisk>;tag=as601a3b47
Call-ID: 19821cef2286d1743a4c71f74efa8162@IPmyAsterisk
CSeq: 102 INVITE
Via: SIP/2.0/UDP IPmyAsterisk:5060;branch=z9hG4bK1a286ce6
Server: Linksys/SPA3102-5.1.5(GWa)
Remote-Party-ID: "+MyPhoneNo" <sip:30@IPmyAsterisk>;screen=yes;party=called
Content-Length: 0
<------------->
[Oct 9 17:28:35] VERBOSE[5854] logger.c: --- (9 headers 0 lines) ---
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- SIP/30-00000039 is ringing
[Oct 9 17:28:35] VERBOSE[5810] logger.c: -- Call accepted by IPmyLinksys (format ulaw)
[Oct 9 17:28:35] VERBOSE[5810] logger.c: -- Format for call is ulaw
[Oct 9 17:28:35] VERBOSE[23015] logger.c: -- IAX2/40-1533 is ringing
[Oct 9 17:28:38] VERBOSE[5854] logger.c:
<--- SIP read from IPmyLinksys:5062 --->
NOTIFY sip:IPmyAsterisk SIP/2.0
Via: SIP/2.0/UDP 192.168.1.33:5060;branch=z9hG4bK-aa212f8c
From: "+MyPhoneNo" <sip:30@IPmyAsterisk>;tag=720758a2bffbea7bo0
To: <sip:IPmyAsterisk>
Call-ID: [email protected]
CSeq: 1353 NOTIFY
Max-Forwards: 70
Event: keep-alive
User-Agent: Linksys/SPA3102-5.1.5(GWa)
Content-Length: 0
<------------->
[Oct 9 17:28:38] VERBOSE[5854] logger.c: --- (10 headers 0 lines) ---
[Oct 9 17:28:38] VERBOSE[5854] logger.c: Sending to 192.168.1.33 : 5060 (no NAT)
[Oct 9 17:28:38] VERBOSE[5854] logger.c:
<--- Transmitting (no NAT) to 192.168.1.33:5060 --->
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP 192.168.1.33:5060;branch=z9hG4bK-aa212f8c;received=IPmyLinksys
From: "+MyPhoneNo" <sip:30@IPmyAsterisk>;tag=720758a2bffbea7bo0
To: <sip:IPmyAsterisk>;tag=as2dc7fa9d
Call-ID: [email protected]
CSeq: 1353 NOTIFY
User-Agent: MyDevice
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0
<------------>
[Oct 9 17:28:42] VERBOSE[5854] logger.c:
<--- SIP read from IP_Voxeo:45672 --->
CANCEL sip:Irgendwas@IPmyAsterisk SIP/2.0
From: <sip:Restricted@IP_Voxeo:45672>;tag=201320a8-0-13c4-6009-12d-2a1467ea-12d
To: <sip:Irgendwas@IPmyAsterisk>
Call-ID: 1444404515093-2aaab4253b20-20a65320-0000000f@IP_Local
CSeq: 1 CANCEL
Via: SIP/2.0/UDP IP_Voxeo:45672;rport;branch=z9hG4bK-12d-499f4-c38c9f4-1febf670
Max-Forwards: 70
x-accountid: AccNo
x-appid: 804b6b431f5d4cb3a0bdefac0fca266d
x-dialogid: f3908cd4fda3871e04354f1419082e95-0
x-joinsid: 31cc5ee944b0fbca37bd932512588eb4
x-psid: 76d9862e5d35998721ea5b773d5f3b39
x-sid: 60575430153fb8387f6ea8d674d1f9da
x-voxeo-romeo: true
x-voxeo-to: <sip:Irgendwas@IPmyAsterisk>
x-voxeo-type: bridge
Content-Length: 0
Zuletzt bearbeitet: