<div dir="ltr">that context line is not necessary, btw. point is you need the section:<div><br></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div><document type="freeswitch/xml"></div><div> <section name="dialplan" description="RE Dial Plan For FreeSwitch"></div></div><div><div> <extension name="local_call"></div><div> <condition field="destination_number" expression="^(10..)$"></div><div> <action application="bridge" data="user/$1"/></div><div> <action application="hangup"/></div><div> </condition></div><div> </extension></div></div><div><section/><br></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=4df90edb-91ac-4790-ab16-df30e006ebd8"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
<br><div class="gmail_quote">On Tue, May 16, 2017 at 6:33 PM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok i've looked at the source code for mod_dialplan and in your xml, you need something like:<div><br></div><div><div><?xml version="1.0" encoding="utf-8"?></div><div><document type="freeswitch/xml"><br></div><div> <section name="dialplan" description="RE Dial Plan For FreeSwitch"></div><div><br></div><div> <context name="default"></div><div><br></div><div> <extension name="local_call"></div><div> <condition field="destination_number" expression="^(10..)$"></div><div> <action application="bridge" data="user/$1"/></div><div> <action application="hangup"/></div><div> </condition></div><div> </extension></div><div><br></div><div><section/this works for me</div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=7da0b7ec-1d96-4c01-b2e0-7e5935f9e361"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_-6992153159051112972gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank">+34669448337</a></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Tue, May 16, 2017 at 5:26 PM, Raúl Alexis Betancor Santana <span dir="ltr"><<a href="mailto:rbetancor@gmail.com" target="_blank">rbetancor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, I think the whole point is that I don't undestand how the dialplan works.<div><br></div><div>I started from 0 ... now on the sofia.conf.xml I have this:</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><configuration name="sofia.conf" description="sofia Endpoint">
</span><br>
<br> <global_settings>
<br> <param name="log-level" value="0"/>
<br> <!-- <param name="auto-restart" value="false"/> -->
<br> <param name="debug-presence" value="0"/>
<br> </global_settings>
<br>
<br> <profiles>
<br> <profile name="fax">
<br> <gateways>
<br> <X-PRE-PROCESS cmd="include" data="../gateways/*.xml"/>
<br> </gateways>
<br>
<br> <domains>
<br> <domain name="all" alias="false" parse="false"/>
<br> </domains>
<br>
<br> <settings>
<br> <param name="debug" value="0"/>
<br> <param name="shutdown-on-fail" value="true"/>
<br> <param name="sip-trace" value="no"/>
<br> <param name="sip-capture" value="yes"/>
<br> <param name="capture-server" value="udp:$${homer_ip}:$${hom<wbr>er_port};hep=3;capture_id=2001<wbr>"/>
<br> <param name="rfc2833-pt" value="101"/>
<br> <!--<param name="enable-rfc-5626" value="true"/> -->
<br> <br> <param name="t38-trace" value="true"/>
<br> <param name="dialplan" value="XML"/> <br>
<br> <param name="context" value="incoming"/>
<br>
<br> <param name="dtmf-duration" value="2000"/>
<br> <param name="codec-prefs" value="PCMU"/>
<br> <param name="disable-hold" value="true"/>
<br>
<br> <param name="rtp-timer-name" value="soft"/>
<br> <param name="local-network-acl" value="localnet.auto"/>
<br> <param name="manage-presence" value="false"/>
<br>
<br> <param name="inbound-codec-negotiatio<wbr>n" value="generous"/>
<br> <param name="nonce-ttl" value="60"/>
<br> <param name="auth-calls" value="false"/>
<br> <param name="disable-register" value="true"/>
<br>
<br> <param name="inbound-late-negotiation<wbr>" value="false"/>
<br> <param name="inbound-zrtp-passthru" value="false"/>
<br>
<br> <param name="sip-port" value="5060"/>
<br> <param name="rtp-ip" value="$${sofia_ip}"/>
<br> <param name="sip-ip" value="$${sofia_ip}"/>
<br> <param name="ext-rtp-ip" value="$${sofia_ip}"/>
<br> <param name="ext-sip-ip" value="$${sofia_ip}"/>
<br>
<br> <param name="rtp-timeout-sec" value="300"/>
<br> <param name="rtp-hold-timeout-sec" value="1800"/>
<br>
<br> <param name="tls" value="false"/>
<br> <param name="tls-only" value="false"/>
<br> <param name="tls-bind-params" value="transport=tls"/>
<br> <param name="tls-sip-port" value="5061"/>
<br> <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) -->
<br> <param name="tls-cert-dir" value="$${base_dir}/conf/ssl"/<wbr>>
<br> <param name="tls-passphrase" value=""/>
<br> <param name="tls-verify-date" value="true"/>
<br> <!-- set to 'in' to only verify incoming connections, 'out' to only verify outgoing connections, 'all' to verify all connections, also 'in_subjects', 'out_subjects' and 'all_subjects' for subject validation. Multiple policies can be split with a '|' pipe -->
<br> <param name="tls-verify-policy" value="none"/>
<br> <param name="tls-verify-depth" value="2"/>
<br> <!-- If the tls-verify-policy is set to subjects_all or subjects_in this sets which subjects are allowed, multiple subjects can be split with a '|' pipe -->
<br> <param name="tls-verify-in-subjects" value=""/>
<br> <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
<br> <param name="tls-version" value="tlsv1"/>
<br> </settings>
<br> </profile>
<br> </profiles>
<br>
<br></configuration><br></span></div><div><br></div><div><br></div><div>Then on the t38_transconde.xml file I have this.</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><include>
</span><br><context name="incoming">
<br><extension name="t38_transcode">
<br><span> <condition field="destination_number" expresion="^(\+1|1)?([2-9]\d\d<wbr>[2-9]\d{6})$">
<br> <action application="set" data="fax_enable_t38=true"/>
<br></span><span> <action application="set" data="sip_execute_on_image=t38<wbr>_gateway peer nocng"/> <br></span> <action application="bridge" data="sofia/external/$1$2@$${e<wbr>xternal_sip_proxy}"/>
<br> </condition>
<br></extension>
<br></context>
<br></include><br></span></div><div><br></div><div><br></div><div>I could see on the /var/log/freeswitch/freeswitch<wbr>.xml.fsxml file that the t38_transcode.xml file its included ... but still get the same error on on the console, so something terrible wrong I'm missing here ... :-(</div><div><br></div><div>Also ... it's possible to directly send the calls sofia/$1$2@$${external} ? ... I mean, sending the call directly to a URI, with username/password and so on ... instead of having to define a profile for it.</div><div><br></div></div><div class="m_-6992153159051112972HOEnZb"><div class="m_-6992153159051112972h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-16 16:13 GMT+01:00 David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.co<wbr>m</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, you may be sending it to the right ports, but the profile attached to that port must have the context set to the correct dialplan.<div><br></div><div>I just did exactly what you're doing and i also got "No Route, Aborting"</div><div><br></div><div>I've never seen this type of "dialplan" value, tbh</div><span><div><br></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:10.4px"><param name="dialplan" value="XML:/etc/freeswitch/</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:10.4px">dia<wbr>lplans/t38_transcode.xml"/></span><br></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:10.4px"><br></span></div></span><div class="gmail_extra"><br clear="all"><div><div class="m_-6992153159051112972m_3301950501809727782m_-7818004681870663459gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank">+34669448337</a></div></div></div></div><div><div class="m_-6992153159051112972m_3301950501809727782h5">
<br><div class="gmail_quote">On Tue, May 16, 2017 at 3:30 PM, Raúl Alexis Betancor Santana <span dir="ltr"><<a href="mailto:rbetancor@gmail.com" target="_blank">rbetancor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Only one profile defined on the sofia.conf.xml and I'm sending the traffict to the wright ports, if not I whould get the logs on the console, as that are the only ports enabled.</div><div class="m_-6992153159051112972m_3301950501809727782m_-7818004681870663459HOEnZb"><div class="m_-6992153159051112972m_3301950501809727782m_-7818004681870663459h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-16 14:22 GMT+01:00 David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.co<wbr>m</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take a look at your profile, it should be listening on the port you're sending to, and must have the context parameter set to your dialplan name.<br><div class="gmail_quote"><div><div class="m_-6992153159051112972m_3301950501809727782m_-7818004681870663459m_5284936169279541839h5"><div dir="ltr">On Tue, May 16, 2017 at 3:15 PM Raúl Alexis Betancor Santana <<a href="mailto:rbetancor@gmail.com" target="_blank">rbetancor@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-6992153159051112972m_3301950501809727782m_-7818004681870663459m_5284936169279541839h5"><div dir="ltr"><br><div>Hi all, till now I'm been working with pre-made setup files for FS, and now I'm trying to get a deep knowleadge of how the dialplan works.</div><div><br></div><div>So I modifed my autoload_configs/sofia.conf.xm<wbr>l file and changed my dialplan param to something like this:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><param name="dialplan" value="XML:/etc/freeswitch/dia<wbr>lplans/t38_transcode.xml,inlin<wbr>e:socket:<a href="http://127.0.0.1:8022" target="_blank">127.0.0.1:8022</a> async full"/></span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div>The Idea is that it loads another .xml file especific task and also use a dialplan throught a socket to a daemon that handle the rest.</div><div><br></div><div>On my t38_transcode.xml file ... very simple:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><extension name="t38_transcode"></span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"></span> </span><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><condition field="sip_h_X-T38-Transcode" expresion="^True"/></span><br></span><span style="font-family:monospace"> <condition field="destination_number" expresion="^(\+1|1)?([2-9]\d\d<wbr>[2-9]\d{6})$"> </span></div><div><span style="font-family:monospace"> <action application="set" data="fax_enable_t38=true"/> </span></div><div><span style="font-family:monospace"> </span><span style="font-family:monospace"><action application="set" data="t38_trace=true"/> </span><span style="font-family:monospace"><br> <action application="set" data="sip_execute_on_image=t38<wbr>_gateway peer nocng"/> <br> <action application="bridge" data="sofia/external/$1$2@prox<wbr>y.server.tld"/>
<br> </condition>
<br></extension><br></span></div><div><br></div><div>But If I fire a call to FS like [number]@[FS_IP] from a sip testing client I get</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(24,178,24)">[INFO] switch_core_state_machine.c:31<wbr>1 No Route, Aborting</span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(24,178,24)"><br></span></span></div><div>What I'm doing wrong here?</div><div><br></div><div>My target its just I want to ANY call that came in with a SIP header of X-T39-Transcode=True (market by a sip proxy elsewhere on the net) just do a T38->Ulaw transcoding saving the T38 trace, so I could inspect it later.</div><div>The rest of calls coming in ... as they don't have the sip-header should end on other app.</div><div><br></div><div>For doing the testing I disabled the socket_inline part of the dialplan string, so it have only this:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><param name="dialplan" value="XML:/etc/freeswitch/dia<wbr>lplans/t38_transcode.xml"/></span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div><div>Did I miss something? ... or maybe missundestood who the xml dialplan works ?</div></div></div></div></div>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=b8c4d520-ede6-4e09-ab03-a911f0befb0f"><font color="#ffffff" size="1">ᐧ</font></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>