Newsgroup: it.comp.reti.cisco
Titolo: VG200 >> ATA 186

Non trovo un esempio concreto di come configurare la Voip in oggetto da dove
parto
ps abbinato al VG200 ho una vic-2fx0 per trasferire due interni di un
centralino verso una sede distaccata

Ciao,

Beh puoi partire da 
www.cisco.com/tac
, e cercare "configure voip"...
Cmq cerca il post "VoIp su una BRI" ci sono vari link che servono per il tuo
caso.
Praticamente devi eseguire queste operazioni:
1. caricare sull'ATA il load con protocollo H.323 (non hai il Call Manager
vero?)
2. configurare l'ATA
(
http://www.cisco.com/warp/public/788/voip/ata_basicconfig.html
)
2. creare un dial-peer voip verso l'ATA
3. creare un dial peer pots verso le 2 FXO
Ciao
Marco

 3. creare un dial peer pots verso le 2 FXO
dial-peer voice 2 pots
destination-pattern 2..
direct-inward-dial
port 1/1/0
Questo e quello che succede quando dall'ATA (int. 215) chiamo il mio interno
(274)
voip ccAPI function enter/exit debugging is on
01:59:51: cc_api_supported_data data_mode=0x10002
01:59:51: cc_api_call_setup_ind (vdbPtr=0x81246FC0,
callInfo={called=274,called_
oct3=0x81,calling=215,calling_oct3=0x1,calling_oct3a=0x80,calling_xlated=fal
se,s
ubscriber_type_str=Unknown,fdest=1,peer_tag=1, prog_ind=0,callingIE_present
1},c
allID=0x812C96E8)
01:59:51: cc_api_call_setup_ind type 0 , prot 1
01:59:51: cc_api_call_setup_ind (vdbPtr=0x81246FC0, callInfo={called=274,
callin
g=215, fdest=1 peer_tag=1}, callID=0x812C96E8)
01:59:51: cc_insert_call_entry: Increment call volume counter
01:59:51: cc_insert_call_entry: current call volume: 1
01:59:51: cc_insert_call_entry: entry's incoming TRUE. is_incoming is FALSE
01:59:51: cc_incr_if_call_volume: remote IP is 172.15.17.4
01:59:51: cc_incr_if_call_volume: hwidb is FastEthernet0/0
01:59:51: cc_incr_if_call_volume: create entry in list: 1
01:59:51: cc_process_call_setup_ind (event=0x81304084)
01:59:51: >>>>CCAPI handed cid 26 with tag 1 to app "DEFAULT"
01:59:51: sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(26), disp(0)
01:59:51: sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(26), disp(0)
01:59:51: ssaCallSetupInd
01:59:51: ccCallSetContext (callID=0x1A, context=0x812CBC28)
01:59:51: ssaCallSetupInd cid(26), st(SSA_CS_MAPPING),oldst(0),
ev(24)ev->e.evCa
llSetupInd.nCallInfo.finalDestFlag = 1
01:59:51: ssaCallSetupInd finalDest cllng(215), clled(274)
01:59:51: ssaCallSetupInd cid(26), st(SSA_CS_CALL_SETTING),oldst(0),
ev(24)dpMat
chPeersMoreArg result= 0
01:59:51: ssaSetupPeer cid(26) peer list:  tag(2) called number (274)
01:59:51: ssaSetupPeer cid(26), destPat(274), matched(1), prefix(),
peer(812F1FA
4), peer->encapType (1)
01:59:51: ccCallProceeding (callID=0x1A, prog_ind=0x0)
01:59:51: ccCallSetupRequest (Inbound call = 0x1A, outbound peer =2, dest=,
para
ms=0x81312F28 mode=0, *callID=0x81313358, prog_ind = 0) callingIE_present 1
01:59:51: ccCallSetupRequest numbering_type 0x81
01:59:51: ccCallSetupRequest encapType 1 clid_restrict_disable 1
null_orig_clg 0
 clid_transparent 0 callingNumber 215
01:59:51: dest pattern 2.., called 274, digit_strip 1
01:59:51: callingNumber=215, calledNumber=274, redirectNumber=
display_info=215
calling_oct3a=80
01:59:51: accountNumber=, finalDestFlag=1,
guid=1919.ffff.0ce5.4213.0811.0007.0edc.f178
01:59:51: peer_tag=2
01:59:51: ccIFCallSetupRequestPrivate: (vdbPtr=0x81369F00, dest=,
callParams={ca
lled=274,called_oct3=0x81, calling=215,calling_oct3=0x1,
calling_xlated=false,
subscriber_type_str=Unknown, fdest=1, voice_peer_tag=2},mode=0x0) vdbPtr
type =
6
01:59:51: ccIFCallSetupRequestPrivate: (vdbPtr=0x81369F00, dest=,
callParams={ca
lled=274, called_oct3 0x81,  calling=215,calling_oct3 0x1,
calling_xlated=false,
  fdest=1, voice_peer_tag=2}, mode=0x0, xltrc=-5)
01:59:51: cc_insert_call_entry: not incoming entry
01:59:51: cc_insert_call_entry: entry's incoming FALSE. is_incoming is FALSE
01:59:51: ccSaveDialpeerTag (callID=0x1A, dialpeer_tag=0x2)
01:59:51: ccCallSetContext (callID=0x1B, context=0x812CC19C)
01:59:51: ccCallReportDigits (callID=0x1A, enable=0x0)
01:59:51: cc_api_call_report_digits_done (vdbPtr=0x81246FC0, callID=0x1A,
disp=0
)
01:59:51: sess_appl: ev(52=CC_EV_CALL_REPORT_DIGITS_DONE), cid(26), disp(0)
01:59:51: cid(26)st(SSA_CS_CALL_SETTING)ev(SSA_EV_CALL_REPORT_DIGITS_DONE)
oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(1)
01:59:51: -cid2(27)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_MAPPING)
01:59:51: ssaReportDigitsDone cid(26) peer list: (empty)
01:59:51: ssaReportDigitsDone callid=26 Reporting disabled.
01:59:51: cc_incr_if_call_volume: not the VoIP or MMoIP
01:59:51: cc_api_call_proceeding(vdbPtr=0x81369F00, callID=0x1B,
      prog_ind=0x0, rawmsgPtr=0x0)
01:59:51: sess_appl: ev(21=CC_EV_CALL_PROCEEDING), cid(27), disp(0)
01:59:51: cid(27)st(SSA_CS_CALL_SETTING)ev(SSA_EV_CALL_PROCEEDING)
oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(0)fDest(0)
01:59:51: -cid2(26)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_CALL_SETTING)
01:59:51: ssaCallProc
01:59:51: ccGetDialpeerTag (callID=0x1A)
01:59:51: ssaIgnore cid(27), st(SSA_CS_CALL_SETTING),oldst(1), ev(21)
01:59:52: cc_api_call_digit_end (dstVdbPtr=0x0, dstCallId=0xFFFFFFFF,
srcCallId=
0x1B,
    digit=7,duration=135,xruleCallingTag=0,xruleCalledTag=0, dest_mask=0x0),
dig
it_tone_mode=0
01:59:52: cc_api_call_cut_progress(vdbPtr=0x81369F00, callID=0x1B,
prog_ind=0x8,
 sig_ind=0x2)
01:59:52: cc_api_call_connected(vdbPtr=0x81369F00, callID=0x1B), prog_ind =
2cc_
api_call_connected: setting callEntry->connected to TRUE
01:59:52: sess_appl: ev(22=CC_EV_CALL_PROGRESS), cid(27), disp(0)
01:59:52: cid(27)st(SSA_CS_CALL_SETTING)ev(SSA_EV_CALL_PROGRESS)
oldst(SSA_CS_CALL_SETTING)cfid(-1)csize(0)in(0)fDest(0)
01:59:52: -cid2(26)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_CALL_SETTING)
01:59:52: ssaCutProgress
01:59:52: ccGetDialpeerTag (callID=0x1A)
01:59:52: ccCallCutProgress (callID=0x1A, prog_ind=0x8, sig_ind=0x2)
01:59:52: ccConferenceCreate (confID=0x813133D4, callID1=0x1A, callID2=0x1B,
tag
=0x0)
01:59:52: cc_api_bridge_done (confID=0x2, srcIF=0x81246FC0, srcCallID=0x1A,
dstC
allID=0x1B, disposition=0, tag=0x0)
01:59:52: sess_appl: ev(8=CC_EV_CALL_CONNECTED), cid(27), disp(0)
01:59:52: cid(27)st(SSA_CS_CONFERENCING_PROGRESS)ev(SSA_EV_CALL_CONNECTED)
oldst(SSA_CS_CALL_SETTING)cfid(2)csize(0)in(0)fDest(0)
01:59:52: -cid2(26)st2(SSA_CS_CONFERENCING_PROGRESS)oldst2(SSA_CS_CALL_SETTI
NG)
01:59:52: ssaConnectPostConf
01:59:52: ccCallConnect (callID=0x1A), prog_ind = 2ccCallConnect: setting
callEn
try->connected to TRUE
01:59:52: ssaFlushPeerTagQueue cid(26) peer list: (empty)
01:59:52: cc_api_bridge_done (confID=0x2, srcIF=0x81369F00, srcCallID=0x1B,
dstC
allID=0x1A, disposition=0, tag=0x0)
01:59:52: cc_api_caps_ind (dstVdbPtr=0x81246FC0, dstCallId=0x1A,
srcCallId=0x1B,
     caps={codec=0x2EBFB, fax_rate=0xBF, vad=0x3, modem=0x2
           codec_bytes=0, signal_type=3})
01:59:52: cc_api_caps_ind (Playout: mode 0, initial 60,min 40, max 300)
01:59:52: cc_api_caps_ind (dstVdbPtr=0x81369F00, dstCallId=0x1B,
srcCallId=0x1A,
     caps={codec=0x4, fax_rate=0x2, vad=0x2, modem=0x0
           codec_bytes=20, signal_type=2})
01:59:52: cc_api_caps_ind (Playout: mode 0, initial 60,min 40, max 300)
01:59:52: cc_api_caps_ack (dstVdbPtr=0x81369F00, dstCallId=0x1B,
srcCallId=0x1A,
     caps={codec=0x4, fax_rate=0x2, vad=0x2, modem=0x0
           codec_bytes=20, signal_type=2, seq_num_start=4611})
01:59:52: cc_api_caps_ack (dstVdbPtr=0x81246FC0, dstCallId=0x1A,
srcCallId=0x1B,
     caps={codec=0x4, fax_rate=0x2, vad=0x2, modem=0x0
           codec_bytes=20, signal_type=2, seq_num_start=4611})
01:59:52: cc_api_voice_mode_event , callID=0x1B
01:59:52: Call Pointer =812CC19C
01:59:52: sess_appl: ev(29=CC_EV_CONF_CREATE_DONE), cid(26), disp(0)
01:59:52: cid(26)st(SSA_CS_CONFERENCING_PROGRESS)ev(SSA_EV_CONF_CREATE_DONE)
oldst(SSA_CS_CALL_SETTING)cfid(2)csize(0)in(1)fDest(1)
01:59:52: -cid2(27)st2(SSA_CS_CONFERENCING_PROGRESS)oldst2(SSA_CS_CONFERENCI
NG_P
ROGRESS)
01:59:52: ssaConfCreateDoneAlert
01:59:52: sess_appl: ev(50=CC_EV_VOICE_MODE_DONE), cid(27), disp(0)
01:59:52: cid(27)st(SSA_CS_CONFERENCED_ALERT)ev(SSA_EV_VOICE_MODE_DONE)
oldst(SSA_CS_CONFERENCING_PROGRESS)cfid(2)csize(0)in(0)fDest(0)
01:59:52: -cid2(26)st2(SSA_CS_CONFERENCED_ALERT)oldst2(SSA_CS_CONFERENCING_P
ROGR
ESS)
01:59:52: ssaIgnore cid(27), st(SSA_CS_CONFERENCED_ALERT),oldst(4), ev(50)
01:59:52: cc_process_notify_bridge_done (event=0x81306364)
02:00:12: cc_api_call_disconnected(vdbPtr=0x0, callID=0x1A, cause=0x10)
02:00:12: sess_appl: ev(11=CC_EV_CALL_DISCONNECTED), cid(26), disp(0)
02:00:12: cid(26)st(SSA_CS_CONFERENCED_ALERT)ev(SSA_EV_CALL_DISCONNECTED)
oldst(SSA_CS_CONFERENCING_PROGRESS)cfid(2)csize(0)in(1)fDest(1)
02:00:12: -cid2(27)st2(SSA_CS_CONFERENCED_ALERT)oldst2(SSA_CS_CONFERENCED_AL
ERT)
02:00:12: ssaDisconnectedAlert
02:00:12: ssaDisconnectedAlert: redirect_numbers(0)
02:00:12: ssaFlushPeerTagQueue cid(26) peer list: (empty)
02:00:12: ccConferenceDestroy (confID=0x2, tag=0x0)
02:00:12: cc_api_bridge_drop_done (confID=0x2, srcIF=0x81246FC0,
srcCallID=0x1A,
 dstCallID=0x1B, disposition=0 tag=0x0)
02:00:12: cc_api_bridge_drop_done (confID=0x2, srcIF=0x81369F00,
srcCallID=0x1B,
 dstCallID=0x1A, disposition=0 tag=0x0)
02:00:12: sess_appl: ev(30=CC_EV_CONF_DESTROY_DONE), cid(26), disp(0)
02:00:12: cid(26)st(SSA_CS_CONF_DESTROYING)ev(SSA_EV_CONF_DESTROY_DONE)
oldst(SSA_CS_CONFERENCED_ALERT)cfid(-1)csize(0)in(1)fDest(1)
02:00:12: -cid2(27)st2(SSA_CS_CONF_DESTROYING)oldst2(SSA_CS_CONFERENCED_ALER
T)
02:00:12: ssaConfDestroyDone
02:00:12: ccCallDisconnect (callID=0x1A, cause=0x10 tag=0x0)
02:00:12: cc_api_get_transfer_info: (callID=0x1A)
02:00:12: ccCallDisconnect (callID=0x1B, cause=0x10 tag=0x0)
02:00:12: cc_api_get_transfer_info: (callID=0x1B)
02:00:12: cc_decr_if_call_volume: not the VoIP or MMoIP
02:00:12: cc_api_call_disconnect_done(vdbPtr=0x81369F00, callID=0x1B,
disp=0, ta
g=0x0)
02:00:12: cc_delete_call_entry: not incoming entry
02:00:12: cc_delete_call_entry: entry's incoming FALSE. is_incoming is FALSE
02:00:12: cc_api_icpif: expect factor = 0
02:00:12: g113_calculate_impairment (delay=98,
      loss=0), Io=0 Iq=0 Idte=0 Idd=0 Ie=10 Itot=10
02:00:12: cc_decr_if_call_volume: the remote IP is 172.15.17.4
02:00:12: cc_decr_if_call_volume: hwidb is FastEthernet0/0
02:00:12: cc_decr_if_call_volume: reduce callnum of entry: 0, voip: 0,
mmoip: 0
02:00:12: cc_decr_if_call_volume: remove an entry
02:00:12: cc_api_call_disconnect_done(vdbPtr=0x0, callID=0x1A, disp=0,
tag=0x0)
02:00:12: cc_delete_call_entry: Decrement call volume counter
02:00:12: cc_delete_call_entry: current call volume: 0
02:00:12: cc_delete_call_entry: entry's incoming TRUE. is_incoming is FALSE
02:00:12: sess_appl: ev(12=CC_EV_CALL_DISCONNECT_DONE), cid(27), disp(0)
02:00:12: cid(27)st(SSA_CS_DISCONNECTING)ev(SSA_EV_CALL_DISCONNECT_DONE)
oldst(SSA_CS_CONFERENCED_ALERT)cfid(-1)csize(0)in(0)fDest(0)
02:00:12: -cid2(26)st2(SSA_CS_DISCONNECTING)oldst2(SSA_CS_CONF_DESTROYING)
02:00:12: ssaDisconnectDone
02:00:12: sess_appl: ev(12=CC_EV_CALL_DISCONNECT_DONE), cid(26), disp(0)
02:00:12: cid(26)st(SSA_CS_DISCONNECTING)ev(SSA_EV_CALL_DISCONNECT_DONE)
oldst(SSA_CS_CONF_DESTROYING)cfid(-1)csize(1)in(1)fDest(1)
02:00:12: ssaDisconnectDone
ovviamente non succede niente !!!!!
Ciao Cirņ !!!

 01:59:51: dest pattern 2.., called 274, digit_strip 1
quando inoltri la chiamata sul dial-peer pots il router toglie la cifra che
combacia con il dest pattern, nel tuo caso il 2 Quindi il router chiama il
74, non il 274.
Per evitare che tolga la cifra aggiungi nel dial-peer pots il comando "no
digit strip".
Ciao
Marco
P.S. il telefono non e' collegato direttamente alla fxo vero?

 P.S. il telefono non e' collegato direttamente alla fxo vero?
sulla fxo c'è l'uscita dal centralino...
dopo la tua preziosa modifica la situazione è questa
1) se dal 215 (ata) chiamo l'interno 274 la cosa funziona a metà
il telefono sqilla io (215 sull'ata) non sento la persona al 274, mentre
dall'altra parte
è tutto ok
2) se dal 274 chiamo il 215 il debug degli errori (voip ccapi error) è
questo
03:32:06: ssaCallSetupInd Peer not found: cid(114), calledNumber=
questa è la configurazione attualmente
voice-port 1/1/0
 cptone IT
!
voice-port 1/1/1
 cptone IT
!
no mgcp timer receive-rtcp
!
mgcp profile default
!
dial-peer voice 1 pots
destination-pattern 2..
no digit-strip
direct-inward-dial
port 1/1/0
!
dial-peer voice 2 voip
destination-pattern 215
session target ipv4:172.15.17.4
sembra che non venga recepito il telefono chiamato !!!!!
e quindi il vg200 non sa cosa fare !!!
NB
quello che comunque deve fare nel caso di una chiamata in ingresso
(qualunque sia il numero, chiamato o chiamante ) sul 215 q quindi sull'fxo
porta 1/1/0 e di ruotare la chiamata all'ata 186 con ip
172.15.17.4
ho cercato degli esempi in caso di identificativi mancanti ma non ho trovato
molto !!!
ciao Cirò !!!

Ti invio il debug completo !!!
03:44:35: cc_api_call_setup_ind (vdbPtr=0x81369F40,
callInfo={called=,called_oct
3=0x81,calling=,calling_oct3=0x0,calling_oct3a=0x0,calling_xlated=false,subs
crib
er_type_str=RegularLine,fdest=1,peer_tag=1, prog_ind=3,callingIE_present
0},call
ID=0x8106CBD4)
03:44:35: cc_api_call_setup_ind calling number is null, answer addr  dest
patter
n ... e164_ans_addr 0 e164_dest_pattern 0
03:44:35: cc_api_call_setup_ind type 2 , prot 0
03:44:35: cc_insert_call_entry: Increment call volume counter
03:44:35: cc_insert_call_entry: current call volume: 1
03:44:35: cc_insert_call_entry: entry's incoming TRUE. is_incoming is TRUE
03:44:35: cc_incr_if_call_volume: not the VoIP or MMoIP
03:44:35: cc_process_call_setup_ind (event=0x81300C74)
03:44:35: >>>>CCAPI handed cid 117 with tag 1 to app "DEFAULT"
03:44:35: sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(117), disp(0)
03:44:35: sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(117), disp(0)
03:44:35: ssaCallSetupInd
03:44:35: ccCallSetContext (callID=0x75, context=0x81513ECC)
03:44:35: ssaCallSetupInd cid(117), st(SSA_CS_MAPPING),oldst(0),
ev(24)ev->e.evC
allSetupInd.nCallInfo.finalDestFlag = 1
03:44:35: ssaCallSetupInd finalDest cllng(), clled()
03:44:35: ssaCallSetupInd cid(117), st(SSA_CS_CALL_SETTING),oldst(0),
ev(24)dpMa
tchPeersMoreArg result= -1
03:44:35: ccCallDisconnect (callID=0x75, cause=0x1 tag=0x0)
03:44:35: cc_api_get_transfer_info: (callID=0x75)
vg200#
03:45:05: cc_decr_if_call_volume: not the VoIP or MMoIP
03:45:05: cc_api_call_disconnect_done(vdbPtr=0x81369F40, callID=0x75,
disp=0, ta
g=0x0)
03:45:05: cc_delete_call_entry: Decrement call volume counter
03:45:05: cc_delete_call_entry: current call volume: 0
03:45:05: cc_delete_call_entry: entry's incoming TRUE. is_incoming is TRUE
03:45:05: sess_appl: ev(12=CC_EV_CALL_DISCONNECT_DONE), cid(117), disp(0)
03:45:05: cid(117)st(SSA_CS_DISCONNECTING)ev(SSA_EV_CALL_DISCONNECT_DONE)
oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(1)
03:45:05: ssaDisconnectDone
nel caso chiamata da un interno collegato sul centralino 274 verso l'ata
(215)