09-10-2012 11:49 PM - edited 03-16-2019 01:08 PM
Hello everyone..
We have a Cisco 3845 configured as gateway router with H.323.
Now , we have DID configured in our network. Our IP phones have 2 lines configured one for Internal VOIP calls and second for DID outbound calls.
Now, problem is in the DID caller ID for outbound calls, like when I am calling to a cell number from my DID number, the cell is not showing the particular DID number instead it is showing the PRI pilot number.
I have created some translation pattern for the issue, but it is not working. Please suggest.
DID Pilot number - 22139500
DID Numbers - 22139501 - 22139800
Please see the configuration given below -
dial-peer voice 6 voip
destination-pattern 2213....
session target ipv4:192.168.150.2
dtmf-relay h245-alphanumeric
codec g711ulaw
ip qos dscp cs5 media
no vad
dial-peer voice 5 pots
description *** Outgoing calls to PSTN ***
preference 3
destination-pattern .T
no digit-strip
direct-inward-dial
port 0/1/1:15
forward-digits all
dial-peer voice 100 pots
translation-profile outgoing dialed_num_out
preference 4
destination-pattern 9T
port 0/1/1:15
forward-digits 10
voice translation-rule 1
rule 1 /2213..../ /&/
rule 2 /[9][0-9]......../ /0&/
!
!
voice translation-profile dialed_num_out
translate calling 1
09-11-2012 01:21 AM
Hi
How many digits your provider expecting to recieve for the calling number?
You have to send exactly what ISP expecting in order to have a did numbers for each extension
Why do you have two pots for the pstn?
If you are extensions are 9xxx then try the below translation
voice translation-rule 10
rule 1 /^9…/ /2213\0/
pls send the:
debug isdn q931
debug voip dial-peer
Regards
09-11-2012 02:33 AM
Hi thanks for your reply...
From ISP end they had provided us with 22139501 - 22139800 DID numbers.
As DID caller ID is not working so, for testing purpose I have created another POTS, does that require, if not what will be the correct one.
Now, our extensions having DID number like 22139523, what will be translation pattern so that caller ID can be seen in the Cell Phone.
Debug output are as follows
debug isdn q931
*Sep 11 09:15:02.836: ISDN Se0/0/0:15 Q931: RX <- CONNECT pd = 8 callref = 0xB12F
Progress Ind i = 0x8282 - Destination address is non-ISDN
Date/Time i = 0x0C090B0E3734
Date (dd-mm-yr) = 12-09-11
Time (hr:mnt:sec) = 14:55:52
*Sep 11 14:45:02: %ISDN-6-CONNECT: Interface Serial0/0/0:5 is now connected to 06462260617 N/A
*Sep 11 09:15:02.836: ISDN Se0/0/0:15 Q931: TX -> CONNECT_ACK pd = 8 callref = 0x312F
*Sep 11 14:45:04: %ISDN-6-DISCONNECT: Interface Serial0/0/0:2 disconnected from 3412270474 , call lasted 860 seconds
*Sep 11 09:15:04.760: ISDN Se0/0/0:15 Q931: TX -> DISCONNECT pd = 8 callref = 0x98DA
Cause i = 0x8090 - Normal call clearing
*Sep 11 09:15:04.936: ISDN Se0/0/0:15 Q931: RX <- RELEASE pd = 8 callref = 0x18DA
*Sep 11 09:15:04.936: ISDN Se0/0/0:15 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x98DA
*Sep 11 09:15:11.052: ISDN Se0/1/1:15 Q931: TX -> RELEASE pd = 8 callref = 0xA4C5
*Sep 11 09:15:11.068: ISDN Se0/1/1:15 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x24C5
*Sep 11 09:15:11.864: ISDN Se0/0/0:15 Q931: RX <- DISCONNECT pd = 8 callref = 0xB127
Cause i = 0x8290 - Normal call clearing
Progress Ind i = 0x8288 - In-band info or appropriate now available
*Sep 11 14:45:11: %ISDN-6-DISCONNECT: Interface Serial0/0/0:1 disconnected from 09004604436 , call lasted 149 seconds
*Sep 11 09:15:11.864: ISDN Se0/0/0:15 Q931: call_disc: PI received in disconnect; Postpone sending RELEASE for callid 0xB279
*Sep 11 09:15:12.000: ISDN Se0/0/0:15 Q931: TX -> RELEASE pd = 8 callref = 0x3127
*Sep 11 09:15:12.044: ISDN Se0/0/0:15 Q931: RX <- RELEASE_COMP pd = 8 callref = 0xB127
*Sep 11 09:15:14.708: ISDN Se0/1/1:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x0, Calling num 22139523
*Sep 11 09:15:14.708: ISDN Se0/1/1:15 Q931: Sending SETUP callref = 0x3130 callID = 0xB282 switch = primary-net5 interface = User
*Sep 11 09:15:14.708: ISDN Se0/1/1:15 Q931: TX -> SETUP pd = 8 callref = 0x3130
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9839F
Exclusive, Channel 31
Calling Party Number i = 0x0081, '22139523'
Plan:Unknown, Type:Unknown
Called Party Number i = 0x80, '9231213575'
Plan:Unknown, Type:Unknown
*Sep 11 09:15:14.744: ISDN Se0/1/1:15 Q931: RX <- SETUP_ACK pd = 8 callref = 0xB130
Channel ID i = 0xA9839F
Exclusive, Channel 31
*Sep 11 09:15:17.132: ISDN Se0/1/1:15 Q931: RX <- CALL_PROC pd = 8 callref = 0xB130
Progress Ind i = 0x8288 - In-band info or appropriate now available
Progress Ind i = 0x8282 - Destination address is non-ISDN
*Sep 11 14:45:22: %ISDN-6-DISCONNECT: Interface Serial0/0/0:0 disconnected from 09823137999 , call lasted 646 seconds
*Sep 11 09:15:22.472: ISDN Se0/0/0:15 Q931: TX -> DISCONNECT pd = 8 callref = 0x3114
Cause i = 0x8090 - Normal call clearing
*Sep 11 09:15:22.980: ISDN Se0/0/0:15 Q931: RX <- RELEASE pd = 8 callref = 0xB114
*Sep 11 09:15:22.980: ISDN Se0/0/0:15 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x3114
*Sep 11 09:15:23.336: ISDN Se0/1/1:15 Q931: RX <- CONNECT pd = 8 callref = 0xB130
Date/Time i = 0x0C090B0E39
Date (dd-mm-yr) = 12-09-11
Time (hr:mnt:sec) = 14:57:192
*Sep 11 14:45:23: %ISDN-6-CONNECT: Interface Serial0/1/1:30 is now connected to 9231213575 N/A
*Sep 11 09:15:23.336: ISDN Se0/1/1:15 Q931: TX -> CONNECT_ACK pd = 8 callref = 0x3130
*Sep 11 09:15:44.236: ISDN Se0/1/1:15 Q931: RX <- DISCONNECT pd = 8 callref = 0xB130
Cause i = 0x8090 - Normal call clearing
Progress Ind i = 0x8288 - In-band info or appropriate now available
*Sep 11 14:45:44: %ISDN-6-DISCONNECT: Interface Serial0/1/1:30 disconnected from 9231213575 , call lasted 20 seconds
*Sep 11 09:15:44.236: ISDN Se0/1/1:15 Q931: call_disc: PI received in disconnect; Postpone sending RELEASE for callid 0xB282
*Sep 11 09:15:44.376: ISDN Se0/1/1:15 Q931: TX -> RELEASE pd = 8 callref = 0x3130
*Sep 11 09:15:44.392: ISDN Se0/1/1:15 Q931: RX <- RELEASE_COMP pd = 8 callref = 0xB130
NOTE:- Calling Number - 22139523
Called Number - 9231213575
debug voip dial-peer is not taking in the router....
09-11-2012 02:43 AM
Hi, one more thing...
I have created 2 rules -
voice translation-rule 1
rule 1 /2213..../ /&/
rule 2 /[9][0-9]......../ /0&/
In rule 1 , when I will call from a DID number (2213....), it will be translated to the same number (&).
The translation output is -
VOICE-GATEWAY#test voice translation-rule 1 22139523
Matched with rule 1
Original number: 22139523 Translated number: 22139523
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
In rule 2, we have 10 digit cell number starting with 9 like 9231213575.
The translation output is -
VOICE-GATEWAY#test voice translation-rule 1 9231213575
Matched with rule 2
Original number: 9231213575 Translated number: 09231213575
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
09-11-2012 03:28 AM
Hi
Sorry the command is
debug voice dialpeer
Also what are your extensions?
Regards
09-11-2012 03:38 AM
Hi,
debug voice dialpeer output
*Sep 11 10:21:34.548: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=.T, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:34.548: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 10:21:34.668: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=.T, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:34.668: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=22139523, Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=22139523
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=6
2: Dial-peer Tag=1
3: Dial-peer Tag=2
4: Dial-peer Tag=5
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9231213575, Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9231213575
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
*Sep 11 10:21:35.408: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=100
2: Dial-peer Tag=1
3: Dial-peer Tag=2
4: Dial-peer Tag=5
*Sep 11 15:51:37: %ISDN-6-DISCONNECT: Interface Serial0/1/1:29 disconnected from 9957570162 , call lasted 20 seconds
*Sep 11 15:51:41: %ISDN-6-CONNECT: Interface Serial0/1/1:28 is now connected to 9231213575 N/A
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=22139523, Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=22139523
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=6
2: Dial-peer Tag=1
3: Dial-peer Tag=2
4: Dial-peer Tag=5
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9231213575, Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9231213575
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
*Sep 11 10:21:41.516: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=100
2: Dial-peer Tag=1
3: Dial-peer Tag=2
4: Dial-peer Tag=5
*Sep 11 10:22:01.920: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9T, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:22:01.920: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 15:52:02: %ISDN-6-DISCONNECT: Interface Serial0/1/1:28 disconnected from 9231213575 , call lasted 21 seconds
*Sep 11 10:22:02.820: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=2213...., Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:22:02.820: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 10:22:02.820: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9T, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:22:02.820: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 10:22:03.144: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9433886091, Called Number=0470, Voice-Interface=0x688C4BA4,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:22:03.144: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
*Sep 11 10:22:03.144: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9433886091, Called Number=0470, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_FAX
*Sep 11 10:22:03.144: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 15:52:03: %ISDN-6-CONNECT: Interface Serial0/0/0:2 is now connected to 9433886091 N/A
*Sep 11 10:22:07.356: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9437003385, Called Number=0470, Voice-Interface=0x688C4BA4,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
*Sep 11 10:22:07.356: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=100
*Sep 11 10:22:07.356: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=9437003385, Called Number=0470, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_FAX
*Sep 11 10:22:07.356: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=NO_MATCH(-1) After All Match Rules Attempt
*Sep 11 15:52:07: %ISDN-6-CONNECT: Interface Serial0/0/0:4 is now connected to 9437003385 N/A
Note :- Calling Number - 22139523
Called Number - 9231213575
Extension Number - 22139523
Regards
09-11-2012 04:18 AM
Hi
I dont see anywhere the calling number
Also if your extensions are the same numbers with the dids then you dont have to aplly any translation rule
Remove dial-peer voice 5 pots and dial-peer voice 100 pots
If you have access code 9 and then you dial the called number then use the below
also dont use the forward digits if you will have a general dial peer and not specific for each destination
dial-peer voice 200 pots
preference 0
destination-pattern 9T
direct-inward-dial
port 0/1/1:15
with
09-11-2012 05:53 AM
You dont need a xlation pattern to advertise your CLI if the number you are sending to your provider is in your Block of DDI..
Calling Number - 22139523 ( is this number part of your DDI)?? If it is I suggest you speak to your provider to know why your they are not accepting your presented numbers
Please rate all useful posts
"'Nature is too thin a screen, the glory of the omnipresent God bursts through it everywhere"-Ralph Waldo Emerson
09-11-2012 10:00 AM
Based on your debugs, you are sending your DID correctly.
*Sep 11 09:15:14.708: ISDN Se0/1/1:15 Q931: TX -> SETUP pd = 8 callref = 0x3130
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9839F
Exclusive, Channel 31
Calling Party Number i = 0x0081, '22139523'
Plan:Unknown, Type:Unknown
Called Party Number i = 0x80, '9231213575'
Plan:Unknown, Type:Unknown
You need to check with your teleco, whether they are expecting the same numbering format/length or not. Usually, in case of mismatch, your teleco will reset the calling number to pilot one similar to your case.
Also, I suggest to check with them what are PLAN/TYPE values expected. You can reconfigure them using isdn-maps.
"Please rate useful posts"
09-11-2012 10:05 AM
Hi,
It's pretty common that your operator would need to have both type and plan set for called ID to work properly. Also it's common not to need to send the entire block of digits in your DID range for caller ID. For example if the length of your DID numbers are 8 digits, you might need to send only 4 digits to your operator.
But as been said previously, you really need to talk to your operator to find out what there requirements are for your connection. You could also of course do a lot of test calls with different settings for the above, but it would be more work than just place a call to you operator.
Easiest way to change length of sent digits, type and plan is with voice translation rules applied outbound on your outgoing dial peer. Also for ease of readability in show and debugs commands it's best praxis to use separate dial peers for inbound and outbound calls. That make it much easier to see the call flow for each call.
Best of luck!
Please rate useful posts
Sent from Cisco Technical Support iPhone App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide