[Freeswitch-users] Dialplan conditions

David Villasmil david.villasmil.work at gmail.com
Thu May 18 14:49:08 UTC 2017


You just need an english checker :)
On Thu, May 18, 2017 at 4:46 PM Joel Serrano <joel at gogii.net> wrote:

> Arrrrg, I see a typo more than a syntax problem... Does sublime have typo
> checkers? :P
>
> On Thu, May 18, 2017 at 7:41 AM, Raúl Alexis Betancor Santana <
> rbetancor at gmail.com> wrote:
>
>> I'll need to add the syntax check to my sublime editor
>>
>> 2017-05-18 15:41 GMT+01:00 Raúl Alexis Betancor Santana <
>> rbetancor at gmail.com>:
>>
>>> :-P
>>>
>>> 2017-05-18 15:38 GMT+01:00 David Villasmil <
>>> david.villasmil.work at gmail.com>:
>>>
>>>> "expression" is with 2 "s"... and that works for me
>>>>>>>>
>>>> Regards,
>>>>
>>>> David Villasmil
>>>> email: david.villasmil.work at gmail.com
>>>> phone: +34669448337 <+34%20669%2044%2083%2037>
>>>>
>>>> On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana <
>>>> rbetancor at gmail.com> wrote:
>>>>
>>>>>
>>>>> Now that I have solved the problem of loading the dialplan from the
>>>>> xml files ... I get to the point that it doesn't work as I expect.
>>>>>
>>>>> This is the only extension defined:
>>>>>
>>>>> <context name="default">
>>>>>  <extension name="t38_transcode">
>>>>>   <condition field="sip_h_X-T38-Transcode" expresion="^True"/>
>>>>>   <condition field="destination_number"
>>>>> expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
>>>>>     <action application="set" data="fax_enable_t38=true"/>
>>>>>     <action application="set" data="sip_execute_on_image=t38_gateway
>>>>> peer nocng"/>
>>>>>     <action application="bridge"
>>>>> data="sofia/external/$1$2 at proxy.server.tld"/>
>>>>>   </condition>
>>>>>  </extension>
>>>>> </context>
>>>>>
>>>>> I expect not to call the bridge app if there is no T38-Transcode
>>>>> header on the incoming INVITE request and if it is present ... that $1$2
>>>>> will be filled ... but what I get on the traces is that any call fires the
>>>>> call to the bridge app and also that the dialled number is exactly $1$2 ...
>>>>> instead of the values they should have.
>>>>> I'm loading a minimal setup of modules, did I need to load someother
>>>>> one to get the conditions and the expresions to work on this simple
>>>>> dialplan?
>>>>>
>>>>> My modules.conf.xml file:
>>>>>
>>>>> <configuration name="modules.conf" description="Modules">
>>>>>  <modules>
>>>>>
>>>>>    <load module="mod_syslog"/>
>>>>>    <load module="mod_logfile"/>
>>>>>
>>>>>    <load module="mod_event_socket"/>
>>>>>    <load module="mod_sofia"/>
>>>>>    <load module="mod_commands"/>
>>>>>    <load module="mod_dptools"/>
>>>>>    <load module="mod_spandsp"/>
>>>>>    <load module="mod_tone_stream"/>
>>>>>    <load module="mod_db"/>
>>>>>    <load module="mod_xml_rpc"/>
>>>>>    <load module="mod_expr"/>
>>>>>    <load module="mod_dialplan_xml"/>
>>>>>
>>>>>  </modules>
>>>>> </configuration>
>>>>>
>>>>> Best regards
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170518/c88461ac/attachment-0001.html 


More information about the FreeSWITCH-users mailing list