[Freeswitch-users] How to check hangup cause before try next route in mod_lcr

2009-07-10 Thread Dome Charoenyost
Dear all,

 I'm testing mod_lcr.
i found example in wiki
  action application=lcr data=$1/
  action application=bridge data=${lcr_auto_route}/
If i want to use ${lcr_route_1} and ${lcr_route_2} What's best way to
check hangup cause before try lcr_route_2 ?


BG

Dome C.

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to check hangup cause before try next route in mod_lcr

2009-07-10 Thread Mathieu Rene
action application=set data=hangup_after_bridge=true /

That'll make your dialplan stop if the call is hung up from the B-leg.

Math

On 10-Jul-09, at 12:10 PM, Dome Charoenyost wrote:

 Dear all,

 I'm testing mod_lcr.
 i found example in wiki
  action application=lcr data=$1/
  action application=bridge data=${lcr_auto_route}/
 If i want to use ${lcr_route_1} and ${lcr_route_2} What's best way to
 check hangup cause before try lcr_route_2 ?


 BG

 Dome C.

 ___
 Freeswitch-users mailing list
 Freeswitch-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org


___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] How to check hangup cause before try next route in mod_lcr

2009-07-10 Thread Dome Charoenyost
2009/7/10 Mathieu Rene mrene_li...@avgs.ca:
 action application=set data=hangup_after_bridge=true /

thanks.

let's me ask some question.
i want to provide callback solution.
1. customer call to FS
2.  FS hangup call and check balance (by callerid)
3. Make call to customer number
4. customer answer call and input destination
 this step  when B-leg hangup (Or A-leg put *) customer can input
other number until A-leg Hangup

Now my solution use javascripts. but someone tell me JS not good for
handle call. So now i testing mod_lcr and nibblebill

Can someone show me dialplan for do like that.

Best Regards.

Dome C.



 That'll make your dialplan stop if the call is hung up from the B-leg.

 Math

 On 10-Jul-09, at 12:10 PM, Dome Charoenyost wrote:

 Dear all,

         I'm testing mod_lcr.
 i found example in wiki
      action application=lcr data=$1/
      action application=bridge data=${lcr_auto_route}/
 If i want to use ${lcr_route_1} and ${lcr_route_2} What's best way to
 check hangup cause before try lcr_route_2 ?


 BG

 Dome C.

 ___
 Freeswitch-users mailing list
 Freeswitch-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org


 ___
 Freeswitch-users mailing list
 Freeswitch-users@lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org


___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org