chazzmanbm
ISP
Hi Folks,
It's been quite a while since I've worked with Cisco voice gateways and dial peers and I need some help with a project I am working on. Unfortunately, I tend to get confused when matching dial peers so I am asking for some help.
What I am trying to do is get a non-cisco pbx to work with a non-cisco messaging system using my voice gateway AS5300 in the middle (SIP connections to both). The VG is already handling calls from a non-Cisco one (PBX1) and I want to use the same VG and messaging platform for a second PBX (PBX2).
PBX2 has been configured to send calls destined for 5552226245 to the voice gateway where I will attempt to hand off the call to the messaging platform.
Debugs show that the call arrives at the voice gateway but my dialpeer isn't getting matched. I did some tracing (debug dialpeer and debug voice ccapi inout) and noticed the following.
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: vmproduction expanded string: vmproduction
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: 5555008888 expanded string: 5555008888
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: 5555008888 expanded string: 5555008888
Jul 31 13:03:30 ADT: MatchNextPeer: Peer 90 matched <---------not the dialpeer I want to match
Jul 31 13:03:30 ADT: cc_api_call_setup_ind:
Jul 31 13:03:30 ADT: cisco-username=5555008888
Jul 31 13:03:30 ADT: ----- ccCallInfo IE subfields -----
Jul 31 13:03:30 ADT: cisco-ani=5555008888
Jul 31 13:03:30 ADT: cisco-anitype=0
Jul 31 13:03:30 ADT: cisco-aniplan=0
Jul 31 13:03:30 ADT: cisco-anipi=0
Jul 31 13:03:30 ADT: cisco-anisi=0
Jul 31 13:03:30 ADT: dest=vmproduction
Jul 31 13:03:30 ADT: cisco-desttype=0
Jul 31 13:03:30 ADT: cisco-destplan=0
Jul 31 13:03:30 ADT: cisco-rdn=
Jul 31 13:03:30 ADT: cisco-rdntype=0
Jul 31 13:03:30 ADT: cisco-rdnplan=0
Jul 31 13:03:30 ADT: cisco-rdnpi=0
Jul 31 13:03:30 ADT: cisco-rdnsi=0
Jul 31 13:03:30 ADT: cisco-redirectreason=-1
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: (vdbPtr=0x63FE443C, callInfo={called=vmproduction,called_oct3=0x80,calling=5555008888,calling_oct3=0x0,calling_oct3a=0x80,calling_xlated=false,subscriber_type_str=Unknown,fdest=1,peer_tag=90, prog_ind=0,callingIE_present 1, src_route_label=, tgt_route_label= clid_transparent=0},callID=0x676C3048)
Jul 31 13:03:30 ADT: //504851/85B179B29993/CCAPI/cc_process_call_setup_ind: (event=0x6437E7E8)
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: matching parameters - called# [vmproduction], calling# [5555008888], consultid []
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search: Searching for node with called# [vmproduction], calling# [5555008888], consultid []
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: No matching node
Jul 31 13:03:30 ADT: //504851/85B179B29993/CCAPI/cc_process_call_setup_ind: >>>>CCAPI handed cid 504851 with tag 90 to app "DEFAULT"
These are the dial peers I created for this.
dial-peer voice 6221 voip
destination-pattern 5552226245 <-------- this is the number for the messaging platform for PBX2
voice-class codec 1
session protocol sipv2
session target ipv4:<<messaging system address>>
dtmf-relay rtp-nte
!
dial-peer voice 6222 voip
destination-pattern 555222.... <--------- messaging subscriber number range
voice-class codec 1
session protocol sipv2
session target ipv4:<<PBX2 address>>
dtmf-relay rtp-nte
This is the dialpeer that actually gets matched.
dial-peer voice 90 voip
translation-profile outgoing Outgoing
destination-pattern 1%[2-9][0-9][0-9].......
voice-class codec 1
session protocol sipv2
session target ipv4:<<PBX1 IP address>>
dtmf-relay rtp-nte
Basically, I am not matching my dial peer because I never get a match for "vmproduction" in my destination pattern. ......and I may have my dialpeers configured incorrectly.
Is there a way to match the text vmproduction in the dialpeer?
Is there a way to create a dialpeer match to accept all calls from the far end and hand it over to the messaging system for further processing?
Thanks in advance for your help.
It's been quite a while since I've worked with Cisco voice gateways and dial peers and I need some help with a project I am working on. Unfortunately, I tend to get confused when matching dial peers so I am asking for some help.
What I am trying to do is get a non-cisco pbx to work with a non-cisco messaging system using my voice gateway AS5300 in the middle (SIP connections to both). The VG is already handling calls from a non-Cisco one (PBX1) and I want to use the same VG and messaging platform for a second PBX (PBX2).
PBX2 has been configured to send calls destined for 5552226245 to the voice gateway where I will attempt to hand off the call to the messaging platform.
Debugs show that the call arrives at the voice gateway but my dialpeer isn't getting matched. I did some tracing (debug dialpeer and debug voice ccapi inout) and noticed the following.
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: vmproduction expanded string: vmproduction
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: 5555008888 expanded string: 5555008888
Jul 31 13:03:30 ADT: Inside dpMatchCore:
Jul 31 13:03:30 ADT: destination pattn: 5555008888 expanded string: 5555008888
Jul 31 13:03:30 ADT: MatchNextPeer: Peer 90 matched <---------not the dialpeer I want to match
Jul 31 13:03:30 ADT: cc_api_call_setup_ind:
Jul 31 13:03:30 ADT: cisco-username=5555008888
Jul 31 13:03:30 ADT: ----- ccCallInfo IE subfields -----
Jul 31 13:03:30 ADT: cisco-ani=5555008888
Jul 31 13:03:30 ADT: cisco-anitype=0
Jul 31 13:03:30 ADT: cisco-aniplan=0
Jul 31 13:03:30 ADT: cisco-anipi=0
Jul 31 13:03:30 ADT: cisco-anisi=0
Jul 31 13:03:30 ADT: dest=vmproduction
Jul 31 13:03:30 ADT: cisco-desttype=0
Jul 31 13:03:30 ADT: cisco-destplan=0
Jul 31 13:03:30 ADT: cisco-rdn=
Jul 31 13:03:30 ADT: cisco-rdntype=0
Jul 31 13:03:30 ADT: cisco-rdnplan=0
Jul 31 13:03:30 ADT: cisco-rdnpi=0
Jul 31 13:03:30 ADT: cisco-rdnsi=0
Jul 31 13:03:30 ADT: cisco-redirectreason=-1
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_api_call_setup_ind: (vdbPtr=0x63FE443C, callInfo={called=vmproduction,called_oct3=0x80,calling=5555008888,calling_oct3=0x0,calling_oct3a=0x80,calling_xlated=false,subscriber_type_str=Unknown,fdest=1,peer_tag=90, prog_ind=0,callingIE_present 1, src_route_label=, tgt_route_label= clid_transparent=0},callID=0x676C3048)
Jul 31 13:03:30 ADT: //504851/85B179B29993/CCAPI/cc_process_call_setup_ind: (event=0x6437E7E8)
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: matching parameters - called# [vmproduction], calling# [5555008888], consultid []
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search: Searching for node with called# [vmproduction], calling# [5555008888], consultid []
Jul 31 13:03:30 ADT: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup: No matching node
Jul 31 13:03:30 ADT: //504851/85B179B29993/CCAPI/cc_process_call_setup_ind: >>>>CCAPI handed cid 504851 with tag 90 to app "DEFAULT"
These are the dial peers I created for this.
dial-peer voice 6221 voip
destination-pattern 5552226245 <-------- this is the number for the messaging platform for PBX2
voice-class codec 1
session protocol sipv2
session target ipv4:<<messaging system address>>
dtmf-relay rtp-nte
!
dial-peer voice 6222 voip
destination-pattern 555222.... <--------- messaging subscriber number range
voice-class codec 1
session protocol sipv2
session target ipv4:<<PBX2 address>>
dtmf-relay rtp-nte
This is the dialpeer that actually gets matched.
dial-peer voice 90 voip
translation-profile outgoing Outgoing
destination-pattern 1%[2-9][0-9][0-9].......
voice-class codec 1
session protocol sipv2
session target ipv4:<<PBX1 IP address>>
dtmf-relay rtp-nte
Basically, I am not matching my dial peer because I never get a match for "vmproduction" in my destination pattern. ......and I may have my dialpeers configured incorrectly.
Is there a way to match the text vmproduction in the dialpeer?
Is there a way to create a dialpeer match to accept all calls from the far end and hand it over to the messaging system for further processing?
Thanks in advance for your help.