02-09-2013 07:35 PM - edited 03-16-2019 03:37 PM
hello everyone
i have a question:in dila-peer which command is check calling number ?
i know in dial-peer have there command to check the number (calling or called) for choose incoming dial-peer
incoming called-number
answer-address
destination-pattern
thanks !!
finally happy spring festival ~~
Solved! Go to Solution.
02-09-2013 09:03 PM
For choosing incoming dial-peer - below is the process according to the order of operation:
1) incoming called number - matches based on the called number
2) answer-address - this is used to match based on calling number
3) destination-pattern - matches based on calling number (note for outbound dial-peer this matches against called number - different behavior for incoming and outgoing dial-peer)
As said, order of operation is as listed above - first tries to match 1 then 2 and then 3.
Further information here:
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml#topic3
Terry
Sent from Cisco Technical Support iPad App
02-10-2013 04:04 PM
Hi Bo,
Please see the below solution:
1) Define two separate incoming dial-peers to catch the calls based on ANI both for 1XXX and 2XXX
2) Perfom translation at incoming dial-peer and prefix a * for all calls coming from 2XXX
3) Create two outgoing dial-peers. One for 1XXX with destination port as 0/0/0:15 and second for 2XXX with the destination-number begining with * and destination port as 0/0/1:15.
4) Just in case you have an incoming dial-peer defined as anything too general (ex: incoming called-num .), change your incoming PSTN dial-peer to be more specific to avoid overlap.
See below:
---------------
voice translation-rule 1
rule 1 /.*/ /*\0/
!
voice translation-profile PREFIX*
translate called 1
!
!
dial-peer voice 9100 voip
description INCOMING-1XXX
answer-address ^1...$
dtmf-relay h245-alphanumeric
no vad
!
dial-peer voice 9200 voip
description INCOMING-2XXX
translation-profile incoming PREFIX*
answer-address ^2...$
dtmf-relay h245-alphanumeric
no vad
!
dial-peer voice 9 pots
description OUTGOING-PSTN-CALLS-1XXX
destination-pattern 9T
port 0/0/0:15 <<<<< All calls from 1XXX go out via 0/0/0:15
!
dial-peer voice 99 pots
description OUTGOING-PSTN-CALLS-2XXX
destination-pattern *9T
port 0/0/1:15 <<<< All calls coming from 2XXX are tagged with * and go out via port 0/0/1
!
dial-peer voice 1 pots
description Incoming PSTN Calls
translation-profile incoming FROM_PSTN
incoming called-number ^1234....$ <<< Modify your PSTN incoming dial-peer (if required) to be more specific to avoid overlap
direct-inward-dial
Let us know if you have any further questions.
Terry
Please rate all helpful posts.
02-09-2013 09:03 PM
For choosing incoming dial-peer - below is the process according to the order of operation:
1) incoming called number - matches based on the called number
2) answer-address - this is used to match based on calling number
3) destination-pattern - matches based on calling number (note for outbound dial-peer this matches against called number - different behavior for incoming and outgoing dial-peer)
As said, order of operation is as listed above - first tries to match 1 then 2 and then 3.
Further information here:
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml#topic3
Terry
Sent from Cisco Technical Support iPad App
02-10-2013 08:39 AM
hi terry
i think i have some wrong with this command...
This command is choose the incoming dial-peer .....
thanks for you reply.
in my case , my customer have two ISP,A and B so they have two E1,
the user want the ISP A 's DID number dial 9+PSTN number for outbond go the A's E1 and B is there.
the case like this :
A DID number is 1XXX , E1 is 0/0/0:15
B DID number is 6XXX, E1 is 0/0/1 :15
so if the 1XXX dial 9+123456789(the number is a PSTN phone) they will use the 0/0/0:15 ....
how can i do for choose the outgoing dial-peer check the calling number ?
02-10-2013 04:04 PM
Hi Bo,
Please see the below solution:
1) Define two separate incoming dial-peers to catch the calls based on ANI both for 1XXX and 2XXX
2) Perfom translation at incoming dial-peer and prefix a * for all calls coming from 2XXX
3) Create two outgoing dial-peers. One for 1XXX with destination port as 0/0/0:15 and second for 2XXX with the destination-number begining with * and destination port as 0/0/1:15.
4) Just in case you have an incoming dial-peer defined as anything too general (ex: incoming called-num .), change your incoming PSTN dial-peer to be more specific to avoid overlap.
See below:
---------------
voice translation-rule 1
rule 1 /.*/ /*\0/
!
voice translation-profile PREFIX*
translate called 1
!
!
dial-peer voice 9100 voip
description INCOMING-1XXX
answer-address ^1...$
dtmf-relay h245-alphanumeric
no vad
!
dial-peer voice 9200 voip
description INCOMING-2XXX
translation-profile incoming PREFIX*
answer-address ^2...$
dtmf-relay h245-alphanumeric
no vad
!
dial-peer voice 9 pots
description OUTGOING-PSTN-CALLS-1XXX
destination-pattern 9T
port 0/0/0:15 <<<<< All calls from 1XXX go out via 0/0/0:15
!
dial-peer voice 99 pots
description OUTGOING-PSTN-CALLS-2XXX
destination-pattern *9T
port 0/0/1:15 <<<< All calls coming from 2XXX are tagged with * and go out via port 0/0/1
!
dial-peer voice 1 pots
description Incoming PSTN Calls
translation-profile incoming FROM_PSTN
incoming called-number ^1234....$ <<< Modify your PSTN incoming dial-peer (if required) to be more specific to avoid overlap
direct-inward-dial
Let us know if you have any further questions.
Terry
Please rate all helpful posts.
02-10-2013 05:46 PM
hi terry
thanks for you reply very much
i have a question , in you reply whether i need to creat outgoing dial-peer for voip? i think the dial-pper 9100 and 9200 all is form voip to PSNT,so i need to creat from PSTN to VOIP like destination-pattern and session target ipv4:
second question is can i creat from PSTN call use incoming dialed-number [01568]T?
because prefix of the long distance is 0 ,the prefix of mobile phone is 1 and the prefix of local call is 5 6 8 . and some need 8-digit number and some need 11-digit number .....so i want use "T" to match .....
can i do this
thanks again!!
02-10-2013 06:16 PM
Not a problem.
i have a question , in you reply whether i need to creat outgoing dial-peer for voip? i think the dial-pper 9100 and 9200 all is form voip to PSNT,so i need to creat from PSTN to VOIP like destination-pattern and session target ipv4:
Dial-peers 9100 and 9200 is for catching incoming calls from CUCM to the gateway based on the ANI. So they are going to be of type voip. They are matching based on answer-address, and since its not outgoing it doesnot require session-target and destination-pattern.
second question is can i creat from PSTN call use incoming dialed-number [01568]T?
because prefix of the long distance is 0 ,the prefix of mobile phone is 1 and the prefix of local call is 5 6 8 . and some need 8-digit number and some need 11-digit number .....so i want use "T" to match .....
Please dont confuse the outgoing and incoming dial-peers. Dial-peers 9, 99, 9100 and 9200 are for your solution to route calls based on ANI. 9100 and 9200 are for incoming from CUCM and 9 and 99 are a generalised dial-peer for outgoing PSTN calls. I have given you an example. So whatever dial-peers you have you can duplicate them by adding a * in front to route calls to port 0/0/1. (for calls coming from 2XXX)
Dial-peer 1 for incoming called number (I had again just given example) is for your incoming calls. You already will have an incoming dial-peer for the incoming calls from PSTN to your DID. If your DID is, lets say 8 digit - 9111 11XX - xx is the 100 block number.
You can have:
dial-peer voice 1 pots
description Incoming PSTN Calls
translation-profile incoming FROM_PSTN
incoming called-number ^911111..$
direct-inward-dial
If you have two DIDs starting with 9 and 8:
dial-peer voice 1 pots
description Incoming PSTN Calls
translation-profile incoming FROM_PSTN
incoming called-number ^[8-9]11111..$
direct-inward-dial
or if your provider delivers different prefix for different types of calls for example any area code etc. you can create another dial-peer matching the incoming called number: For example if they deliver 1 as prefix in addition to dial-peer 1 create another dial-peer 2 to match this pattern as well:
dial-peer voice 2 pots
description Incoming PSTN Calls
translation-profile incoming FROM_PSTN
incoming called-number ^1[8-9]11111..$
direct-inward-dial
Let us know if you have any further questions.
Terry
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