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

Nate VanMaren VanMarenNP at ldschurch.org
Wed Jun 6 10:41:48 EDT 2012


“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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20120606/53765c55/attachment.html>


More information about the cisco-voip mailing list