<br><br><div class="gmail_quote">On Mon, Jul 26, 2010 at 10:40 AM, ovvenkat <span dir="ltr"><<a href="mailto:ovvenkatesan@gmail.com">ovvenkatesan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">oops .. sorry peder, I was doing trial and error method and forgot to revert it back. Here is the correct one and still no luck :( . <br><div class="im"><br>I have created local extension 1100 and registered with freeSwitch and then
added below rule into /usr/local/freeswitch/conf/dialplan/public/00_inbound_did.xml
file <br></div><p class="MsoNormal" style="margin-bottom: 12pt;"></p><div class="im">
<br>
<include><br>
<extension name="public_did"><br>
<condition field="destination_number"
expression="^(xxxyyy)$"> xxxyyy--> my PRI number <br>
<action application="set"
data="domain_name=$${domain}"/><br></div>
<action application="transfer"
data="1100 XML default"/><br>
</condition><br>
</extension><br>
</include> <br>Here is the link of the pastbin for fs_cli logs. <br><br><a href="http://pastebin.freeswitch.org/13532" target="_blank">http://pastebin.freeswitch.org/13532</a><br></div></blockquote><div><br>You're almost there. You just need to modify the regular expression in the Local_Extension dialplan entry. As Milena said, I gave explicit instructions on how to do that in my other post. <br>
<br>As a reminder to anyone reading this thread... When you see a log entry like this:<br><span class="re7">Dialplan: OpenZAP/<span class="nu0">1</span>:<span class="nu0">13</span>/<span class="nu0">1100</span> Action transfer<span class="br0">(</span><span class="nu0">1100</span> enum<span class="br0">)<br>
<br>It means that the dialed number did not match any expressions! It's falling back the the "last resort" extension, aka ENUM. In this user's case he added user id "1100" to his directory but he did not add "1100" to is dialplan to allow the new user's phone to be dialed. The default dialplan has the "Local_Extension" with this condition:<br>
<condition field="destination_number" expression="^(10[01][0-9])$"> <br><br>This user could do something like this to allow explicitly "1100" to be dialed:<br><condition field="destination_number" expression="^(10[01][0-9]|1100)$"> <br>
<br>OR he could add 1100 as part of a range. The follow allows 1100 to 1119 to be dialed:<br><condition field="destination_number" expression="^(1[01][01][0-9])$"> <br><br>Either method works - it's just a matter of whether or not you need to allow dialing to 11xx or just 1100.<br>
<br>Now everyone go buy the new FS book! :P<br>-MC<br></span></span></div></div>