[cisco-voip] dial peer/config to send all calls to one number

Lelio Fulgenzi lelio at uoguelph.ca
Tue Jun 19 11:49:24 EDT 2012


Just as a followup, the 'default-destination' did not work with the PRI. According to online docs, I think this is for FXO only. So I removed the dial-peer and edited the voice port as I mentioned below to create a PLAR. 

Thanks for everyone's help. 

--- 
Lelio Fulgenzi, B.A. 
Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
(519) 824-4120 x56354 (519) 767-1060 FAX (ANNU) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
Cooking with unix is easy. You just sed it and forget it. 
- LFJ (with apologies to Mr. Popeil) 


----- Original Message -----
From: "Lelio Fulgenzi" <lelio at uoguelph.ca> 
To: "Nick Matthews" <matthnick at gmail.com> 
Cc: "Nate VanMaren" <VanMarenNP at ldschurch.org>, "cisco-voip at puck.nether.net (cisco-voip at puck.nether.net)" <cisco-voip at puck.nether.net> 
Sent: Wednesday, June 6, 2012 4:57:04 PM 
Subject: Re: [cisco-voip] dial peer/config to send all calls to one number 


Thanks Nick. I looked up an existing router, and it was very similar to what you have presented. 

Someone offline also suggested using the 'default-destination' command under the 'call-manager-fallback' section, so I'm gonna try that first and see if it works. 

First have to set up a T1 cross over connection from my 6608s to the PRIs on the router. I want to do this so I don't have to do maintenance on our trunks to test inbound calls. 

Lelio 

--- 
Lelio Fulgenzi, B.A. 
Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
(519) 824-4120 x56354 (519) 767-1060 FAX (ANNU) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
Cooking with unix is easy. You just sed it and forget it. 
- LFJ (with apologies to Mr. Popeil) 


----- Original Message -----
From: "Nick Matthews" <matthnick at gmail.com> 
To: "Lelio Fulgenzi" <lelio at uoguelph.ca> 
Cc: "Nate VanMaren" <VanMarenNP at ldschurch.org>, "cisco-voip at puck.nether.net (cisco-voip at puck.nether.net)" <cisco-voip at puck.nether.net> 
Sent: Wednesday, June 6, 2012 4:53:29 PM 
Subject: Re: [cisco-voip] dial peer/config to send all calls to one number 

(from memory, may not be 100%) 

dial-peer voice 2 pots 
port 0/0/0:23 
direct-inward-dial 
translation-profile incoming SET12345 

dial-peer voice 1 voip 
destination-pattern 12345 
session target ipv4:X.X.X.X 
etc 

voice translation-profile SET12345 
translate called 1 

voice translation-rule 1 
rule 1 /.*/ /12345/ 

To change the number all you do is go back to voice translation-rule 1 
and change rule 1 to something else. 

-nick 

On Wed, Jun 6, 2012 at 10:47 AM, Lelio Fulgenzi <lelio at uoguelph.ca> wrote: 
> it's more for a matter of getting it done quickly for testing ACLs, not for 
> getting things working in a production environment. a one line config would 
> work better for me. ;) 
> 
> but i see your point. 
> 
> 
> --- 
> Lelio Fulgenzi, B.A. 
> Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
> (519) 824-4120 x56354 (519) 767-1060 FAX (ANNU) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> Cooking with unix is easy. You just sed it and forget it. 
> - LFJ (with apologies to Mr. Popeil) 
> 
> 
> ________________________________ 
> From: "Nate VanMaren" <VanMarenNP at ldschurch.org> 
> To: "Lelio Fulgenzi" <lelio at uoguelph.ca>, "cisco-voip at puck.nether.net 
> (cisco-voip at puck.nether.net)" <cisco-voip at puck.nether.net> 
> Sent: Wednesday, June 6, 2012 10:41:48 AM 
> Subject: RE: [cisco-voip] dial peer/config to send all calls to one number 
> 
> 
> “i'd like to avoid having to setup translations and the like.” Why? 
> 
> 
> 
> On every gateway I setup these basic things, and adjust for the country. 
> Some sites there is a direct mapping between DID and extension, some it’s 
> random. I do that all on the gateway so it will work in SRST too. I have 
> moved from H.323 to SIP for all new gateways, but there is some stuff in 
> here that allows for both. (CM h.323 doesn’t send the +) 
> 
> 
> 
> I gave up on trying to use MGCP on a SRST box for the trunks a long time 
> ago. I do use MGCP for the FXS ports, because SCCP doesn’t do Protocol 
> based T.38. 
> 
> 
> 
> 
> 
> trunk group PSTN 
> 
> translation-profile incoming FROMPSTN 
> 
> translation-profile outgoing TOPSTN 
> 
> voice translation-rule 10 
> 
> rule 1 /\(^9994870120\)/ /+1\1/ 
> 
> rule 100 /\(^9995472[23]..\)/ /+1\1/ 
> 
> ! 
> 
> voice translation-rule 11 
> 
> rule 1 /\(.*\)/ /+1\1/ type national national 
> 
> rule 2 /\(.*\)/ /+\1/ type international international 
> 
> ! 
> 
> voice translation-rule 15 
> 
> rule 1 /^1/ // type any national plan any isdn 
> 
> rule 2 /^\+1/ // type any national plan any isdn 
> 
> rule 4 /^\+/ // type any international plan any isdn 
> 
> ! 
> 
> voice translation-rule 16 
> 
> rule 1 /^011/ /011/ type any unknown plan any unknown 
> 
> rule 2 /^9011/ /011/ type any unknown plan any unknown 
> 
> rule 3 /^\+1/ /1/ type any national plan any isdn 
> 
> ! 
> 
> ! 
> 
> voice translation-profile FROMPSTN 
> 
> translate calling 11 
> 
> translate called 10 
> 
> ! 
> 
> voice translation-profile TOPSTN 
> 
> translate calling 15 
> 
> translate called 16 
> 
> 
> 
> From: cisco-voip-bounces at puck.nether.net 
> [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Lelio Fulgenzi 
> Sent: Wednesday, June 06, 2012 8:26 AM 
> To: cisco-voip at puck.nether.net (cisco-voip at puck.nether.net) 
> Subject: [cisco-voip] dial peer/config to send all calls to one number 
> 
> 
> 
> 
> i'm trying to do some testing and I'd like something simple to send all 
> calls that come in from a PRI during SRST (i.e. H323) to one extension. 
> 
> Would I use a voice-port config as follows? 
> 
> voice-port 0/0/1:23 
> connection plar 12345 
> 
> -or- would I use a dial-peer config as follows? 
> 
> dial-peer voice 902 pots 
> incoming called-number . 
> direct-inward-dial 
> port 0/0/1:23 
> 
> if dial-peer, what other command would I use to send the call to extension 
> 12345? 
> 
> i'd like to avoid having to setup translations and the like. 
> 
> 
> 
> --- 
> Lelio Fulgenzi, B.A. 
> Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
> (519) 824-4120 x56354 (519) 767-1060 FAX (ANNU) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> Cooking with unix is easy. You just sed it and forget it. 
> - LFJ (with apologies to Mr. Popeil) 
> 
> 
> 
> NOTICE: This email message is for the sole use of the intended recipient(s) 
> and may contain confidential and privileged information. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not the 
> intended recipient, please contact the sender by reply email and destroy all 
> copies of the original message. 
> 
> 
> 
> _______________________________________________ 
> cisco-voip mailing list 
> cisco-voip at puck.nether.net 
> https://puck.nether.net/mailman/listinfo/cisco-voip 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20120619/2d42bbe7/attachment.html>


More information about the cisco-voip mailing list