<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">@Tihomir Culjaga</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><span class="Apple-style-span" style="font-size: 13px; "></span><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><ol style="margin-left:.3381in;direction:ltr;unicode-bidi:embed;margin-top:
 0in;margin-bottom:0in;font-family:Calibri;font-size:11.0pt">
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt"><span style="font-family:Calibri;font-size:11.0pt">HI folks, </span></p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes"> </span>thanx for such a quick reply. </p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt">Q. what I want to
 achieve with FreeSwitch ?</p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt">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:11.0pt"> </p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt">Q. where do you
 want to send calls ? </p>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt">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><p style="margin:0in;font-family:Calibri;font-size:11.0pt"><br></p>
 <li value="17" style="margin-top:0;margin-bottom:0;vertical-align:middle"><span style="font-family:Calibri;font-size:11.0pt">What is 192.168.1.50 ? </span></li>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt">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:11.0pt">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>
 <p style="margin:0in;font-family:Calibri;font-size:11.0pt"> </p>
 <li value="17" style="margin-top:0;margin-bottom:0;vertical-align:middle;
     font-family:Calibri;font-size:11.0pt">
     <div style="direction:ltr">
     <table border="1" cellpadding="0" cellspacing="0" valign="top" style="direction:
      ltr;border-collapse:collapse;border-style:solid;border-color:#A3A3A3;
      border-width:1pt">
      <tbody><tr>
       <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt;
       vertical-align:top;width:2.9548in;padding:4pt 4pt 4pt 4pt">
       <p style="margin:0in;font-family:Calibri;font-size:11.0pt">Where/how are
       you originating calls from ? </p>
       </td>
       <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt;
       vertical-align:top;width:.7076in;padding:4pt 4pt 4pt 4pt">
       <p style="margin:0in;font-family:Calibri;font-size:11.0pt"> </p>
       </td>
      </tr>
     </tbody></table>
     </div>
 </li>
 <ol type="a" style="margin-left:.375in;direction:ltr;unicode-bidi:embed;
  margin-top:0in;margin-bottom:0in;font-family:Calibri;font-size:11.0pt">
  <li value="1" style="margin-top:0;margin-bottom:0;vertical-align:middle"><span style="font-family:Calibri;font-size:11.0pt;font-family:Calibri;
      font-size:11.0pt">I am using X-lite, Phoner , LinPhone to make calls. All
      these<span style="mso-spacerun:yes">  </span>phones have stun server
      enabled . </span></li>
 </ol>
 <p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">For
 the public dial plan I have added these lines in the file public.xml which is used by the external profile </p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes"> </span>&lt;extension
 name=&quot;public_extensions&quot;&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">      </span>&lt;condition
 field=&quot;destination_number&quot;
 expression=&quot;^(10[01][0-9])$&quot;&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">        </span>&lt;action
 application=&quot;bridge&quot;
 data=&quot;sofia/external/$1@$${domain}&quot;/&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">        </span>&lt;action
 application=&quot;echo&quot;/&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">      </span>&lt;/condition&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">    </span>&lt;/extension&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt">&lt;extension
 name=&quot;echo&quot;&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">      </span>&lt;condition
 field=&quot;destination_number&quot; expression=&quot;^9996$&quot;&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">        </span>&lt;action
 application=&quot;answer&quot;/&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">        </span>&lt;action
 application=&quot;echo&quot;/&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">      </span>&lt;/condition&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"><span style="mso-spacerun:yes">    </span>&lt;/extension&gt;</p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">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 style="mso-spacerun:yes"> 
 </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;margin-left:.375in;font-family:Calibri;font-size:11.0pt"> </p>
 <p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt"> </p></ol></span></font><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">pankajanand18@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 class="h5"><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="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>