On Thu, Jul 29, 2010 at 5:05 AM, Raymond Chan <raymondchan@commverge.com> wrote:

 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?

 

The following are not work examples. All are in public folder.

 

    <extension name="NWT_DID_31754101">

       <condition field="destination_number" expression="31754101">

       <action application="bridge" data="sofia/external/31754101@203.194.134.91"/>

       </condition>

    </extension>


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

    

    <extension name="NWT_DID_31754102">

       <condition field="context" expression="public"/>

       <condition field="destination_number" expression="31754102">

       <action application="transfer" data="$31754102 XML default"/>

       </condition>

    </extension>


This routes the call to the default context.  It would assume that your phones are registered on the default context. 


--
-Rupa