[Freeswitch-users] Manipulating variables & doing a for loop in dialplan

Luis Jimenez ljjimenez at gmail.com
Thu Jul 13 22:04:02 UTC 2017


Regular expression, lua, mod_xml_curl


> On Jul 13, 2017, at 17:59, Joseph Waite <joelists at tm.net.uk> wrote:
> 
> Hi Guys
> 
> Been googling but can’t really find anything on how to do what I need.
> 
> I receive the following in a variable sip_redirect_contact_<index>
> 
> <sip:441554555666 at 185.35.228.48:5060>;src_number=441554333444;q=1.00
> 
> I need to pull out the 441554333444 after src_number= and before th ;
> 
> How would I achieve this? 
> 
> Also is there any way to do a looping dial plan, that will execute a section of dial plan for each <index>
> 
> So I would have a block of xml that would run for each <index> from the sip_redirect_contact.
> 
> So for each sip_redirect_contact would execute a block of xml for each result until the bridge application connected a b-leg
> 
> 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



More information about the FreeSWITCH-users mailing list