No1. for asterisk(1.2.30.2) & vicidial(2.0.5 newest trunk)
No2. for astguiclient & database
No3. for log archiving
No4. for tranfer call to Zap, with 1 port T1 card (in another city)
Between No1. No4. using dundi.
When I dial out with manual dial, it can transfer the call to Zap and keep connected. But when I use auto dial , radio 1.5, it can meetme the agent, can dial to server No4., can dial Zap, but then break.
If any one help us to resolve the problem, thanks a lot.
Config as below.
Server No1.
- Code: Select all
extension.conf
; Dundi between HK&ZH and PRI
;
exten => _58XX,1,Macro(dundi-priv,${EXTEN})
exten => _58XX,2,Dial(SIP/${EXTEN})
; Dundi PRI
exten => _9NXXXXXXX,1,Macro(dundi-priv,${EXTEN})
exten => _9NXXXXXXX,2,SetCallerID(37104000)
exten => _9NXXXXXXX,3,Dial(Zap/g1/${EXTEN:1},30,tTo)
exten => _9NXXXXXXX,4,Hangup
; Test for campaign
exten => _9852NXXXXXXX,1,Macro(dundi-priv,9${EXTEN:4})
exten => _9852NXXXXXXX,2,SetCallerID(3714000)
exten => _9852NXXXXXXX,3,Dial(ZAP/g1/9${EXTEN:4},55,To)
exten => _9852NXXXXXXX,4,Hangup
- Code: Select all
; the first three contexts are separated in order to group them by the appropriate dundi priority
; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers (dundi priority 0)
; This advertises extensions from 6800 to 6999 as local to PBX B
exten => _6[8,9]XX,1,Goto(default,${EXTEN},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here. (dundi priority 100)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here (dundi priority 400)
;exten => _9NXXXXXXX,1,Dial(ZAP/g1/${EXTEN:1})
; this context is used to group the 3 above and reference in iax.conf for the incoming calls referred by dundi
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
; the rest of the contexts are used for calls placed locally to go out to our dundi peers
; entry point is macro-dundi-priv
[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv
[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch
[macro-dundi-priv]
exten => s,1,Wait(1)
exten => s,2,Goto(${ARG1},1)
include => dundi-priv-lookup
Server No4.
- Code: Select all
;
; Dundi between HK&ZH and PRI
;
exten => _6[8-9]XX,1,Macro(dundi-priv,${EXTEN})
exten => _6[8-9]XX,2,Dial(SIP/${EXTEN})
; Dundi PRI
;exten => _9NXXXXXXX,1,Macro(dundi-priv,${EXTEN})
exten => _9NXXXXXXX,1,SetCallerID(37104000)
exten => _9NXXXXXXX,2,Dial(Zap/g1/${EXTEN:1},30,tTo)
exten => _9NXXXXXXX,3,Hangup
; Test for campaign
;exten => _9852NXXXXXXX,1,Macro(dundi-priv,9${EXTEN:4})
exten => _9852NXXXXXXX,1,SetCallerID(3714000)
exten => _9852NXXXXXXX,2,Dial(ZAP/g1/${EXTEN:4},55,To)
exten => _9852NXXXXXXX,3,Hangup
- Code: Select all
; the first three contexts are separated in order to group them by the appropriate dundi priority
; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers (dundi priority 0)
; This advertises extensions from 8510 to 8519 as local to PBX A
exten => _58XX,1,Goto(default|${EXTEN}|1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here. (dundi priority 100)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here (dundi priority 400)
;exten => _9NXXXXXXX,1,Dial(ZAP/g1/${EXTEN}
exten => _9NXXXXXXX,1,SetCallerID(37104000)
exten => _9NXXXXXXX,2,Dial(Zap/g1/${EXTEN:1},30,tTo)
exten => _9NXXXXXXX,3,Hangup
; this context is used to group the 3 above and reference in iax.conf for the incoming calls referred by dundi
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
; the rest of the contexts are used for calls placed locally to go out to our dundi peers
; entry point is macro-dundi-priv
[dundi-priv-switch]
; Just a wrapper for the switch
switch => DUNDi/priv
[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch
[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup
Log as below:
Server No1. log
- Code: Select all
Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 32491 DTrans: 18607 [192.168.2.40:4520] (Final)
-- Accepting AUTHENTICATED call from 192.168.2.40:
> requested format = slin,
> requested prefs = (g729|gsm),
> actual format = g729,
> host prefs = (g729|gsm),
> priority = mine
-- Executing SetCallerID("IAX2/priv-15997", "37104000") in new stack
-- Executing Dial("IAX2/priv-15997", "Zap/g1/31626590|30|tTo") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/31626590
-- Zap/1-1 is proceeding passing it to IAX2/priv-15997
-- Zap/1-1 is ringing
-- Zap/1-1 answered IAX2/priv-15997
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: ENCRYPT (Command)
Flags: 00 STrans: 14295 DTrans: 00000 [192.168.2.40:4520]
ENTITY IDENT : 00:1d:92:b7:f9:b3
KEYCRC32 : 2592641108
ENCDATA : [IV dc9b6f6b93fe772513d0080ee0a23f22] 4 encrypted blocks
vici*CLI>
Erx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: DPDISCOVER (Command)
Flags: 00 STrans: 14295 DTrans: 00000 [192.168.2.40:4520]
VERSION : 1
DIRECT EID : 00:1d:92:b7:f9:b3
CALLED NUMBER : h
CALLED CONTEXT : priv
TTL : 2
vici*CLI>
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.2.40:4520]
ETx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: DPRESPONSE (Response)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.2.40:4520] (Final)
HINT : [DONTASK|UNAFFECTED] h?·B
EXPIRATION : 5
vici*CLI>
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ENCRYPT (Command)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.2.40:4520]
ENCDATA : [IV faf8cd25996e9e03e957840017333d6b] 3 encrypted blocks
vici*CLI>
Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 14295 DTrans: 27143 [192.168.2.40:4520] (Final)
-- Hungup 'Zap/1-1'
== Spawn extension (dundi-priv-local, 931626590, 2) exited non-zero on 'IAX2/priv-15997'
-- Hungup 'IAX2/priv-15997'
Server No4. log
- Code: Select all
vici*CLI>
Tx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 32491 DTrans: 18607 [192.168.1.40:4520] (Final)
-- Called priv:T9zlLopJTGEOz69a+xH7Ew@192.168.1.40/931626590
-- Call accepted by 192.168.1.40 (format g729)
-- Format for call is g729
-- IAX2/192.168.1.40:4569-4193 is proceeding passing it to Local/985231626590@default-e161,2
-- IAX2/192.168.1.40:4569-4193 is ringing
-- IAX2/192.168.1.40:4569-4193 stopped sounds
-- IAX2/192.168.1.40:4569-4193 answered Local/985231626590@default-e161,2
> Channel Local/985231626590@default-e161,1 was answered.
-- Executing Playback("Local/985231626590@default-e161,1", "sip-silence") in new stack
-- Playing 'sip-silence' (language 'en')
== Manager 'sendcron' logged off from 127.0.0.1
== Spawn extension (macro-dundi-priv, 931626590, 1) exited non-zero on 'Local/985231626590@default-e161,2' in macro 'dundi-priv'
== Spawn extension (macro-dundi-priv, 931626590, 1) exited non-zero on 'Local/985231626590@default-e161,2'
ETx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: DPDISCOVER (Command)
Flags: 00 STrans: 14295 DTrans: 00000 [192.168.1.40:4520]
VERSION : 1
DIRECT EID : 00:1d:92:b7:f9:b3
CALLED NUMBER : h
CALLED CONTEXT : priv
TTL : 2
vici*CLI>
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: ENCRYPT (Command)
Flags: 00 STrans: 14295 DTrans: 00000 [192.168.1.40:4520]
ENTITY IDENT : 00:1d:92:b7:f9:b3
KEYCRC32 : 2592641108
ENCDATA : [IV dc9b6f6b93fe772513d0080ee0a23f22] 4 encrypted blocks
vici*CLI>
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.1.40:4520]
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ENCRYPT (Command)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.1.40:4520]
ENCDATA : [IV faf8cd25996e9e03e957840017333d6b] 3 encrypted blocks
vici*CLI>
Erx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: DPRESPONSE (Response)
Flags: 00 STrans: 27143 DTrans: 14295 [192.168.1.40:4520] (Final)
HINT : [DONTASK|UNAFFECTED] h?·B
EXPIRATION : 5
vici*CLI>
Tx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 14295 DTrans: 27143 [192.168.1.40:4520] (Final)
-- Executing AGI("IAX2/192.168.1.40:4569-4193", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing AGI("IAX2/192.168.1.40:4569-4193", "agi-VDAD_ALL_outbound.agi|NORMAL-----LB") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
== Spawn extension (default, 8368, 3) exited non-zero on 'IAX2/192.168.1.40:4569-4193'
-- Executing DeadAGI("IAX2/192.168.1.40:4569-4193", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
-- Hungup 'IAX2/192.168.1.40:4569-4193'
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: NULL (Command)
Flags: 00 STrans: 02528 DTrans: 00000 [192.168.1.40:4520] (Final)
Tx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: ACK (Response)
Flags: 00 STrans: 12055 DTrans: 02528 [192.168.1.40:4520] (Final)
vici*CLI>