[Freeswitch-users] piped failover doesn't work in dialplan, but works from console

Brian West brian at freeswitch.org
Fri Feb 20 01:10:51 MSK 2015


So you get what I mean about a quoted list, Look below, its showing it its
parsing variable  [fail_on_single_reject]=[CALL_REJECTED] <-- Notice it
says only CALL_REJECTED.

These three are the same from FS_CLI:

originate
{fail_on_single_reject='CALL_REJECTED\,NO_ANSWER'}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED
999

originate
{fail_on_single_reject='CALL_REJECTED,NO_ANSWER'}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED
999

originate
{fail_on_single_reject=CALL_REJECTED\,NO_ANSWER}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED
999

this is not:

originate
{fail_on_single_reject=CALL_REJECTED,NO_ANSWER}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED
999
You also have to be VERY careful when using ESL with say perl for example,
You may have to quad escape the commas or various other elements to get
thru the entire gambit of processing to finally arrive at FreeSWITCH with
the proper formatting.


On Thu, Feb 19, 2015 at 2:35 PM, Mi Ke <mi.ke at null.net> wrote:

> Hello Brian,
>
> Thank you for your response.
>
> The idea was taken here:
> https://wiki.freeswitch.org/wiki/Variable_fail_on_single_reject
>
> Commas in the list are not working either, even in console (where colons
> do):
>
>  freeswitch at internal> originate
> {fail_on_single_reject=CALL_REJECTED,NO_ANSWER}error/NO_ANSWER|error/USER_BUSY|error/CALL_REJECTED
> 999 <---- should be no_answer
> -ERR CALL_REJECTED
> 2015-02-19 20:29:34.377089 [DEBUG] switch_ivr_originate.c:2100 Parsing
> global variables
> 2015-02-19 20:29:34.377089 [DEBUG] switch_event.c:1688 Parsing variable
> [fail_on_single_reject]=[CALL_REJECTED]
> 2015-02-19 20:29:34.377089 [NOTICE] switch_ivr_originate.c:2732 Cannot
> create outgoing channel of type [error] cause: [NO_ANSWER]
> 2015-02-19 20:29:34.377089 [DEBUG] switch_ivr_originate.c:3720 Originate
> Resulted in Error Cause: 19 [NO_ANSWER]
> 2015-02-19 20:29:34.377089 [NOTICE] switch_ivr_originate.c:2732 Cannot
> create outgoing channel of type [error] cause: [USER_BUSY]
> 2015-02-19 20:29:34.377089 [DEBUG] switch_ivr_originate.c:3720 Originate
> Resulted in Error Cause: 17 [USER_BUSY]
> 2015-02-19 20:29:34.377089 [NOTICE] switch_ivr_originate.c:2732 Cannot
> create outgoing channel of type [error] cause: [CALL_REJECTED]
>
> _________________________________________________________________________
> 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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150219/a1a39db6/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list