Откуда: KZ, Almaty
Сообщений: 16
|
Re: Звонки от одного и того же вн. номера
Извините за большой код, жирным выделил абонента который отображается у всех.
Подскажите как исправить, например чтобы переадресованный секретарем входящий звонок с городского номера не отображались с именем Ivan Ivanov, а было бы например с надписью GOROD
-- Starting simple switch on 'Zap/3-1'
-- Executing [s@from-zaptel:1] NoOp("Zap/3-1", "Entering from-zaptel with DID == ") in new stack
-- Executing [s@from-zaptel:2] Ringing("Zap/3-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("Zap/3-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("Zap/3-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("Zap/3-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing [s@from-zaptel:8] NoOp("Zap/3-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("Zap/3-1", "CHAN=3-1") in new stack
-- Executing [s@from-zaptel:10] Set("Zap/3-1", "CHAN=3") in new stack
-- Executing [s@from-zaptel:11] Macro("Zap/3-1", "from-zaptel-3|s|1") in new stack
-- Executing [s@macro-from-zaptel-3:1] NoOp("Zap/3-1", "Entering macro-from-zaptel-3 with DID = s") in new stack
-- Executing [s@macro-from-zaptel-3:2] Set("Zap/3-1", "__FROM_DID=s") in new stack
-- Executing [s@macro-from-zaptel-3:3] GotoIf("Zap/3-1", "0 ?cidok") in new stack
-- Executing [s@macro-from-zaptel-3:4] Set("Zap/3-1", "CALLERID(name)=") in new stack
-- Executing [s@macro-from-zaptel-3:5] NoOp("Zap/3-1", "CallerID is "" <>") in new stack
-- Executing [s@macro-from-zaptel-3:6] Goto("Zap/3-1", "from-did-direct|30|1") in new stack
-- Goto (from-did-direct,30,1)
== Channel 'Zap/3-1' jumping out of macro 'from-zaptel-3'
-- Executing [30@from-did-direct:1] Macro("Zap/3-1", "exten-vm|30|30") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Zap/3-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("Zap/3-1", "user-callerid: ") in new stack
-- Executing [s@macro-user-callerid:2] Set("Zap/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Zap/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] GotoIf("Zap/3-1", "0?start") in new stack
-- Executing [s@macro-user-callerid:5] Set("Zap/3-1", "REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:6] NoOp("Zap/3-1", "REALCALLERIDNUM is ") in new stack
-- Executing [s@macro-user-callerid:7] Set("Zap/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:8] Set("Zap/3-1", "AMPUSERCIDNAME=Ivan Ivanov") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("Zap/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:10] Set("Zap/3-1", "AMPUSERCID=") in new stack
-- Executing [s@macro-user-callerid:11] Set("Zap/3-1", "CALLERID(all)="Ivan Ivanov" <>") in new stack
-- Executing [s@macro-user-callerid:12] Set("Zap/3-1", "REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("Zap/3-1", "TTL: ARG1: 30") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("Zap/3-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("Zap/3-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("Zap/3-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("Zap/3-1", "Using CallerID "Ivan Ivanov" <>") in new stack
-- Executing [s@macro-exten-vm:2] Set("Zap/3-1", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("Zap/3-1", "VMBOX=30") in new stack
-- Executing [s@macro-exten-vm:4] Set("Zap/3-1", "EXTTOCALL=30") in new stack
-- Executing [s@macro-exten-vm:5] Set("Zap/3-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("Zap/3-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("Zap/3-1", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("Zap/3-1", "record-enable|30|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Zap/3-1", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("Zap/3-1", "recordingcheck|20101126-171631|1290770186.200") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20101126-171631|1290770186.200: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("Zap/3-1", "No recording needed") in new stack
-- Executing [s@macro-exten-vm:9] Macro("Zap/3-1", "dial|15|tr|30") in new stack
-- Executing [s@macro-dial:1] GotoIf("Zap/3-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("Zap/3-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'Ivan Ivanov' number is 'unknown'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 30 to extension map
-- dialparties.agi: Extension 30 cf is disabled
-- dialparties.agi: Extension 30 do not disturb is disabled
dialparties.agi: Extension 30 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 30
-- dialparties.agi: DbDel CALLTRACE/30 - Caller ID is not defined
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:10] Dial("Zap/3-1", "SIP/30|15|tr") in new stack
-- Called 30
-- SIP/30-083decd0 is ringing
-- SIP/30-083decd0 answered Zap/3-1
-- Started music on hold, class 'default', on Zap/3-1
-- Stopped music on hold on Zap/3-1
== Spawn extension (from-internal-xfer, 21, 0) exited non-zero on 'Zap/3-1' in macro 'dial'
== Spawn extension (from-internal-xfer, 21, 0) exited non-zero on 'Zap/3-1' in macro 'exten-vm'
== Spawn extension (from-internal-xfer, 21, 0) exited non-zero on 'Zap/3-1'
-- Executing [21@from-internal-xfer:1] Macro("Zap/3-1", "exten-vm|21|21") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Zap/3-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("Zap/3-1", "user-callerid: Ivan Ivanov ") in new stack
-- Executing [s@macro-user-callerid:2] Set("Zap/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Zap/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] GotoIf("Zap/3-1", "0?start") in new stack
-- Executing [s@macro-user-callerid:5] Set("Zap/3-1", "REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:6] NoOp("Zap/3-1", "REALCALLERIDNUM is ") in new stack
-- Executing [s@macro-user-callerid:7] Set("Zap/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:8] Set("Zap/3-1", "AMPUSERCIDNAME=Ivan Ivanov") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("Zap/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:10] Set("Zap/3-1", "AMPUSERCID=") in new stack
-- Executing [s@macro-user-callerid:11] Set("Zap/3-1", "CALLERID(all)="Ivan Ivanov" <>") in new stack
-- Executing [s@macro-user-callerid:12] Set("Zap/3-1", "REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("Zap/3-1", "TTL: 64 ARG1: 21") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("Zap/3-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("Zap/3-1", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("Zap/3-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("Zap/3-1", "Using CallerID "Ivan Ivanov" <>") in new stack
-- Executing [s@macro-exten-vm:2] Set("Zap/3-1", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("Zap/3-1", "VMBOX=21") in new stack
-- Executing [s@macro-exten-vm:4] Set("Zap/3-1", "EXTTOCALL=21") in new stack
-- Executing [s@macro-exten-vm:5] Set("Zap/3-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("Zap/3-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("Zap/3-1", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("Zap/3-1", "record-enable|21|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Zap/3-1", "1?2:4") in new stack
-- Goto (macro-record-enable,s,2)
-- Executing [s@macro-record-enable:2] ResetCDR("Zap/3-1", "w") in new stack
-- Executing [s@macro-record-enable:3] StopMonitor("Zap/3-1", "") in new stack
-- Executing [s@macro-record-enable:4] AGI("Zap/3-1", "recordingcheck|20101126-171642|1290770186.200") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20101126-171642|1290770186.200: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("Zap/3-1", "No recording needed") in new stack
-- Executing [s@macro-exten-vm:9] Macro("Zap/3-1", "dial|15|tr|21") in new stack
-- Executing [s@macro-dial:1] GotoIf("Zap/3-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("Zap/3-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'Ivan Ivanov' number is 'unknown'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 21 to extension map
-- dialparties.agi: Extension 21 cf is disabled
-- dialparties.agi: Extension 21 do not disturb is disabled
dialparties.agi: Extension 21 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 21
-- dialparties.agi: DbDel CALLTRACE/21 - Caller ID is not defined
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:10] Dial("Zap/3-1", "SIP/21|15|tr") in new stack
-- Called 21
-- SIP/21-083db860 is ringing
-- SIP/21-083db860 answered Zap/3-1
|