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;"><action
application="bridge"
data="sofia/external/$1%$${domain}"/></span></font><br>dial external endpoint: <font face="arial, sans-serif"><span style="border-collapse: collapse;"><action
application="bridge"
data="sofia/external/$1@$${domain}"/></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"><<a href="mailto:pankajanand18@gmail.com">pankajanand18@gmail.com</a>></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)
---->NAT(122.162.153.224)-->Internet<----(122.80.0.180)NAT<--(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><extension
name="public_extensions"></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><condition
field="destination_number"
expression="^(10[01][0-9])$"></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><action
application="bridge"
data="sofia/external/$1@$${domain}"/></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><action
application="echo"/></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span></condition></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span></extension></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;"><extension
name="echo"></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><condition
field="destination_number" expression="^9996$"></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><action
application="answer"/></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span><action
application="echo"/></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span></condition></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span> </span></extension></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 "public_extensions "<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"><<a href="mailto:pankajanand18@gmail.com" target="_blank">pankajanand18@gmail.com</a>></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><include></div><div> <!--<gateway name="<a href="http://asterlink.com" target="_blank">asterlink.com</a>">--></div><div> <!--/// account username *required* ///--></div>
<div> <!--<param name="username" value="cluecon"/>--></div>
<div> <!--/// auth realm: *optional* same as gateway name, if blank ///--></div><div> <!--<param name="realm" value="<a href="http://asterlink.com" target="_blank">asterlink.com</a>"/>--></div>
<div>
<!--/// username to use in from: *optional* same as username, if blank ///--></div><div> <!--<param name="from-user" value="cluecon"/>--></div><div> <!--/// domain to use in from: *optional* same as realm, if blank ///--></div>
<div> <!--<param name="from-domain" value="<a href="http://asterlink.com" target="_blank">asterlink.com</a>"/>--></div><div> <!--/// account password *required* ///--></div><div> <!--<param name="password" value="2007"/>--></div>
<div> <!--/// extension for inbound calls: *optional* same as username, if blank ///--></div><div> <!--<param name="extension" value="cluecon"/>--></div><div> <!--/// proxy host: *optional* same as realm, if blank ///--></div>
<div> <!--<param name="proxy" value="<a href="http://asterlink.com" target="_blank">asterlink.com</a>"/>--></div><div> <!--/// send register to this proxy: *optional* same as proxy, if blank ///--></div>
<div> <!--<param name="register-proxy" value="<a href="http://mysbc.com" target="_blank">mysbc.com</a>"/>--></div><div> <!--/// expire in seconds: *optional* 3600, if blank ///--></div>
<div> <!--<param name="expire-seconds" value="60"/>--></div>
<div> <!--/// do not register ///--></div><div> <!--<param name="register" value="false"/>--></div><div> <!-- which transport to use for register --></div><div> <!--<param name="register-transport" value="udp"/>--></div>
<div> <!--How many seconds before a retry when a failure or timeout occurs --></div><div> <!--<param name="retry-seconds" value="30"/>--></div><div> <!--Use the callerid of an inbound call in the from field on outbound calls via this gateway --></div>
<div> <!--<param name="caller-id-in-from" value="false"/>--></div><div> <!--extra sip params to send in the contact--></div><div> <!--<param name="contact-params" value="tport=tcp"/>--></div>
<div> <!--send an options ping every x seconds, failure will unregister and/or mark it down--></div><div> <!--<param name="ping" value="25"/>--></div><div> <!--</gateway>--></div>
<div></include></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"><<a href="mailto:pankajanand18@gmail.com" target="_blank">pankajanand18@gmail.com</a>></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><extension name="echo"></div>
<div> <condition field="destination_number" expression="^9996$"></div><div> <action application="answer"/></div><div> <action application="echo"/></div>
<div> </condition></div><div> </extension></div><div><br></div></div><div><div><extension name="public_extensions"></div><div> <condition field="destination_number" expression="^(10[01][0-9])$"></div>
<div> <action application="bridge" data="sofia/external/$1@$${domain}"/></div><div> </condition></div><div> </extension></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->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>