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

Joseph Waite joelists at tm.net.uk
Thu Jul 13 21:59:04 UTC 2017


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


More information about the FreeSWITCH-users mailing list