<br><br><div class="gmail_quote">On Thu, Jul 29, 2010 at 5:05 AM, Raymond Chan <span dir="ltr">&lt;<a href="mailto:raymondchan@commverge.com">raymondchan@commverge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> I am not sure where is the problem. All the call forwarded from
the gateway is going to FS. However, it seems the call cannot go to the correct
SIP phone. All are in public context. What dialplan should I put?</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">The following are not work examples. All are in public folder.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;extension name=&quot;NWT_DID_31754101&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;condition field=&quot;destination_number&quot;
expression=&quot;31754101&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;action application=&quot;bridge&quot;
data=&quot;sofia/external/<a href="mailto:31754101@203.194.134.91" target="_blank">31754101@203.194.134.91</a>&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;/condition&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;/extension&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"></span></p></div></div></blockquote><div><br></div><div>This is going to loop.  You really need to put the phones in a different context than the incoming if you want it to register with the same # as the destination number. This is assuming that IP is the same host that is taking the original call (based on your reply to Steven Ayre).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">     </span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;extension name=&quot;NWT_DID_31754102&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;condition field=&quot;context&quot;
expression=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;condition field=&quot;destination_number&quot;
expression=&quot;31754102&quot;&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;action application=&quot;transfer&quot;
data=&quot;$31754102 XML default&quot;/&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">       &lt;/condition&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">    &lt;/extension&gt;</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"></span></p></div></div></blockquote><div><br></div><div>This routes the call to the default context.  It would assume that your phones are registered on the default context. </div>
</div><br clear="all"><br>-- <br>-Rupa<br>