translation-rule

Problemy związane z Unified Communications
Wiadomość
Autor
Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

translation-rule

#1

#1 Post autor: Insomnia »

Próbuje skonfigurować translation-rule na bramie h323 z portami analogowymi.
Połączenia przychodzące z PSTN mają być translowane na plan numeracyjny wew.
Sieć PSTN symuluje centrala telefoniczną.

[telefon analogowy] nr 25------- [Centrala telefoniczna]----------nr 26[portFXO 1/1/0][Brama H.323][port FXS 1/0/0]-----------[telefon analogowy] nr 353

konfiguracja:

Kod: Zaznacz cały

voice translation-rule 1
 rule 10 /26/ /353/
!
!
voice translation-profile FROM-PSTN
 translate calling 1
!
voice-port 1/1/0
 translation-profile incoming FROM-PSTN
!
dial-peer voice 25 pots
 destination-pattern 25
 port 1/1/0
 forward-digits all
!
dial-peer voice 353 pots
 destination-pattern 353
 port 1/0/0

------------------------------

H323#test voice translation-rule 1 26
Matched with rule 10
Original number: 26     Translated number: 353
Original number type: none      Translated number type: none
Original number plan: none      Translated number plan: none
Linia od centrali telefonicznej do bramy h323 ma numer 26.
Na numer 25 z 353 dzwonie oczywiście bez poblemu.

Efekt jaki chcę uzyskać:

jeżeli dzwoni abonent z sieci PSTN ( z numeru 25) na numer 26, brama H323 ma przekierować to połaczenie na numer 353

Wiem że można to zrobić łatwiej PLARem, chodzi mi o zrozumienie translation-rule.
Czy wogóle konfiguracja taka ma sens? na cisco nie udało mi się znaleść przykładu takiej konfiguracji.

Seba
CCIE/CCDE Site Admin
CCIE/CCDE Site Admin
Posty: 6223
Rejestracja: 15 lip 2004, 20:35
Lokalizacja: Warsaw, PL

#2

#2 Post autor: Seba »

A probowales dawac translation na dial-peer? O tak:

Kod: Zaznacz cały

dial-peer voice 25 pots 
                 translation-profile incoming FROM-PSTN 
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe."
A. Einstein

Awatar użytkownika
cineklas
wannabe
wannabe
Posty: 169
Rejestracja: 10 lip 2006, 19:22
Lokalizacja: 3miasto

Re: translation-rule

#3

#3 Post autor: cineklas »

Insomnia pisze:

Kod: Zaznacz cały

voice translation-profile FROM-PSTN
 translate calling 1
!
voice-port 1/1/0
 translation-profile incoming FROM-PSTN
!
Translujesz nie to co powinieneś. W tym przypdku wykonujesz translacje na ANI a nie na DNIS. Zmien translate calling na called

Podeslij tez

Kod: Zaznacz cały

debug voice ccapi inout
, znacznie ulatwi diagnoze

Pozdr

Seba
CCIE/CCDE Site Admin
CCIE/CCDE Site Admin
Posty: 6223
Rejestracja: 15 lip 2004, 20:35
Lokalizacja: Warsaw, PL

#4

#4 Post autor: Seba »

A faktycznie powinno byc called raczej...
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe."
A. Einstein

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#5

#5 Post autor: Insomnia »

poprawiłem z calling na called

#debug voice ccapi inout

(dzwoni abonent 25 na numer 26)

Kod: Zaznacz cały

R6_H323#debug voice ccapi inout
voip ccAPI function enter/exit debugging is on
R6_H323#
*Mar  1 00:37:07.875: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructTDUsrContainer: usrContainer[0x82757734], magic[FACE0FFF]
*Mar  1 00:37:07.875: //-1/xxxxxxxxxxxx/CCAPI/ccTDUtilAddDataToUsrContainer: container=0x82757734, tagID=6, dataSize=16, instID=-1,modifier=1
*Mar  1 00:37:07.875: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructInstanceTDObject: tdObject[0x82BEE804], nxtElem[0x0], magic[0xFACE0FFF] tagID[6], dataLen[16], modif[1]
*Mar  1 00:37:07.875: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtAddObjectToContainer: Adding tdObject[0x82BEE804] instID[-1] into container[0x82757734]
*Mar  1 00:37:07.879: //-1/xxxxxxxxxxxx/CCAPI/cc_api_display_ie_subfields:
*Mar  1 00:37:07.879: cc_api_call_setup_ind:
*Mar  1 00:37:07.883:  cisco-username=
*Mar  1 00:37:07.883: ----- ccCallInfo IE subfields -----
*Mar  1 00:37:07.883:  cisco-ani=
*Mar  1 00:37:07.883:  cisco-anitype=0
*Mar  1 00:37:07.883:  cisco-aniplan=0
*Mar  1 00:37:07.883:  cisco-anipi=0
*Mar  1 00:37:07.883:  cisco-anisi=0
*Mar  1 00:37:07.883:  dest=
*Mar  1 00:37:07.883:  cisco-desttype=0
*Mar  1 00:37:07.883:  cisco-destplan=1
*Mar  1 00:37:07.883:  cisco-rdn=
*Mar  1 00:37:07.887:  cisco-rdntype=0
*Mar  1 00:37:07.887:  cisco-rdnplan=0
*Mar  1 00:37:07.887:  cisco-rdnpi=0
*Mar  1 00:37:07.887:  cisco-rdnsi=0
*Mar  1 00:37:07.887:  cisco-redirectreason=0

*Mar  1 00:37:07.887: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: (vdbPtr=0x82F30B8C, callInfo={called=,called_oct3=0x81,calling=,calling_oct3=0x0,calling_oct3a=0x0,calling_xlated=false,subscriber_type_str=RegularLine,fdest=0,peer_tag=25, prog_ind=3,callingIE_present 0, src_route_label=, tgt_route_label= clid_transparent=0},callID=0x82752FD4)
*Mar  1 00:37:07.887: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind:
*Mar  1 00:37:07.887: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: calling number is null, answer addr  dest pattern 25 e164_ans_addr 0 e164_dest_pattern 1
*Mar  1 00:37:07.891: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: valid dest pattern, copying 25 to calling number
*Mar  1 00:37:07.891: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: type 2 , prot 0
*Mar  1 00:37:07.891: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:37:07.891: ccCheckClipClir: calling number is: "25", calling oct3a is: 0x0
*Mar  1 00:37:07.891: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:37:07.891: Calling Party number is User Provided
*Mar  1 00:37:07.891: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:37:07.895: Leaving ccCheckClipClir
  calling number is: "25"
  calling oct3 is:  0x0
  calling oct3a is: 0x0
*Mar  1 00:37:07.895: //8/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: Increment call volume: 0
*Mar  1 00:37:07.895: //8/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: current call volume: 1
*Mar  1 00:37:07.895: //8/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: entry's incoming TRUE.
*Mar  1 00:37:07.895: //8/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: is_incoming is TRUE
*Mar  1 00:37:07.899: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructHashProfileTab: profileTable[0x827594E8], numBuckets[11], numEntries[0]
*Mar  1 00:37:07.899: //8/B7B754AA8011/CCAPI/ccTDPvtProfileTableBuildManager: Invoking necessary profileTable updaters...
*Mar  1 00:37:07.899: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtUpdateProfileTabFromContainer: Updating profileTable[0x827594E8] with objects in container[0x82757734]
*Mar  1 00:37:07.899: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtUpdateProfileTabFromContainer: obtained key[5] for the tag[6]
*Mar  1 00:37:07.899: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtAddObjectToProfileBucket: profileTable[0x827594E8], tdObject[0x82BEE804]
*Mar  1 00:37:07.899: //8/B7B754AA8011/CCAPI/ccTDPvtProfileTableBuildManager:
*Mar  1 00:37:07.903: ccTDUtilDumpAllElemInProfileTab: profileTable[0x827594E8], numBuckets[11], numEntries[1]
*Mar  1 00:37:07.903: Bucket { 5 } ------>0x82BEE804[0x0,t-6,l-16,d-0x82BEE824,m-1,u-2227,g-FACE0FFF]
*Mar  1 00:37:07.903:
*Mar  1 00:37:07.903: //-1/xxxxxxxxxxxx/CCAPI/ccTDDestructTDUsrContainer: Container[0x82757734]
*Mar  1 00:37:07.907: //-1/xxxxxxxxxxxx/CCAPI/cc_incr_if_call_volume: not the VoIP or MMoIP
*Mar  1 00:37:07.907: //8/B7B754AA8011/CCAPI/cc_process_call_setup_ind: (event=0x82EF84D8)
*Mar  1 00:37:07.907: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: matching parameters - called# [], calling# [25], consultid []
*Mar  1 00:37:07.907: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search: Searching for node with called# [], calling# [25], consultid []
*Mar  1 00:37:07.911: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: No matching node
*Mar  1 00:37:07.911: //8/B7B754AA8011/CCAPI/cc_process_call_setup_ind: >>>>CCAPI handed cid 8 with tag 25 to app "DEFAULT"
*Mar  1 00:37:07.911: //8/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(8), disp(0)
*Mar  1 00:37:07.911: //8/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(8), disp(0)
*Mar  1 00:37:07.915: //8/xxxxxxxxxxxx/SSAPP:-1:-1/ssaCallSetupInd:
*Mar  1 00:37:07.915: //8/B7B754AA8011/CCAPI/ccCallSetContext: (callID=0x8, context=0x831AE2D4)
*Mar  1 00:37:07.915: //8/B7B754AA8011/SSAPP:25:-1/ssaCallSetupInd: cid(8), st(SSA_CS_MAPPING),oldst(0), ev(24)ev->e.evCallSetupInd.nCallInfo.finalDestFlag = 0
*Mar  1 00:37:07.915: //8/B7B754AA8011/CCAPI/ccCallSetupAck: (callID=0x8)
*Mar  1 00:37:07.915: //8/B7B754AA8011/CCAPI/cc_api_set_transfer_info: (transfer= 0, callID=0x8)
*Mar  1 00:37:07.919: //8/B7B754AA8011/CCAPI/cc_api_set_transfer_info: call transfer reset)
*Mar  1 00:37:07.919: //8/B7B754AA8011/CCAPI/ccCallReportDigits: (callID=0x8, enable=0x1)
*Mar  1 00:37:07.919: //8/B7B754AA8011/CCAPI/cc_api_call_report_digits_done: (vdbPtr=0x82F30B8C, callID=0x8, disp=0)
*Mar  1 00:37:07.919: //8/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(56=CC_EV_CALL_REPORT_DIGITS_DONE), cid(8), disp(0)
*Mar  1 00:37:07.923: //8/B7B754AA8011/SSAPP:25:-1/ssaTraceSct: cid(8)st(SSA_CS_MAPPING)ev(SSA_EV_CALL_REPORT_DIGITS_DONE)
oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(0)
*Mar  1 00:37:07.923: //8/B7B754AA8011/SSAPP:25:-1/ssaDebugPeers: ssaReportDigitsDone cid(8) peer list: (empty)
*Mar  1 00:37:07.923: //8/B7B754AA8011/SSAPP:25:-1/ssaReportDigitsDone: callid=8 Enable succeeded
*Mar  1 00:37:07.923: //8/B7B754AA8011/CCAPI/ccGenerateToneInfo: (callID=0x8 tone=8)
*Mar  1 00:37:17.920: //8/B7B754AA8011/CCAPI/cc_handle_inter_digit_timer: Generate inter-digit timeout CC_EV_CALL_DIGIT_END event
*Mar  1 00:37:17.920: //8/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(9=CC_EV_CALL_DIGIT_END), cid(8), disp(0)
*Mar  1 00:37:17.920: //8/B7B754AA8011/SSAPP:25:-1/ssaTraceSct: cid(8)st(SSA_CS_MAPPING)ev(SSA_EV_CALL_DIGIT)
oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(0)
*Mar  1 00:37:17.920: //8/B7B754AA8011/SSAPP:25:-1/ssaDigit:
*Mar  1 00:37:17.920: //8/xxxxxxxxxxxx/CCAPI/ccTDUtilGetDataByValue: CallID[8], tagID[24], instID[-1]
*Mar  1 00:37:17.924: //8/xxxxxxxxxxxx/CCAPI/ccTDUtilGetDataByValue: No tdObject found in profileTable for tagID[24] of callID[8]
*Mar  1 00:37:17.924: //-1/xxxxxxxxxxxx/CCAPI/ccTDUtilSetDataInstance: Setting data for callID[8], tagID[24], instID[-1], data[0x82F0C814], dataSize[4]
*Mar  1 00:37:17.924: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructInstanceTDObject: tdObject[0x8275988C], nxtElem[0x0], magic[0xFACE0FFF] tagID[24], dataLen[4], modif[4]
*Mar  1 00:37:17.924: //8/B7B754AA8011/CCAPI/ccTDPvtProfileTableBuildManager: Invoking necessary profileTable updaters...
*Mar  1 00:37:17.928: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtAddObjectToProfileBucket: profileTable[0x827594E8], tdObject[0x8275988C]
*Mar  1 00:37:17.928: //8/B7B754AA8011/CCAPI/ccTDPvtProfileTableBuildManager:
*Mar  1 00:37:17.928: ccTDUtilDumpAllElemInProfileTab: profileTable[0x827594E8], numBuckets[11], numEntries[2]
*Mar  1 00:37:17.928: Bucket { 0 } ------>0x8275988C[0x0,t-24,l-4,d-0x827598AC,m-4,u-2237,g-FACE0FFF]
*Mar  1 00:37:17.928:
*Mar  1 00:37:17.928: Bucket { 5 } ------>0x82BEE804[0x0,t-6,l-16,d-0x82BEE824,m-8,u-2227,g-FACE0FFF]
*Mar  1 00:37:17.932:
testowałem też z

Kod: Zaznacz cały

voice translation-rule 1 
 rule 10 /25/ /353/ 
na wszelki wypadek przetestowałem konfiguracje z PLARem.

Kod: Zaznacz cały

(config)#voice-port 1/1/0
(config-voiceport)#connection plar 353
abonent 25 dodzwania sie na 353

#debug voice ccapi inout

Kod: Zaznacz cały

R6_H323#debug voice ccapi inout
voip ccAPI function enter/exit debugging is on
R6_H323#
*Mar  1 00:58:29.224: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructTDUsrContainer: usrContainer[0x82757778], magic[FACE0FFF]
*Mar  1 00:58:29.228: //-1/xxxxxxxxxxxx/CCAPI/ccTDUtilAddDataToUsrContainer: container=0x82757778, tagID=6, dataSize=16, instID=-1,modifier=1
*Mar  1 00:58:29.228: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructInstanceTDObject: tdObject[0x82759364], nxtElem[0x0], magic[0xFACE0FFF] tagID[6], dataLen[16], modif[1]
*Mar  1 00:58:29.228: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtAddObjectToContainer: Adding tdObject[0x82759364] instID[-1] into container[0x82757778]
*Mar  1 00:58:29.232: //-1/xxxxxxxxxxxx/CCAPI/cc_api_display_ie_subfields:
*Mar  1 00:58:29.232: cc_api_call_setup_ind:
*Mar  1 00:58:29.236:  cisco-username=
*Mar  1 00:58:29.236: ----- ccCallInfo IE subfields -----
*Mar  1 00:58:29.236:  cisco-ani=
*Mar  1 00:58:29.236:  cisco-anitype=0
*Mar  1 00:58:29.236:  cisco-aniplan=0
*Mar  1 00:58:29.236:  cisco-anipi=0
*Mar  1 00:58:29.236:  cisco-anisi=0
*Mar  1 00:58:29.236:  dest=353
*Mar  1 00:58:29.236:  cisco-desttype=0
*Mar  1 00:58:29.236:  cisco-destplan=1
*Mar  1 00:58:29.236:  cisco-rdn=
*Mar  1 00:58:29.240:  cisco-rdntype=0
*Mar  1 00:58:29.240:  cisco-rdnplan=0
*Mar  1 00:58:29.240:  cisco-rdnpi=0
*Mar  1 00:58:29.240:  cisco-rdnsi=0
*Mar  1 00:58:29.240:  cisco-redirectreason=0

*Mar  1 00:58:29.240: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: (vdbPtr=0x82F30B8C, callInfo={called=353,called_oct3=0x81,calling=,calling_oct3=0x0,calling_oct3a=0x0,calling_xlated=false,subscriber_type_str=RegularLine,fdest=1,peer_tag=25, prog_ind=3,callingIE_present 0, src_route_label=, tgt_route_label= clid_transparent=0},callID=0x82752FD4)
*Mar  1 00:58:29.240: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind:
*Mar  1 00:58:29.240: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: calling number is null, answer addr  dest pattern 25 e164_ans_addr 0 e164_dest_pattern 1
*Mar  1 00:58:29.244: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: valid dest pattern, copying 25 to calling number
*Mar  1 00:58:29.244: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: type 2 , prot 0
*Mar  1 00:58:29.244: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.244: ccCheckClipClir: calling number is: "25", calling oct3a is: 0x0
*Mar  1 00:58:29.244: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.244: Calling Party number is User Provided
*Mar  1 00:58:29.244: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.248: Leaving ccCheckClipClir
  calling number is: "25"
  calling oct3 is:  0x0
  calling oct3a is: 0x0
*Mar  1 00:58:29.248: //14/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: Increment call volume: 0
*Mar  1 00:58:29.248: //14/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: current call volume: 1
*Mar  1 00:58:29.248: //14/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: entry's incoming TRUE.
*Mar  1 00:58:29.248: //14/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry: is_incoming is TRUE
*Mar  1 00:58:29.248: //-1/xxxxxxxxxxxx/CCAPI/ccTDConstructHashProfileTab: profileTable[0x8318C114], numBuckets[11], numEntries[0]
*Mar  1 00:58:29.252: //14/B37635BD801D/CCAPI/ccTDPvtProfileTableBuildManager: Invoking necessary profileTable updaters...
*Mar  1 00:58:29.252: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtUpdateProfileTabFromContainer: Updating profileTable[0x8318C114] with objects in container[0x82757778]
*Mar  1 00:58:29.252: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtUpdateProfileTabFromContainer: obtained key[5] for the tag[6]
*Mar  1 00:58:29.252: //-1/xxxxxxxxxxxx/CCAPI/ccTDPvtAddObjectToProfileBucket: profileTable[0x8318C114], tdObject[0x82759364]
*Mar  1 00:58:29.252: //14/B37635BD801D/CCAPI/ccTDPvtProfileTableBuildManager:
*Mar  1 00:58:29.256: ccTDUtilDumpAllElemInProfileTab: profileTable[0x8318C114], numBuckets[11], numEntries[1]
*Mar  1 00:58:29.256: Bucket { 5 } ------>0x82759364[0x0,t-6,l-16,d-0x82759384,m-1,u-3509,g-FACE0FFF]
*Mar  1 00:58:29.256:
*Mar  1 00:58:29.256: //-1/xxxxxxxxxxxx/CCAPI/ccTDDestructTDUsrContainer: Container[0x82757778]
*Mar  1 00:58:29.260: //-1/xxxxxxxxxxxx/CCAPI/cc_incr_if_call_volume: not the VoIP or MMoIP
*Mar  1 00:58:29.260: //14/B37635BD801D/CCAPI/cc_process_call_setup_ind: (event=0x82EF8C60)
*Mar  1 00:58:29.260: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: matching parameters - called# [353], calling# [25], consultid []
*Mar  1 00:58:29.264: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search: Searching for node with called# [353], calling# [25], consultid []
*Mar  1 00:58:29.264: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: No matching node
*Mar  1 00:58:29.264: //14/B37635BD801D/CCAPI/cc_process_call_setup_ind: >>>>CCAPI handed cid 14 with tag 25 to app "DEFAULT"
*Mar  1 00:58:29.264: //14/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(14), disp(0)
*Mar  1 00:58:29.268: //14/xxxxxxxxxxxx/SSAPP:-1:-1/sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(14), disp(0)
*Mar  1 00:58:29.268: //14/xxxxxxxxxxxx/SSAPP:-1:-1/ssaCallSetupInd:
*Mar  1 00:58:29.268: //14/B37635BD801D/CCAPI/ccCallSetContext: (callID=0xE, context=0x831AE2D4)
*Mar  1 00:58:29.268: //14/B37635BD801D/SSAPP:25:-1/ssaCallSetupInd: cid(14), st(SSA_CS_MAPPING),oldst(0), ev(24)ev->e.evCallSetupInd.nCallInfo.finalDestFlag = 1
*Mar  1 00:58:29.268: //14/B37635BD801D/SSAPP:25:-1/ssaCallSetupInd: src route label=, tgt route label= tg_label_flag 0x0
*Mar  1 00:58:29.272: //14/B37635BD801D/SSAPP:25:-1/ssaCallSetupInd: finalDest cllng(25), clled(353) tgt_route_label()tg_label_flag 0x0
*Mar  1 00:58:29.272: //14/B37635BD801D/SSAPP:25:-1/ssaCallSetupInd: cid(14), st(SSA_CS_CALL_SETTING),oldst(0), ev(24)dpMatchPeersMoreArg result= 0
*Mar  1 00:58:29.272: //14/B37635BD801D/SSAPP:25:-1/ssaDebugPeers: ssaSetupPeer cid(14) peer list: tag(353) called number (353)
*Mar  1 00:58:29.272: //14/B37635BD801D/SSAPP:25:-1/ssaSetupPeer: dialpeer tags in rotary= 353
*Mar  1 00:58:29.276: //14/B37635BD801D/SSAPP:25:-1/ssaSetupPeer: cid(14), destPat(353), matched(3), prefix(), peer(82753F44), peer->encapType (1)
*Mar  1 00:58:29.276: //14/B37635BD801D/CCAPI/ccCallProceeding: (callID=0xE, prog_ind=0x0)
*Mar  1 00:58:29.276: //14/B37635BD801D/CCAPI/ccCallSetupRequest: (Inbound call = 0xE, outbound peer =353, dest=,
            params=0x82F0C790 mode=0, *callID=0x82F0CD60, prog_ind = 3callingIE_present 1)
*Mar  1 00:58:29.280: //14/B37635BD801D/CCAPI/ccCallSetupRequest:
*Mar  1 00:58:29.280: ccCallSetupRequest numbering_type 0x81
*Mar  1 00:58:29.280: //14/B37635BD801D/CCAPI/ccCallSetupRequest:
*Mar  1 00:58:29.280: ccCallSetupRequest: calling number is:25

*Mar  1 00:58:29.280: //14/B37635BD801D/CCAPI/ccCallSetupRequest: calling oct3a is:0x0

*Mar  1 00:58:29.280: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.280: ccCheckClipClir: calling number is: "25", calling oct3a is: 0x0
*Mar  1 00:58:29.280: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.284: Calling Party number is User Provided
*Mar  1 00:58:29.284: //-1/xxxxxxxxxxxx/CCAPI/ccCheckClipClir:
*Mar  1 00:58:29.284: Leaving ccCheckClipClir
  calling number is: "25"
  calling oct3 is:  0x0
  calling oct3a is: 0x0
*Mar  1 00:58:29.284: //14/B37635BD801D/CCAPI/ccCallSetupRequest: after ccCheckClipClir - calling oct3a is:0x0
dziś podebne się przez BRI z DDI do operatora i przetestuje jeszcze w realu.

Awatar użytkownika
cineklas
wannabe
wannabe
Posty: 169
Rejestracja: 10 lip 2006, 19:22
Lokalizacja: 3miasto

#6

#6 Post autor: cineklas »

Wyglada na to ze nie otrzymujesz called number w setupie
Jesli chcesz sie pobawic z transation mozesz zrobic:

Kod: Zaznacz cały

voice-port 1/1/0
connection plar 26
Wtedy mozesz zrobic jeszcze:

Kod: Zaznacz cały

voice translation-rule 1

    !--- Zamienia wszystko zaczynajace sie na 26 -> 323 

     rule 1 /^26/ /323/
i generalnie powinno chodzic

Oczywiscie musisz miec:

Kod: Zaznacz cały

voice translation-profile x

    !--- voice translation profile transluje called numer

    translate called 1
Co do tego debuga to wynika jasno:

Kod: Zaznacz cały

callInfo={called=,called_oct3=0x81,calling=,calling_oct3=0x0,calling_oct3a=0x0,calling_xlated=false,subscriber_type_str=RegularLine,fdest=0,peer_tag=25,
Mozesz rowniez wyczyscic wszystko z voice-portu, usunac zwiazane z danym voice-port dial-peer i zapuscic debuga. Jesli sie nie myle to powinno rowniez byc jak wyzej (DNIS blank). Zapewne centrala dziala jak domyslny dial-peer potsowy w rtrkach, po zmatchowaniu outbound call wycina DNIS. Co do BRI to bedzie Ci chodzila translacja na 100%, setupy Q.931 sa znacznie przyjaźniejsze ;)

Pozdr

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#7

#7 Post autor: Insomnia »

Router podpięty przez BRI do sieci PSTN.

Topoloagia wygląda tak:

[Telefon analogowy] nr 0126197777-----------[PSTN]----------[BRI-VIC] nr 0126138540[Brama H323][FXS] ----------- telefon analogowy nr 849

konfiguracja routera:

Kod: Zaznacz cały

voice translation-rule 1
 rule 10 /126138540/ /849/
!
!
voice translation-profile FROM-PSTN
 translate called 1
!
voice-port 0/1/0
 translation-profile incoming FROM-PSTN
 compand-type a-law
!
dial-peer voice 849 pots
 destination-pattern 849
 port 0/0/0
##debug voice ccapi inout

Kod: Zaznacz cały

#
003820: Feb 23 08:16:55.095: //-1/0E9BB8EB8010/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=126197777
   cisco-anitype=2
   cisco-aniplan=1
   cisco-anipi=0
   cisco-anisi=1
   dest=849
   cisco-desttype=2
   cisco-destplan=1
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=-1
   cisco-rdnplan=-1
   cisco-rdnpi=-1
   cisco-rdnsi=-1
   cisco-redirectreason=-1
003821: Feb 23 08:16:55.099: //-1/0E9BB8EB8010/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x65913FD0, Call Info(
   Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed),
   Called Number=849(TON=National, NPI=ISDN),
   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE,
   Incoming Dial-peer=126197777, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=TRUE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1
003822: Feb 23 08:16:55.099: //-1/0E9BB8EB8010/CCAPI/ccCheckClipClir:
   In: Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed)
003823: Feb 23 08:16:55.099: //-1/0E9BB8EB8010/CCAPI/ccCheckClipClir:
   Out: Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed)
003824: Feb 23 08:16:55.099: //60/0E9BB8EB8010/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed),
   Called Number=849(TON=National, NPI=ISDN))
003825: Feb 23 08:16:55.103: //60/0E9BB8EB8010/CCAPI/cc_process_call_setup_ind:
   Event=0x658C0CD8
003826: Feb 23 08:16:55.103: //60/0E9BB8EB8010/CCAPI/ccCallSetContext:
   Context=0x668A430C
003827: Feb 23 08:16:55.103: //60/0E9BB8EB8010/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 60 with tag 126197777 to app "_ManagedAppProcess_Default"
003828: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/ccCallSetupAck:
   Call Id=60
003829: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/cc_api_set_transfer_info:
   Transfer Number=, Transfer Reason=0x0
003830: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/ccGenerateToneInfo:
   Stop Tone On Digit=TRUE, Tone=Dial Tone,
   Tone Direction=Network, Params=0x0, Call Id=60
003831: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/ccSetDigitTimeouts:
   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)
003832: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/ccSetDigitTimeouts:
   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
003833: Feb 23 08:16:55.107: //60/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x3C, digit_event=0x1, enable=TRUE, consume=FALSE)
003834: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=60
003835: Feb 23 08:16:55.107: //60/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x65913FD0, callID=0x3C, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
003836: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/cc_api_call_report_digits_done:

#Enabled=TRUE, Disposition=0x0, Interface=0x65913FD0, Call Id=60
003837: Feb 23 08:16:55.107: //60/0E9BB8EB8010/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
#
telefon 849 nie dzwoni :(

Awatar użytkownika
cineklas
wannabe
wannabe
Posty: 169
Rejestracja: 10 lip 2006, 19:22
Lokalizacja: 3miasto

#8

#8 Post autor: cineklas »

Kod: Zaznacz cały

 cptone PL
Wpisz jw. do voice-portu FXS

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#9

#9 Post autor: Insomnia »

zmieniłem, zrestartowałem port 0/0/0

debug

Kod: Zaznacz cały

#
004063: Feb 23 10:05:05.429: //-1/2B25785F801B/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=126197777
   cisco-anitype=2
   cisco-aniplan=1
   cisco-anipi=0
   cisco-anisi=1
   dest=849
   cisco-desttype=2
   cisco-destplan=1
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=-1
   cisco-rdnplan=-1
   cisco-rdnpi=-1
   cisco-rdnsi=-1
   cisco-redirectreason=-1
004064: Feb 23 10:05:05.429: //-1/2B25785F801B/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x65913FD0, Call Info(
   Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed),
   Called Number=849(TON=National, NPI=ISDN),
   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE,
   Incoming Dial-peer=126197777, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=TRUE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1
004065: Feb 23 10:05:05.429: //-1/2B25785F801B/CCAPI/ccCheckClipClir:
   In: Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed)
004066: Feb 23 10:05:05.429: //-1/2B25785F801B/CCAPI/ccCheckClipClir:
   Out: Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed)
004067: Feb 23 10:05:05.429: //74/2B25785F801B/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=126197777(TON=National, NPI=ISDN, Screening=User, Passed, Presentation=Allowed),
   Called Number=849(TON=National, NPI=ISDN))
004068: Feb 23 10:05:05.429: //74/2B25785F801B/CCAPI/cc_process_call_setup_ind:
   Event=0x658BE528
004069: Feb 23 10:05:05.429: //74/2B25785F801B/CCAPI/ccCallSetContext:
   Context=0x6689F98C
004070: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 74 with tag 126197777 to app "_ManagedAppProcess_Default"
004071: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/ccCallSetupAck:
   Call Id=74
004072: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/cc_api_set_transfer_info:
   Transfer Number=, Transfer Reason=0x0
004073: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/ccGenerateToneInfo:
   Stop Tone On Digit=TRUE, Tone=Dial Tone,
   Tone Direction=Network, Params=0x0, Call Id=74
004074: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/ccSetDigitTimeouts:
   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)
004075: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/ccSetDigitTimeouts:
   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
004076: Feb 23 10:05:05.433: //74/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x4A, digit_event=0x1, enable=TRUE, consume=FALSE)
004077: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=74
004078: Feb 23 10:05:05.433: //74/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x65913FD0, callID=0x4A, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
004079: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/cc_api_call_report_digits_done:

#Enabled=TRUE, Disposition=0x0, Interface=0x65913FD0, Call Id=74
004080: Feb 23 10:05:05.433: //74/2B25785F801B/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
#
nie dzwoni :(

Awatar użytkownika
cineklas
wannabe
wannabe
Posty: 169
Rejestracja: 10 lip 2006, 19:22
Lokalizacja: 3miasto

#10

#10 Post autor: cineklas »

podeslij konfiguracje z:

interface BRIx/x ---- > twoj styk z PSTN
voice-port x/x/x ---- > twoj styk z PSTN
dial-peer voice x pots ----> ktorym wychodzisz na miasto i wchodzisz do GW
dial-peer voice x pots ----> konfiguracji tel. analogowego

Problem nie lezy w routowaniu polaczen tylko pewnie gdzies czegos nie wklepałes

Pozdr

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#11

#11 Post autor: Insomnia »

Kod: Zaznacz cały

voice translation-rule 1
 rule 10 /^126138540$/ /849/
!
!
voice translation-profile FROM-PSTN
 translate called 1
!
interface BRI0/1/0
 no ip address
 no logging event link-status
 isdn switch-type basic-net3
 isdn tei-negotiation preserve
 isdn point-to-point-setup
 isdn incoming-voice voice
 isdn static-tei 0
!
voice-port 0/0/0
 cptone PL
!
voice-port 0/0/1
!
voice-port 0/1/0
 translation-profile incoming FROM-PSTN
 compand-type a-law
!
voice-port 0/1/1
!
!
!
!
!
dial-peer voice 849 pots
 destination-pattern 849
 port 0/0/0
!
dial-peer voice 126197777 pots
 destination-pattern 0126197777
 port 0/1/0
 forward-digits all
!

Awatar użytkownika
cineklas
wannabe
wannabe
Posty: 169
Rejestracja: 10 lip 2006, 19:22
Lokalizacja: 3miasto

#12

#12 Post autor: cineklas »

Insomnia pisze:

Kod: Zaznacz cały

voice translation-rule 1
 rule 10 /^126138540$/ /849/
!
!
voice translation-profile FROM-PSTN
 translate called 1
!
interface BRI0/1/0
 no ip address
 no logging event link-status
 isdn switch-type basic-net3
 isdn tei-negotiation preserve
 isdn point-to-point-setup
 isdn incoming-voice voice
 isdn static-tei 0
!
voice-port 0/0/0
 cptone PL
!
voice-port 0/0/1
!
voice-port 0/1/0
 translation-profile incoming FROM-PSTN
 compand-type a-law
!
voice-port 0/1/1
!
!
!
!
!
dial-peer voice 849 pots
 destination-pattern 849
 port 0/0/0
!
dial-peer voice 126197777 pots
 destination-pattern 0126197777
 port 0/1/0
 forward-digits all
!

W tej konfiguracji jest pare niedociagniec. Masz jakis problem z Q.921 ze ustawiasz statyczne TEI?

Ponizej zmodyfikowana Twoja konfiguracja tak jak powinno to wygladac:

Kod: Zaznacz cały

!
translation-rule 1
 Rule 1 ^126138540 849
!
!
interface BRI0/1/0
 description --- styk z PSTN ---
 no ip address
 no logging event link-status
 isdn switch-type basic-net3
 isdn point-to-point-setup
 isdn incoming-voice voice
 isdn map address .* plan isdn type unknown
 isdn send-alerting
!
!
voice-port 0/1/0 
 translate called 1
 echo-cancel coverage 32
 echo-cancel suppressor 5
 compand-type a-law
 cptone PL
 timeouts interdigit 5
 music-threshold -70
!
!
dial-peer voice 1 pots
 description --- wyjscie na miasto ---
 destination-pattern 0T
 direct-inward-dial
 port 0/1/0 
 prefix 0
!
!
!
dial-peer voice 849 pots
 description --- port FXS ---
 destination-pattern 849
 port 0/0/0
!
Przed chwila testowalem ja u mnie w labie i dziala (zmienilem tylko E.164; DN analoga i porty). Jak u Ciebie nie zarobi szukaj problemu w SW (bug?)

Pozdr

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#13

#13 Post autor: Insomnia »

bede dalej walczył - dzięki

Insomnia
wannabe
wannabe
Posty: 717
Rejestracja: 22 wrz 2004, 12:43

#14

#14 Post autor: Insomnia »

udało sie urucomić na bri konfiguracja taka jaką podał cineklas z małymi modyfikacjami. kluczowe jest wpisanie "direct-inward-dial" do dial-peer'a.

Kod: Zaznacz cały

! 
voice translation-rule 100
 rule 1 /^126138540/ /849/
!
voice translation-profile FROM-PSTN
 translate called 100
!  
interface BRI0/1/0 
 no ip address
 no logging event link-status
 isdn switch-type basic-net3
 isdn point-to-point-setup
 isdn incoming-voice voice
 isdn static-tei 0
! 
voice-port 0/1/0 
 translation-profile incoming FROM-PSTN
 no vad
 compand-type a-law
 cptone PL
! 
dial-peer voice 100 pots
 destination-pattern ..........
 direct-inward-dial
 port 0/1/0
 forward-digits all
! 
dial-peer voice 849 pots
 destination-pattern 849
 port 0/0/0
!
niestety nie udał się uruchomić translacji połaczenia przychodzącego z centralki tetefonicznej. dokonfigurowanie PLARa kończy się wdzwonieniem na linie centrala<--->router i sygnał zajętości w słuchawce.

ODPOWIEDZ