Tommyland78
Mitglied
- Mitglied seit
- 9 Sep 2005
- Beiträge
- 254
- Punkte für Reaktionen
- 1
- Punkte
- 16
Aja, ging ja ganz einfach...also dann werd ich mal morgen in meiner Mittagspause mir das ansehen...vielen Dank bis dahin!
Der Tom
Der Tom
Hi all,
Can you provide a log? Maybe the outgoing call is also initiated with "anonymous.invalid" but im not sure. It also can be a realm problem. Would be interesting to know.
# ./dtmfbox
-------------------------------------------------------------------------------
dtmfbox 0.5.0-beta1
-------------------------------------------------------------------------------
20:33:16.953 dtmfbox.c dtmfbox 0.5.0-beta1
20:33:16.953 dtmfbox.c PJSIP 0.9.0-release
20:33:16.993 pjlib select() I/O Queue created (0x2ad7f070)
20:33:16.993 sip_endpoint.c Module "mod-msg-print" registered
20:33:16.993 voip_ctrl.c Init VOIP...
20:33:16.993 voip_ctrl.c Resolve local IP ...
20:33:16.993 voip_ctrl.c Use IP: 192.168.178.1
20:33:16.993 udp0x527098 SIP UDP transport started, published address is 192.168.178.1:5061
20:33:16.993 voip_ctrl.c UDP server listening on port 5061
20:33:16.993 sip_endpoint.c Module "mod-tsx-layer" registered
20:33:16.993 sip_endpoint.c Module "mod-stateful-util" registered
20:33:17.003 sip_endpoint.c Module "mod-ua" registered
20:33:17.003 sip_endpoint.c Module "mod-100rel" registered
20:33:17.003 sip_endpoint.c Module "mod-invite" registered
20:33:17.003 sip_endpoint.c Module "dtmfbox" registered
20:33:17.003 pjlib select() I/O Queue created (0x54c484)
20:33:17.003 voip_ctrl.c Conference bridge created (8000hz/16/1)
20:33:17.003 funcs.c Allocate 10 connections with 4 RTP/RTCP transports
20:33:17.013 voip_ctrl.c RTP/RTCP: 192.168.178.1:4000-4001
20:33:17.013 voip_ctrl.c RTP/RTCP: 192.168.178.1:4002-4003
20:33:17.023 voip_ctrl.c RTP/RTCP: 192.168.178.1:4004-4005
20:33:17.023 voip_ctrl.c RTP/RTCP: 192.168.178.1:4006-4007
20:33:17.023 voip_ctrl.c RTP/RTCP media transport created
20:33:17.023 voip_ctrl.c VOIP initialized!
20:33:17.023 capi_ctrl.c Init CAPI...
20:33:17.023 capi_ctrl.c CAPI controller: 5
20:33:17.023 capi_ctrl.c Found controller #1 with 2 B-channel(s)
20:33:17.023 capi_ctrl.c Found controller #2 with 2 B-channel(s)
20:33:17.033 capi_ctrl.c Found controller #3 with 2 B-channel(s)
20:33:17.033 capi_ctrl.c Found controller #4 with 1 B-channel(s)
20:33:17.033 capi_ctrl.c Found controller #5 with 3 B-channel(s)
20:33:17.033 capi_ctrl.c CAPI registered!
20:33:17.033 alaw_ulaw.c Build a-law/pcm table buffer
20:33:18.133 capi_ctrl.c CAPI initialized!
20:33:18.133 voip_ctrl.c Start VoIP listen loop...
20:33:18.223 plugins.c [plugin.menu]: action:1_ctrl5reject loaded (5 entries)
20:33:18.223 plugins.c [plugin.menu]: action:2_cbct loaded (3 entries)
20:33:18.223 plugins.c [plugin.menu]: action:3_answering_machine loaded (3 entries)
20:33:18.233 plugins.c [plugin.menu]: lib:speak loaded (2 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:am loaded (2 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:am_delete loaded (3 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:am_on_off loaded (2 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:am_record_announcement loaded (4 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:am_setup loaded (5 entries)
20:33:18.233 plugins.c [plugin.menu]: menu:callthrough_account loaded (13 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:callthrough_number loaded (3 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:callthrough_pin loaded (3 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:dtmf_commands loaded (7 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:main loaded (6 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:misc loaded (6 entries)
20:33:18.243 plugins.c [plugin.menu]: menu:misc_checkmaild loaded (5 entries)
20:33:18.253 plugins.c [plugin.menu]: menu:misc_fb loaded (5 entries)
20:33:18.253 plugins.c [plugin.menu]: menu:misc_radio loaded (11 entries)
20:33:18.253 plugins.c [plugin.menu]: menu:misc_weather loaded (5 entries)
20:33:18.253 plugins.c [plugin.menu]: script:action_am loaded (1 entries)
20:33:18.263 plugins.c [plugin.menu]: script:action_cbct loaded (1 entries)
20:33:18.263 plugins.c [plugin.menu]: script:action_ctrl5 loaded (1 entries)
20:33:18.263 plugins.c [plugin.menu]: script:am_admin loaded (1 entries)
20:33:18.263 plugins.c [plugin.menu]: script:am_setup loaded (1 entries)
20:33:18.273 plugins.c [plugin.menu]: script:callthrough loaded (1 entries)
20:33:18.273 plugins.c [plugin.menu]: script:misc_checkmaild loaded (1 entries)
20:33:18.273 plugins.c [plugin.menu]: script:misc_fb loaded (1 entries)
20:33:18.273 plugins.c [plugin.menu]: script:misc_radio loaded (1 entries)
20:33:18.273 plugins.c [plugin.menu]: script:misc_weather loaded (1 entries)
20:33:18.283 plugins.c [plugin.menu]: 29 menues/actions loaded!
20:33:18.283 plugins.c [plugin.menu]: Initialized!
20:33:18.283 plugins.c #1 - Plugin "/var/dtmfbox/menu.plugin.so" loaded!
20:33:18.283 funcs.c Set low priority
20:33:18.283 capi_ctrl.c (0x3ff) - Listen to CAPI controller 1...
20:33:18.283 capi_ctrl.c (0x3ff) - Listen to CAPI controller 3...
20:33:18.283 capi_ctrl.c (0x3ff) - Listen to CAPI controller 4...
20:33:18.283 capi_ctrl.c (0x3ff) - Listen to CAPI controller 5...
20:33:18.283 capi_ctrl.c (CNF, CTRL 1) - CAPI_LISTEN
20:33:18.283 capi_ctrl.c (CNF, CTRL 3) - CAPI_LISTEN
20:33:18.293 capi_ctrl.c (CNF, CTRL 4) - CAPI_LISTEN
20:33:18.293 capi_ctrl.c (CNF, CTRL 5) - CAPI_LISTEN
>>====== phone registration
21:04:05.523 voip_events.c RX-REQUEST 638 bytes Request msg REGISTER/cseq=539 (rdata0x52816c) from UDP 192.168.178.22:5060
21:04:05.523 voip_events.c RX-SIP:
REGISTER sip:fritz.box:5061;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.178.22:5060;branch=z9hG4bKg26ovrcftlm1q0lm1g4e5er;rport
From: <sip:[email protected]>;tag=hodgo22mplhc7a3c14dj
To: <sip:[email protected]>
Contact: <sip:[email protected];transport=UDP>;expires=3600
CSeq: 539 REGISTER
Call-ID: CMsc23UwoIcnGMArfKpMc7LhdxU_vo
Supported: sec-agree
User-Agent: Nokia RM-244 200.34.36
Max-Forwards: 70
Authorization: Digest realm="fritz.box",nonce="7fdcc2331befd79f",opaque="41a7c4c96b68079a",algorithm=MD5,username="test",uri="sip:fritz.box:5061;transport=UDP",response="3d7b598a1ef31033ee7da6aadfe80011"
Content-Length: 0
21:04:05.523 voip_auth.c Found credentials -> user: test, realm: fritz.box
21:04:05.523 voip_registrar Status: 200 (OK)
>>===== Outgoing phonecall (rejected)
21:05:02.383 voip_events.c RX-REQUEST 1106 bytes Request msg INVITE/cseq=539 (rdata0x52816c) from UDP 192.168.178.22:5060
21:05:02.383 voip_events.c RX-SIP:
INVITE sip:fritz.box:5061;transport=UDP SIP/2.0
Route: <sip:[email protected];user=phone>
Via: SIP/2.0/UDP 192.168.178.22:5060;branch=z9hG4bK2rb0o23rjhhc61qve52hbrj;rport
From: Anonymous <sip:[email protected]>;tag=a2g0o2570thc7oq8e52q
To: <sip:[email protected];user=phone>
Contact: <sip:[email protected];transport=UDP>
Supported: 100rel,sec-agree
CSeq: 539 INVITE
Call-ID: casc2c_GoIcwZT55XP9iaEIVnC-QIY
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK
Expires: 120
Privacy: id
P-Preferred-Identity: sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 449
v=0
o=Nokia-SIPUA 63389077499640000 63389077499640000 IN IP4 192.168.178.22
s=-
c=IN IP4 192.168.178.22
t=0 0
m=audio 49152 RTP/AVP 18 8 0 97 96 98 13
a=sendrecv
a=ptime:20
a=maxptime:200
a=fmtp:18 annexb=no
a=fmtp:96 mode-change-neighbor=1
a=fmtp:98 0-15
a=rtpmap:18 G729/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:97 iLBC/8000/1
a=rtpmap:96 AMR/8000/1
a=rtpmap:98 telephone-event/8000/1
a=rtpmap:13 CN/8000/1
21:05:02.383 voip_events.c UNAUTHORIZED OUTGOING CLIENT REQUEST!
>>===== repeat request
21:05:05.413 voip_events.c RX-REQUEST 1106 bytes Request msg INVITE/cseq=539 (rdata0x52816c) from UDP 192.168.178.22:5060
21:05:05.413 voip_events.c RX-SIP:
INVITE sip:fritz.box:5061;transport=UDP SIP/2.0
Route: <sip:[email protected];user=phone>
Via: SIP/2.0/UDP 192.168.178.22:5060;branch=z9hG4bK2rb0o23rjhhc61qve52hbrj;rport
From: Anonymous <sip:[email protected]>;tag=a2g0o2570thc7oq8e52q
To: <sip:[email protected];user=phone>
Contact: <sip:[email protected];transport=UDP>
Supported: 100rel,sec-agree
CSeq: 539 INVITE
Call-ID: casc2c_GoIcwZT55XP9iaEIVnC-QIY
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK
Expires: 120
Privacy: id
P-Preferred-Identity: sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 449
v=0
o=Nokia-SIPUA 63389077499640000 63389077499640000 IN IP4 192.168.178.22
s=-
c=IN IP4 192.168.178.22
t=0 0
m=audio 49152 RTP/AVP 18 8 0 97 96 98 13
a=sendrecv
a=ptime:20
a=maxptime:200
a=fmtp:18 annexb=no
a=fmtp:96 mode-change-neighbor=1
a=fmtp:98 0-15
a=rtpmap:18 G729/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:97 iLBC/8000/1
a=rtpmap:96 AMR/8000/1
a=rtpmap:98 telephone-event/8000/1
a=rtpmap:13 CN/8000/1
21:05:05.413 voip_events.c UNAUTHORIZED OUTGOING CLIENT REQUEST!
>>===== repeat request
21:05:11.483 voip_events.c RX-REQUEST 1106 bytes Request msg INVITE/cseq=539 (rdata0x52816c) from UDP 192.168.178.22:5060
21:05:11.493 voip_events.c RX-SIP:
INVITE sip:fritz.box:5061;transport=UDP SIP/2.0
Route: <sip:[email protected];user=phone>
Via: SIP/2.0/UDP 192.168.178.22:5060;branch=z9hG4bK2rb0o23rjhhc61qve52hbrj;rport
From: Anonymous <sip:[email protected]>;tag=a2g0o2570thc7oq8e52q
To: <sip:[email protected];user=phone>
Contact: <sip:[email protected];transport=UDP>
Supported: 100rel,sec-agree
CSeq: 539 INVITE
Call-ID: casc2c_GoIcwZT55XP9iaEIVnC-QIY
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK
Expires: 120
Privacy: id
P-Preferred-Identity: sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 449
v=0
o=Nokia-SIPUA 63389077499640000 63389077499640000 IN IP4 192.168.178.22
s=-
c=IN IP4 192.168.178.22
t=0 0
m=audio 49152 RTP/AVP 18 8 0 97 96 98 13
a=sendrecv
a=ptime:20
a=maxptime:200
a=fmtp:18 annexb=no
a=fmtp:96 mode-change-neighbor=1
a=fmtp:98 0-15
a=rtpmap:18 G729/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:97 iLBC/8000/1
a=rtpmap:96 AMR/8000/1
a=rtpmap:98 telephone-event/8000/1
a=rtpmap:13 CN/8000/1
21:05:11.493 voip_events.c UNAUTHORIZED OUTGOING CLIENT REQUEST!
>>===== repeat request
21:05:23.443 voip_events.c RX-REQUEST 1106 bytes Request msg INVITE/cseq=539 (rdata0x52816c) from UDP 192.168.178.22:5060
21:05:23.443 voip_events.c RX-SIP:
INVITE sip:fritz.box:5061;transport=UDP SIP/2.0
Route: <sip:[email protected];user=phone>
Via: SIP/2.0/UDP 192.168.178.22:5060;branch=z9hG4bK2rb0o23rjhhc61qve52hbrj;rport
From: Anonymous <sip:[email protected]>;tag=a2g0o2570thc7oq8e52q
To: <sip:[email protected];user=phone>
Contact: <sip:[email protected];transport=UDP>
Supported: 100rel,sec-agree
CSeq: 539 INVITE
Call-ID: casc2c_GoIcwZT55XP9iaEIVnC-QIY
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK
Expires: 120
Privacy: id
P-Preferred-Identity: sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 449
v=0
o=Nokia-SIPUA 63389077499640000 63389077499640000 IN IP4 192.168.178.22
s=-
c=IN IP4 192.168.178.22
t=0 0
m=audio 49152 RTP/AVP 18 8 0 97 96 98 13
a=sendrecv
a=ptime:20
a=maxptime:200
a=fmtp:18 annexb=no
a=fmtp:96 mode-change-neighbor=1
a=fmtp:98 0-15
a=rtpmap:18 G729/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:97 iLBC/8000/1
a=rtpmap:96 AMR/8000/1
a=rtpmap:98 telephone-event/8000/1
a=rtpmap:13 CN/8000/1
21:05:23.443 voip_events.c UNAUTHORIZED OUTGOING CLIENT REQUEST!
>>===== end of all request for a while
16:46:58.466 script_funcs.c RUN SCRIPT: "/var/dtmfbox/script/action_am.sh" "CONFIRMED" "CAPI" "INCOMING" "0" "-1" "0145750" "9#999999" "5" ""
16:46:59.111 port_filestrea (220180) Unable to open ./play/ansage.wav
16:46:59.271 wav_writer.c File writer '/var/dtmfbox/record/5/08-09-11---0145750-9999999-0.wav' created: samp.rate=8000, bufsize=4KB
16:46:59.272 conference.c Port 2 (capi port - ec [0]) transmitting to port 4 (recorder [0])
16:46:59.273 script_funcs.c [0] (SCRIPT) - recording /var/dtmfbox/record/5/08-09-11---0145750-9999999-0.wav...
16:46:59.519 conference.c Port 3 (tone port [0]) transmitting to port 2 (capi port - ec [0])
16:46:59.520 script_funcs.c [0] (SCRIPT) - playing generated tones... (freq1: 800, freq2: 800, msec on: 1000, msec off: 1000, volume: 32767)
16:47:00.689 conference.c Port 3 (tone port [0]) stop transmitting to port 2 (capi port - ec [0])
16:47:00.689 script_funcs.c [0] (SCRIPT) - tone generator stopped!
[...]
16:47:18.210 port_filestrea Stream player created (/var/tmp/0-espeak-1116.wav, 16000hz, 16bit, mono)
16:47:18.210 conference.c Port 4 (player [0,0]) transmitting to port 2 (capi port - ec [0])
16:47:18.211 script_funcs.c [0] (SCRIPT) [play_id: -1] - playing /var/tmp/0-espeak-1116.wav...
16:47:18.211 mixer.c [0] - mixer - play_id: 0, rec_id: -1
16:47:20.058 scombdb-up Buffer size adjusted from 510 to 368 (eff_cnt=331)
16:47:22.808 conference.c Port 4 (player [0,0]) stop transmitting to port 2 (capi port - ec [0])
16:47:22.899 port_filestrea (220180) Unable to open /var/dtmfbox/record/5/08-09-11--14-53-14---0145750-9999999.wav
16:47:30.058 scombdb-up Buffer size adjusted from 368 to 202 (eff_cnt=200)
Wie und wo denn? Ich kann nur die Parameter auf 0 setzen...Zum Testen würde ich den Echo-Canceller vorerst ausstellen.
Probiert, nützt nix! Immer noch kein Ton. Wie gesagt mit der alten Version ging es. Könnte natürlich noch an der neuen FW liegen. Die habe ich ebenfalls geupdatet...Es kann eventuell auch am AB-Skript selbst liegen. Ich habe mal die überarbeitete Version angehangen. Das vorhandene Skript im Webinterface einfach durch dieses ersetzen.
[...]
# .. and play!
if [ "$is_ftp" = "OK" ];
then
PLAYFIFO="/var/tmp/$SRC_ID.am_admin_play"
file=`echo $file | sed "s/.*\///g`
$MKFIFO "$PLAYFIFO" 2>/dev/null
wget -q -O - "ftp://$AM_FTP_USERNAME:$AM_FTP_PASSWORD@$AM_FTP_SERVER:$AM_FTP_PORT/$AM_FTP_PATH/$file" > "$PLAYFIFO" &
$DTMFBOX $SRC_ID -play "$PLAYFIFO" hz=8000 mode=stream>/dev/null
else
[COLOR="Red"]$DTMFBOX $SRC_ID -playstream "$file" hz=8000 >/dev/null[/COLOR]
fi
[...]
$DTMFBOX $SRC_ID -speak "Hallo Tom, der erste Versuch funktioniert schon mal."
/var/dtmfbox/script/espeak.sh "Hallo Tom, der erste Versuch funktioniert schon mal." "$SRC_ID"
#
# Benutzerdefiniertes Skript
#
# Basiseinstellungen:
# [general)
# scriptfile=/var/dtmfbox/script/userscript.sh
#!/var/tmp/sh
# Argumente
THIS_FILE="$0"
EVENT="$1"
TYPE="$2"
DIRECTION="$3"
SRC_ID="$4"
DST_ID="$5"
SRC_NO="$6"
DST_NO="$7"
ACC_ID="$8"
DTMF="$9"
MODE="$10"
echo "OK Userscript"
if [ "$EVENT" = "CONNECT" ] && [ "$TYPE" = "CAPI" ];
then
TEMP=$(wget -q -O - "http://www2.dasoertliche.de/?form_name=search_inv&page=RUECKSUCHE&context=RUECKSUCHE&action=STANDARDSUCHE&la=de&rci=no&ph=0$DST_NO" | grep -A 10 class=\"entry)
nameDO=$(echo "$TEMP" | sed -n -e 's/<[^<]*>/\ /g; s/^[^a-zA-Z0-9]*//g; 1p' | tr -d \\n | tr -d \\n)
addrDO=$(echo "$TEMP" | grep " " | sed -e 's/ / /g;s/<[^<]*>/ /g;s/ \{15\}//g' | tr -d \\n | tr -d \\n)
echo "hallo Telefonnummer $DST_NO $nameDO $addrDO ruft an" | /var/media/ftp/uStor01/smbclient -M fscheer2 -I 192.168.178.3
fi
10:58:37.631 plugins.c [plugin.menu] (#2): script: /var/dtmfbox/script/userscript.sh(/var/dtmfbox/script/userscript.sh, "CONNECT", "CAPI", "INCOMING", "0", "-1", "MSN", "EXT_NR", "2", "")
/var/dtmfbox/script/userscript.sh "/var/dtmfbox/script/userscript.sh" "CONNECT" "CAPI" "INCOMING" "0" "-1" "MSN" "EXT_NR" "2" ""
[script:action_userscript]
cmd=/var/dtmfbox/script/userscript.sh(/var/dtmfbox/script/userscript.sh, "%event%", "%type%", "%direction%", "%src_id%", "%dst_id%", "%src_no%", "%dst_no%", "%acc_id%", "%dtmf%")
.....
[action:4_action_userscript]
event=CONNECT
direction=INCOMING
action=script:action_userscript