<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
John,<BR>
<BR>
you have to make a little change in your dial-peer configuration, as follow:<BR>
<BR>
dial-peer voice 20 pots<BR>destination-pattern 9...............<BR>direct-inward-dial<BR>port 0/3/0:23<BR>forward-digits extra<BR><BR>
this way, you're telling the gateway, that all trafic beggining with 9, must be redirected to port 0/3/0,<BR>
<BR>
depending on the pattern, you can use something like this:<BR>
<BR>
destination-pattern 9011............<BR>
<BR>
hope this can help<BR><BR>
<BR> <BR>> On Tue, Feb 2, 2010 at 10:43 AM, John Lange <john@johnlange.ca> wrote:<BR>> > We have a Cisco connected to a PRI acting as a VOIP gateway for an<BR>> > Asterisk system. In our setup, we have every call arriving at the<BR>> > gateway that begins with "9" routed to the PRI, and everything else<BR>> > routed to the Asterisk server.<BR>> ><BR>> > In short, this means any number starting with "9" should be an outbound<BR>> > call (to the PRI), and everything else should be is an inbound call (to<BR>> > the Asterisk server).<BR>> ><BR>> > The problem is, any international call seems to be looping back to the<BR>> > Asterisk box. For example, if we dial '9011448712002000' it ends up<BR>> > looping back to the Asterisk server as if the Cisco is ignoring the 9.<BR>> ><BR>> > Here are the dialpeers. Pretty straight forward. What could be wrong?<BR>> ><BR>> > What commands can I use to trace the progress of a call on the console<BR>> > to see why the Cisco is doing this?<BR>> ><BR>> > ---<BR>> ><BR>> > dial-peer voice 20 pots<BR>> > destination-pattern 9<BR>> > direct-inward-dial<BR>> > port 0/3/0:23<BR>> > forward-digits extra<BR>> > !<BR>> > dial-peer voice 40 voip<BR>> > preference 1<BR>> > destination-pattern .<BR>> > session protocol sipv2<BR>> > session target ipv4:192.168.134.9<BR>> > session transport udp<BR>> > dtmf-relay sip-notify rtp-nte<BR>> > codec g711ulaw<BR>> > fax rate 14400<BR>> > fax protocol t38 ls-redundancy 2 hs-redundancy 1 fallback pass-through<BR>> > g711ulaw<BR>> > no vad<BR>> ><BR>> > ---<BR>> ><BR>> ><BR>> > --<BR>> > John Lange<BR>> > http://www.johnlange.ca<BR>> ><BR>> > _______________________________________________<BR>> > cisco-voip mailing list<BR>> > cisco-voip@puck.nether.net<BR>> > https://puck.nether.net/mailman/listinfo/cisco-voip<BR>> ><BR>> _______________________________________________<BR>> cisco-voip mailing list<BR>> cisco-voip@puck.nether.net<BR>> https://puck.nether.net/mailman/listinfo/cisco-voip<BR>                                            <br /><hr />Hotmail: Free, trusted and rich email service. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>