Call transfer with bind_digit_action?
During a call I want to type a extension, for example 20, and transfer the current call to this extension. How can I realize that with bind_digit_action? Any help would be appreciated. Thank you Paul
Hi Freeswitchers. I am running "FreeSWITCH Version 1.5.15b+git~20141212T030103Z~e1cb0e8632~64bit (git e1cb0e8 2014-12-12 03:01:03Z 64bit)” I have the following actions in an extension being executed: <action application="info"/> <action application="bind_digit_action" data="start_echo,##,exec:info,both,self"/> <action application="digit_action_set_realm" data="start_echo"/> <action application="delay_echo" data="10"/> For the ‘info’ action at the top, I see the normal stuff printed in the console log: EXECUTE sofia/portaprod/27878881000@10.10.10.10 info() 2014-12-15 20:52:06.137537 [INFO] mod_dptools.c:1647 CHANNEL_DATA: Channel-State: [CS_EXECUTE] Channel-Call-State: [ACTIVE] Channel-State-Number: [4] Channel-Name: [sofia/portaprod/27878881000@10.17.180.204] Unique-ID: [8218a229-562d-4706-85a2-988d2bae0041] <cut cut> Then follows the ‘bind_digit_action’ and ‘digit_action_set_realm’ to bind ‘##’ to executing the ‘info’ app. The ‘echo' application at the very bottom works as per normal and I get my audio echoed back. When I send “#9” - I get this in the log: 2014-12-15 21:13:32.777537 [DEBUG] switch_rtp.c:6045 RTP RECV DTMF #:800 2014-12-15 21:13:33.637537 [DEBUG] switch_rtp.c:6045 RTP RECV DTMF 9:800 2014-12-15 21:13:33.637537 [DEBUG] mod_dptools.c:132 sofia/portaprod/27878881000@10.10.10.10 Digit NOT match binding [#9] So all normal. But here my issue. When I send ‘##’ - I only see this in the log: 2014-12-15 21:14:58.817537 [DEBUG] switch_rtp.c:6045 RTP RECV DTMF #:800 2014-12-15 21:14:59.317537 [DEBUG] switch_rtp.c:6045 RTP RECV DTMF #:800 2014-12-15 21:14:59.317537 [DEBUG] mod_dptools.c:188 sofia/portaprod/27878881000@10.10.10.10 Digit match binding [exec:info][both] 2014-12-15 21:14:59.317537 [DEBUG] switch_core_session.c:1188 Send signal sofia/portaprod/27878881000@10.10.10.10 [BREAK] So its finding a match, but the app to be executed never does so. If it had, I would have seen the above ‘info’ stuff printed to the console. I actually want the call transferred to another extension when the user enters ‘##’ - but that similarly does not happen. It seems I can’t get any action to actually be executed. So what do I need to set first, such that the specified ‘action’ gets executed? Hope someone can help me out here. Regards Keith
participants (2)
-
Keith Laaks
-
Paul Atreides