SIP TO SIP Calling on NSG
Â
 Â
This Document guides in creating the Dial plan for the SIP to SIP calls directly on the NSG
Â
In some specific scenario, where on the NSG, where in calls will be coming from the SIP and the same call needs to be send to SIP side rather than PSTN
Â
PROXY (A) ====>NSG====> PROXY(B)
Â
The below rule of IP to IP calls will have very very limited functionality, where in you can send the calls, but you cannot expect an SBC functionality of security / Topology Hiding, this will just do an SIP to SIP calls only
Â
On the below Dial plan / Context add your specific requirement, below is one such example, modify the IP and the numbers and the DID’s  as per your network requirement Â
Â
<context name="from-voip">
               <extension name="to-pstn">
-->Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
   <!--testing for ip to ip call--> ----- calls from Proxy A to Proxy B using NSG
Â
         <condition field="${destnum}" expression="22028912|2202014[0-2]" break="on-true">
                <action application="bridge" data="sofia/internal/${destnum}@1.1.1.1:5060"/>
                </condition>
               Â
< Â calls from Proxy B to Proxy A using NSG>
                <condition field="${destnum}" expression="22020652|22020145" break="on-true">
                <action application="bridge" data="sofia/internal/${destnum}@2.2.2.2:5083"/>
                </condition>
<!--test over-->
Â