cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
473
Views
0
Helpful
5
Replies

Dial-Peer matching on calling AND called number

Ivan Raic
Level 1
Level 1

I need to add a 04 or a 09 depending on the calling number and called number.

This is because we a using a single SIP trunk for multiple area codes, so in the example of a phone that belongs in a state with a prefix of 4 and another phone in a state with a prefix of 9, when they call local numbers (ie without using area codes) i need to know when to add the 04 or 09 to the called-number. This is because the SIP provider expects area code for all called number.

Didt manuipualtion is easy, but im having difficulties on how to work out on matching against a calling number AND called number, so when to know to add the 04 or 09.

Dial-peer seems to only work on a single value - called number, answer-address or destination, not called number AND answer-address which is what i want..

Any help would be appreciated :-)

ivan.

1 Accepted Solution

Accepted Solutions

Hi,

So I assume that you would like to add area code (04 or 09) depends on who is making an outbound call. Isn't it?

What you should do in that case is to first use answer-address command to match inbound dial peer, instead of using called-number. So you will be having multiple inbound dial peers with answer-address command configured as per your requirement. Once you identify the set of callers using inbound dial peer, apply translation-profile on inbound dial peer to add prefix of 04 or 09 depends on who the caller is. Once called number is manipulated, get that number matched with destination-pattern command under outbound dial peer.

Please let me know if it serves your requirement OR if you would like to get it clarified bit more.

- Vivek

View solution in original post

5 Replies 5

Vivek Batra
VIP Alumni
VIP Alumni

Hi,

What is your environment, CME or CUCM?

- Vivek

CUCM

so I'm matching on the called number by ref 7 digits (no area code) and then I want to add 04 or 09 depending on the mask .

hope I make sense

Hi,

So I assume that you would like to add area code (04 or 09) depends on who is making an outbound call. Isn't it?

What you should do in that case is to first use answer-address command to match inbound dial peer, instead of using called-number. So you will be having multiple inbound dial peers with answer-address command configured as per your requirement. Once you identify the set of callers using inbound dial peer, apply translation-profile on inbound dial peer to add prefix of 04 or 09 depends on who the caller is. Once called number is manipulated, get that number matched with destination-pattern command under outbound dial peer.

Please let me know if it serves your requirement OR if you would like to get it clarified bit more.

- Vivek

That answers it Vivek, thanks for the response.

I did as you suggested and added either a 04 or 09 on every call, then stripped the 04 or 09 with the outdial if the user calling service numbers, international or national calls.

thanks,

Ivan.

Thanks Ivan for the updates.

- Vivek