Сообщений: 9
|
Re: Asterisk+LDK300
Звоню с SIP телефона. С SIP на SIP звонки проходят нормально.
sip*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-pstn ru default In Service
1 from-pstn ru default In Service
2 from-pstn ru default In Service
...................................................
31 from-pstn ru default In Service
При звонке в логе:
[Nov 6 16:04:40] VERBOSE[17218] logger.c: == Using SIP RTP TOS bits 184
[Nov 6 16:04:40] VERBOSE[17218] logger.c: == Using SIP RTP CoS mark 5
[Nov 6 16:04:40] VERBOSE[17218] logger.c: == Using SIP VRTP TOS bits 136
[Nov 6 16:04:40] VERBOSE[17218] logger.c: == Using SIP VRTP CoS mark 6
[Nov 6 16:04:40] WARNING[17207] pbx.c: FONALITY: This thread has already held the conlock, skip locking
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [4321@from-internal:1] Macro("SIP/5800-09513400", "user-callerid,SKIPTTL,") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:1] Set("SIP/5800-09513400", "AMPUSER=5800") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/5800-09513400", "0?report") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/5800-09513400", "1?Set(REALCALLERIDNUM=5800)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:4] Set("SIP/5800-09513400", "AMPUSER=5800") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:5] Set("SIP/5800-09513400", "AMPUSERCIDNAME=5800") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/5800-09513400", "0?report") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:7] Set("SIP/5800-09513400", "AMPUSERCID=5800") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:8] Set("SIP/5800-09513400", "CALLERID(all)="5800" <5800>") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:9] Set("SIP/5800-09513400", "REALCALLERIDNUM=5800") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:10] ExecIf("SIP/5800-09513400", "1?Set(CHANNEL(language)=ru)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:11] GotoIf("SIP/5800-09513400", "1?continue") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Goto (macro-user-callerid,s,20)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-user-callerid:20] NoOp("SIP/5800-09513400", "Using CallerID "5800" <5800>") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [4321@from-internal:2] Set("SIP/5800-09513400", "_NODEST=") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [4321@from-internal:3] Macro("SIP/5800-09513400", "record-enable,5800,OUT,") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/5800-09513400", "1?check") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Goto (macro-record-enable,s,4)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-record-enable:4] AGI("SIP/5800-09513400", "recordingcheck,20091106-160440,1257512680.0") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[Nov 6 16:04:40] VERBOSE[17330] logger.c: recordingcheck,20091106-160440,1257512680.0: Outbound recording not enabled
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- <SIP/5800-09513400>AGI Script recordingcheck completed, returning 0
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-record-enable:5] MacroExit("SIP/5800-09513400", "") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [4321@from-internal:4] Macro("SIP/5800-09513400", "dialout-trunk,3,4321,,") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/5800-09513400", "DIAL_TRUNK=3") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/5800-09513400", "0?sub-pincheck,s,1") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/5800-09513400", "0?disabletrunk,1") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/5800-09513400", "DIAL_NUMBER=4321") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/5800-09513400", "DIAL_TRUNK_OPTIONS=tr") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/5800-09513400", "OUTBOUND_GROUP=OUT_3") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/5800-09513400", "1?nomax") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Goto (macro-dialout-trunk,s,9)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/5800-09513400", "0?skipoutcid") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/5800-09513400", "DIAL_TRUNK_OPTIONS=") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/5800-09513400", "outbound-callerid,3") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/5800-09513400", "0?Set(CALLERPRES()=)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/5800-09513400", "0?Set(REALCALLERIDNUM=5800)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/5800-09513400", "1?normcid") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Goto (macro-outbound-callerid,s,6)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/5800-09513400", "USEROUTCID=") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/5800-09513400", "EMERGENCYCID=") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/5800-09513400", "TRUNKOUTCID=5810") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/5800-09513400", "1?trunkcid") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Goto (macro-outbound-callerid,s,12)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/5800-09513400", "1?Set(CALLERID(all)=5810)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/5800-09513400", "0?Set(CALLERID(all)=)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/5800-09513400", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/5800-09513400", "1?AGI(fixlocalprefix)") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > fixlocalprefix: Using pattern XXXX
[Nov 6 16:04:40] VERBOSE[17330] logger.c: == fixlocalprefix: Dialpattern XXXX matched. 4321 -> 4321
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- <SIP/5800-09513400>AGI Script fixlocalprefix completed, returning 0
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/5800-09513400", "OUTNUM=4321") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/5800-09513400", "custom=DAHDI/12") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/5800-09513400", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/5800-09513400", "dialout-trunk-predial-hook,") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/5800-09513400", "") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/5800-09513400", "0?bypass,1") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/5800-09513400", "0?customtrunk") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/5800-09513400", "DAHDI/12/4321,300,") in new stack
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Making new call for cr 32770
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Requested transfer capability: 0x00 - SPEECH
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Protocol Discriminator: Q.931 (8) len=31
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Call Ref: len= 2 (reference 2/0x2) (Originator)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Message type: SETUP (5)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > [04 03 80 90 a3]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > User information layer 1: A-Law (35)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > [18 03 a9 83 8c]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > ChanSel: As indicated in following octets
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Ext: 1 Coding: 0 Number Specified Channel Type: 3
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Ext: 1 Channel: 12 ]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > [6c 06 21 80 35 38 31 30]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Presentation: Presentation permitted, user number not screened (0) '5810' ]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > [70 05 a1 34 33 32 31]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Called Number (len= 7) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '4321' ]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > [a1]
[Nov 6 16:04:40] VERBOSE[17330] logger.c: > Sending Complete (len= 1)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: q931.c:3134 q931_setup: call 32770 on channel 12 enters state 1 (Call Initiated)
[Nov 6 16:04:40] VERBOSE[17330] logger.c: -- Called 12/4321
[Nov 6 16:04:43] VERBOSE[17333] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:04:45] VERBOSE[17333] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:04:51] VERBOSE[17341] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:04:52] VERBOSE[17341] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:04:58] VERBOSE[17349] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:04:59] VERBOSE[17349] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:01] VERBOSE[17330] logger.c: NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Initiated, peerstate Overlap sending
[Nov 6 16:05:01] VERBOSE[17330] logger.c: q931.c:3015 q931_disconnect: call 32770 on channel 12 enters state 11 (Disconnect Request)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > Protocol Discriminator: Q.931 (8) len=9
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > Call Ref: len= 2 (reference 2/0x2) (Originator)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > Message type: DISCONNECT (69)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > [08 02 81 90]
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Hungup 'DAHDI/12-1'
[Nov 6 16:05:01] VERBOSE[17330] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/5800-09513400' in macro 'dialout-trunk'
[Nov 6 16:05:01] VERBOSE[17330] logger.c: == Spawn extension (from-internal, 4321, 4) exited non-zero on 'SIP/5800-09513400'
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [h@from-internal:1] Macro("SIP/5800-09513400", "hangupcall") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/5800-09513400", "vw") in new stack
[Nov 6 16:05:01] WARNING[17207] pbx.c: FONALITY: This thread has already held the conlock, skip locking
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:2] NoCDR("SIP/5800-09513400", "") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:3] GotoIf("SIP/5800-09513400", "1?skiprg") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Goto (macro-hangupcall,s,6)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:6] GotoIf("SIP/5800-09513400", "1?skipblkvm") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Goto (macro-hangupcall,s,9)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:9] GotoIf("SIP/5800-09513400", "1?theend") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Goto (macro-hangupcall,s,11)
[Nov 6 16:05:01] VERBOSE[17330] logger.c: -- Executing [s@macro-hangupcall:11] Hangup("SIP/5800-09513400", "") in new stack
[Nov 6 16:05:01] VERBOSE[17330] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/5800-09513400' in macro 'hangupcall'
[Nov 6 16:05:01] VERBOSE[17330] logger.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/5800-09513400'
[Nov 6 16:05:02] VERBOSE[17357] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:02] VERBOSE[17357] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:05] VERBOSE[17360] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:07] VERBOSE[17360] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:13] VERBOSE[17368] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:14] VERBOSE[17368] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:20] VERBOSE[17376] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:21] VERBOSE[17376] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:27] VERBOSE[17384] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:29] VERBOSE[17384] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:31] VERBOSE[17216] logger.c: Timed out looking for release
[Nov 6 16:05:31] VERBOSE[17216] logger.c: q931.c:2967 q931_release: call 32770 on channel 12 enters state 19 (Release Request)
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > Protocol Discriminator: Q.931 (8) len=9
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > Call Ref: len= 2 (reference 2/0x2) (Originator)
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > Message type: RELEASE (77)
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > [08 02 81 90]
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
[Nov 6 16:05:31] VERBOSE[17216] logger.c: > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
[Nov 6 16:05:32] VERBOSE[17392] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:33] VERBOSE[17392] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:35] VERBOSE[17395] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Nov 6 16:05:35] VERBOSE[17216] logger.c: Timed out looking for release complete
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > Protocol Discriminator: Q.931 (8) len=9
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > Call Ref: len= 2 (reference 2/0x2) (Originator)
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > Message type: RELEASE (77)
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > [08 02 81 90]
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
[Nov 6 16:05:35] VERBOSE[17216] logger.c: > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
[Nov 6 16:05:36] VERBOSE[17395] logger.c: == Manager 'admin' logged off from 127.0.0.1
[Nov 6 16:05:39] VERBOSE[17216] logger.c: Final time-out looking for release complete
[Nov 6 16:05:39] VERBOSE[17216] logger.c: NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
[Nov 6 16:05:39] VERBOSE[17216] logger.c: NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
|