Hi Mike,<br><br>Unfortunately this doesn&#39;t seem to solve my problem.  Here is my extension again:<br><br>&lt;extension name=&quot;mysocket&quot;&gt;<br>         &lt;condition field=&quot;destination_number&quot; expression=&quot;^242.*&quot; &gt;<br>

            &lt;action application=&quot;socket&quot; data=&quot;<a href="http://192.168.50.67:10000" target="_blank">192.168.50.67:10000</a> full&quot; /&gt;<br>        &lt;/condition&gt;<br>&lt;/extension&gt;<br><br>I&#39;ve copied it now under:<br>
<br>
/user/local/freeswitch/conf/dialplan/default<br>/user/local/freeswitch/conf/dialplan/public<br><br>The different dial strings i tried:<br><br>&quot;{origination_caller_id_number=120003}sofia/internal/<a href="mailto:242424@192.168.50.67">242424@192.168.50.67</a> &amp; park()&quot;<br>
&quot;{origination_caller_id_number=120003}sofia/internal/<a href="mailto:242424@192.168.50.67">242424@192.168.50.67</a>&quot;<br>&quot;{origination_caller_id_number=120003}sofia/internal/242424&quot;<br>&quot;{origination_caller_id_number=120003}sofia/internal/242424%192.168.50.62&quot;<br>
<br>My goal: have the call captured by the above extension and redirected to a server socket running at <a href="http://192.168.50.67:10000">192.168.50.67:10000</a>.<br><br>Any thought?<br><br>Max.<br><br><div class="gmail_quote">
On Fri, Jun 19, 2009 at 5:22 PM, Max Bridgewater <span dir="ltr">&lt;<a href="mailto:max.bridgewater@gmail.com" target="_blank">max.bridgewater@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 don&#39;t have my settings to try it right now. Still i have a question. If it&#39;s the way you describe it, why wouldn&#39;t sofia/extenal/foo@bar solve the problem?  I think i even copied the extension both to the default directory. But i will confirm and let you know.<br>

<font color="#888888">
<br>Max.</font><div><div></div><div><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 4:55 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</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;">
Now I feel stupid because I didn&#39;t read your original post closely enough.  <br><br>You&#39;ve defined your &quot;mysocket&quot; extension in the &quot;public&quot; context but when you do an origination with sofia/internal/foo@bar it will use the &quot;default&quot; context. I think the quickest way to handle this is to create a copy of your mysocket.xml file and put it in conf/dialplan/default/ and be done with it.<br>


<font color="#888888">
<br>-MC</font><div><div></div><div><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 1:19 PM, Max Bridgewater <span dir="ltr">&lt;<a href="mailto:max.bridgewater@gmail.com" target="_blank">max.bridgewater@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;">
Mike,<br><br>Here we go: <a href="http://pastebin.freeswitch.org/9447" target="_blank">http://pastebin.freeswitch.org/9447</a>. Doesn&#39;t look very XML to me though.<br><font color="#888888"><br>Max.</font><div><div></div>



<div><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 2:10 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</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;">Max,<br>that pastebin failed miserably as none of the xml shows up. can you try again or use our <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a> site?<br>




<font color="#888888">-MC</font><div><div></div><div><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 12:58 PM, Max Bridgewater <span dir="ltr">&lt;<a href="mailto:max.bridgewater@gmail.com" target="_blank">max.bridgewater@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 Mike,<br><br>It&#39;s pasted here: <a href="http://pastebin.ca/1466521" target="_blank">http://pastebin.ca/1466521</a><br>





<br>Thanks,<br><font color="#888888">Max.</font><div><div></div><div><br><br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 11:43 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</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;">Can you turn on debugging (F8) and capture all the output after your originate? Put it into a pastebin. (<a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a>)<br>






-MC<br><br><div class="gmail_quote"><div><div></div><div>On Fri, Jun 19, 2009 at 10:14 AM, Max Bridgewater <span dir="ltr">&lt;<a href="mailto:max.bridgewater@gmail.com" target="_blank">max.bridgewater@gmail.com</a>&gt;</span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Any help our there?<br>
<br>
I&#39;m still trying to get this piece working. Essentially what i wan to
do is, when a call comes in (from registered devices as well as
unregistered devices), notify the my server socket. Somehow it&#39;s not
working. The change i made compared to the standard Freeswitch
settings are the following:<br><br>1)  Added following extension that  in
/usr/local/freeswitch/conf/dialplan/public/mysocket.xml:<br>
<br>
<br>
&lt;include&gt;<br>
       &lt;extension name=&quot;mysocket&quot;&gt;<br>
         &lt;condition field=&quot;destination_number&quot; expression=&quot;^242.*$&quot; &gt;<br>
            &lt;action application=&quot;socket&quot; data=&quot;<a href="http://192.168.50.67:10000/" target="_blank">192.168.50.67:10000</a> full&quot; /&gt;<br>
        &lt;/condition&gt;<br>
    &lt;/extension&gt;<br>
&lt;/include&gt;<br><br>2) Changed file: /usr/local/freeswitch/conf/autoload_configs/event_socket.conf to:<br><br>&lt;configuration name=&quot;event_socket.conf&quot; description=&quot;Socket Client&quot;&gt;<br>  &lt;settings&gt;<br>









    &lt;param name=&quot;nat-map&quot; value=&quot;false&quot;/&gt;<br>    &lt;param name=&quot;listen-ip&quot; value=&quot;0.0.0.0&quot;/&gt;<br>    &lt;param name=&quot;listen-port&quot; value=&quot;8021&quot;/&gt;<br>








    &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>
    &lt;!--&lt;param name=&quot;apply-inbound-acl&quot; value=&quot;lan&quot;/&gt;--&gt;<br>  &lt;/settings&gt;<br>&lt;/configuration&gt;<br><br><br>I
noticed that with this extension, all calls received from external
providers  (e.g. Les.net, Gafachi, etc.) are indeed forwarded to my
socket. But calls from registered devices and initiated using the
socket interface are not forwarded. Is there something that need to be
changed in the profiles?<br>
<br>or is something wrong with my dial string? {origination_caller_id_number=12000}sofia/internal/<a href="mailto:242424@192.168.1.62" target="_blank">242424@192.168.1.62</a>. <br>
<br>
In the logs, i cannot see that that my extension is being matched.<br>
<br>
Any idea,<br><font color="#888888">
<br>
Max.
</font><br></div></div>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
</div></div></blockquote></div><br>