check this: <a href="http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_A_Registered_User">http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_A_Registered_User<br></a><br>dial registered user:         <font face="arial, sans-serif"><span style="border-collapse: collapse;">&lt;action
 application=&quot;bridge&quot;
 data=&quot;sofia/external/$1%$${domain}&quot;/&gt;</span></font><br>dial external endpoint:     <font face="arial, sans-serif"><span style="border-collapse: collapse;">&lt;action
 application=&quot;bridge&quot;
 data=&quot;sofia/external/$1@$${domain}&quot;/&gt;</span></font><br><br><br>another issue you might have with RTP so check the wiki for NAT config as well.<br><br>T.<br><br><div class="gmail_quote">On Sat, Sep 19, 2009 at 7:50 AM, pankaj anand <span dir="ltr">&lt;<a href="mailto:pankajanand18@gmail.com">pankajanand18@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">@Tihomir Culjaga</span><div>
<font face="arial, sans-serif"><span style="border-collapse: collapse;"><br>
</span></font></div><div><span style="font-size: 13px;"></span><font face="arial, sans-serif"><span style="border-collapse: collapse;"><ol style="margin-left: 0.3381in; direction: ltr; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt;">

 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span style="font-family: Calibri; font-size: 11pt;">HI folks, </span></p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span> </span>thanx for such a quick reply. </p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Q. what I want to
 achieve with FreeSwitch ?</p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">A: I want to enable
 the outside users ( from internet) to have video chat on peer2peer using
 freeSwitch for signaling. External Profile is being used to for this. External profile is using 5080 port. That port is forwarded on the NAT server. Users are able to connect using 5080 port. They get  registered with no issues. </p>


 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Q. where do you
 want to send calls ? </p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">A. I want to send
 call from one extension to another extension ( both extension exist on the are on public internet).
 Right now i m trying with 1000 and 1001 user available in the default
 directory.</p><div class="im"><p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><br></p>
 <li value="17" style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">What is 192.168.1.50 ? </span></li>
 </div><p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Ans: well , this is
 my domain name which is by default the local-ip address of the machine. My
 current setup is like this:</p>
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">FreeSwitch (
 192.168.1.50)
 ----&gt;NAT(122.162.153.224)--&gt;Internet&lt;----(122.80.0.180)NAT&lt;--(192.168.1.15)1001(user)</p><div class="im">
 <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"> </p>
 <li value="17" style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle; font-family: Calibri; font-size: 11pt;">
     <div style="direction: ltr;">
     <table valign="top" style="border: 1pt solid rgb(163, 163, 163); direction: ltr; border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1">
      <tbody><tr>
       <td style="border: 1pt solid rgb(163, 163, 163); padding: 4pt; vertical-align: top; width: 2.9548in;">
       <p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Where/how are
       you originating calls from ? </p>
       </td>
       <td style="border: 1pt solid rgb(163, 163, 163); padding: 4pt; vertical-align: top; width: 0.7076in;">
       <p style="margin: 0in; font-family: Calibri; font-size: 11pt;"> </p>
       </td>
      </tr>
     </tbody></table>
     </div>
 </li>
 </div><ol style="margin-left: 0.375in; direction: ltr; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt;" type="a">
  <li value="1" style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">I am using X-lite, Phoner , LinPhone to make calls. All
      these<span>  </span>phones have stun server
      enabled . </span></li>
 </ol>
 <p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">For
 the public dial plan I have added these lines in the file public.xml which is used by the external profile </p><div class="im">
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span>&lt;extension
 name=&quot;public_extensions&quot;&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>      </span>&lt;condition
 field=&quot;destination_number&quot;
 expression=&quot;^(10[01][0-9])$&quot;&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>        </span>&lt;action
 application=&quot;bridge&quot;
 data=&quot;sofia/external/$1@$${domain}&quot;/&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>        </span>&lt;action
 application=&quot;echo&quot;/&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>      </span>&lt;/condition&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>    </span>&lt;/extension&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&lt;extension
 name=&quot;echo&quot;&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>      </span>&lt;condition
 field=&quot;destination_number&quot; expression=&quot;^9996$&quot;&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>        </span>&lt;action
 application=&quot;answer&quot;/&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>        </span>&lt;action
 application=&quot;echo&quot;/&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>      </span>&lt;/condition&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span>    </span>&lt;/extension&gt;</p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"> </p>
 </div><p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">Now
 the echo calls works through the external profile. But when a call is being
 made to some other user, for example if user 1000 makes a call to the 1001 it
 reaches to the &quot;public_extensions &quot;<span> 
 </span>but it generates the error which I have already mentioned. For the
 gateway thing , not gateway is being used. </p>
 <p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;"> </p>
 <p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"> </p></ol></span></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Fri, Sep 18, 2009 at 7:41 PM, pankaj anand <span dir="ltr">&lt;<a href="mailto:pankajanand18@gmail.com" target="_blank">pankajanand18@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I m using default configuration of freeswitch.. I m not using any gateway for authentication.<div>
<br><div>in the $INSTALLDIR/conf/sip_profiles/external/ directory,  there exist only one file which example.xml , this files contains </div>

<div><br></div><div><div>&lt;include&gt;</div><div>  &lt;!--&lt;gateway name=&quot;<a href="http://asterlink.com" target="_blank">asterlink.com</a>&quot;&gt;--&gt;</div><div>  &lt;!--/// account username *required* ///--&gt;</div>

<div>  &lt;!--&lt;param name=&quot;username&quot; value=&quot;cluecon&quot;/&gt;--&gt;</div>
<div>  &lt;!--/// auth realm: *optional* same as gateway name, if blank ///--&gt;</div><div>  &lt;!--&lt;param name=&quot;realm&quot; value=&quot;<a href="http://asterlink.com" target="_blank">asterlink.com</a>&quot;/&gt;--&gt;</div>

<div>
  &lt;!--/// username to use in from: *optional* same as  username, if blank ///--&gt;</div><div>  &lt;!--&lt;param name=&quot;from-user&quot; value=&quot;cluecon&quot;/&gt;--&gt;</div><div>  &lt;!--/// domain to use in from: *optional* same as  realm, if blank ///--&gt;</div>


<div>  &lt;!--&lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://asterlink.com" target="_blank">asterlink.com</a>&quot;/&gt;--&gt;</div><div>  &lt;!--/// account password *required* ///--&gt;</div><div>  &lt;!--&lt;param name=&quot;password&quot; value=&quot;2007&quot;/&gt;--&gt;</div>


<div>  &lt;!--/// extension for inbound calls: *optional* same as username, if blank ///--&gt;</div><div>  &lt;!--&lt;param name=&quot;extension&quot; value=&quot;cluecon&quot;/&gt;--&gt;</div><div>  &lt;!--/// proxy host: *optional* same as realm, if blank ///--&gt;</div>


<div>  &lt;!--&lt;param name=&quot;proxy&quot; value=&quot;<a href="http://asterlink.com" target="_blank">asterlink.com</a>&quot;/&gt;--&gt;</div><div>  &lt;!--/// send register to this proxy: *optional* same as proxy, if blank ///--&gt;</div>


<div>  &lt;!--&lt;param name=&quot;register-proxy&quot; value=&quot;<a href="http://mysbc.com" target="_blank">mysbc.com</a>&quot;/&gt;--&gt;</div><div>  &lt;!--/// expire in seconds: *optional* 3600, if blank ///--&gt;</div>

<div>  &lt;!--&lt;param name=&quot;expire-seconds&quot; value=&quot;60&quot;/&gt;--&gt;</div>
<div>  &lt;!--/// do not register ///--&gt;</div><div>  &lt;!--&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;--&gt;</div><div>  &lt;!-- which transport to use for register --&gt;</div><div>  &lt;!--&lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;--&gt;</div>


<div>  &lt;!--How many seconds before a retry when a failure or timeout occurs --&gt;</div><div>  &lt;!--&lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;--&gt;</div><div>  &lt;!--Use the callerid of an inbound call in the from field on outbound calls via this gateway --&gt;</div>


<div>  &lt;!--&lt;param name=&quot;caller-id-in-from&quot; value=&quot;false&quot;/&gt;--&gt;</div><div>  &lt;!--extra sip params to send in the contact--&gt;</div><div>  &lt;!--&lt;param name=&quot;contact-params&quot; value=&quot;tport=tcp&quot;/&gt;--&gt;</div>


<div>  &lt;!--send an options ping every x seconds, failure will unregister and/or mark it down--&gt;</div><div>  &lt;!--&lt;param name=&quot;ping&quot; value=&quot;25&quot;/&gt;--&gt;</div><div>  &lt;!--&lt;/gateway&gt;--&gt;</div>


<div>&lt;/include&gt;</div><div><br></div><div><br></div><div>as you can see, all the lines are commented. So i m not using any gateways.</div><div><br></div><div><br></div></div><div><div></div><div><div><br>
<div class="gmail_quote">On Fri, Sep 18, 2009 at 3:43 PM, pankaj anand <span dir="ltr">&lt;<a href="mailto:pankajanand18@gmail.com" target="_blank">pankajanand18@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi folks, <div>  I m not able to make SIP calls using external profile. </div><div><br></div>
<div> i have added the following lines to the $installdir/conf/dialplan/public.xml </div>

<div><br></div><div><div>&lt;extension name=&quot;echo&quot;&gt;</div>
<div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^9996$&quot;&gt;</div><div>        &lt;action application=&quot;answer&quot;/&gt;</div><div>        &lt;action application=&quot;echo&quot;/&gt;</div>



<div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div></div><div><div>&lt;extension name=&quot;public_extensions&quot;&gt;</div><div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;</div>



<div>        &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/$1@$${domain}&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div><div><br></div><div>I m able to connect using 1000 and 1001 from public Internet.  I am able to make an echo call. </div>



<div><br></div><div><b>when i type :</b> </div><div><br></div><div>$: sofia status  profile external reg</div><div><br></div><div>It shows the list of the connected clients and their information.</div><div><br></div><div>



but when I m trying to make a call from one user to other user, it generates the following error </div><div><br></div><div><br></div><div><div>2009-09-18 15:41:45.675054 [NOTICE] switch_channel.c:602 New Channel sofia/external/<a href="mailto:1001@192.168.1.50" target="_blank">1001@192.168.1.50</a> [fcb6c23e-bdcd-41dd-b73e-df07b71252be]</div>



<div>2009-09-18 15:41:45.677063 [INFO] mod_dialplan_xml.c:315 Processing 1000-&gt;1000 in context public</div><div>2009-09-18 15:41:45.679071 [NOTICE] switch_channel.c:602 New Channel sofia/external/<a href="mailto:1000@192.168.1.50" target="_blank">1000@192.168.1.50</a> [1a537865-be53-42ce-b8f5-cc183f4f1306]</div>



<div>2009-09-18 15:41:45.688161 [ERR] sofia_reg.c:1568 No Matching gateway found</div><div>2009-09-18 15:41:45.688161 [NOTICE] sofia_reg.c:1588 Hangup sofia/external/<a href="mailto:1000@192.168.1.50" target="_blank">1000@192.168.1.50</a> [CS_CONSUME_MEDIA] [MANDATORY_IE_MISSING]</div>



<div>2009-09-18 15:41:45.688161 [INFO] mod_dptools.c:2093 Originate Failed.  Cause: MANDATORY_IE_MISSING</div><div>2009-09-18 15:41:45.689090 [NOTICE] mod_dptools.c:2125 Hangup sofia/external/<a href="mailto:1001@192.168.1.50" target="_blank">1001@192.168.1.50</a> [CS_EXECUTE] [MANDATORY_IE_MISSING]</div>



<div>2009-09-18 15:41:45.690064 [NOTICE] switch_core_session.c:1086 Session 1 (sofia/external/<a href="mailto:1001@192.168.1.50" target="_blank">1001@192.168.1.50</a>) Ended</div><div>2009-09-18 15:41:45.690064 [NOTICE] switch_core_session.c:1088 Close Channel sofia/external/<a href="mailto:1001@192.168.1.50" target="_blank">1001@192.168.1.50</a> [CS_DESTROY]</div>



<div>2009-09-18 15:41:45.692078 [NOTICE] switch_core_session.c:1086 Session 2 (sofia/external/<a href="mailto:1000@192.168.1.50" target="_blank">1000@192.168.1.50</a>) Ended</div><div>2009-09-18 15:41:45.692078 [NOTICE] switch_core_session.c:1088 Close Channel sofia/external/<a href="mailto:1000@192.168.1.50" target="_blank">1000@192.168.1.50</a> [CS_DESTROY]</div>



<div><br></div><div><br></div><div>with regards</div><div>Pankaj anand</div><div><br></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>