Hello folks, ### call pickup I am trying call pickup for incoming calls by intercept function, its not working , am i missing something ? <extension name="group-intercept"> <condition field="destination_number" expression="^08$"> <action application="answer"/> <action application="set" data="intercept_unbridged_only=true"/> <action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/${callgroup})}"/> <action application="sleep" data="2000"/> </condition> </extension> ### collecting DTMF digits Is there any method to collect digits by a variable clause ? Suppose i have a ivr playing and user inputs digits , i want to collect the dtmf digits and send it to a different application where that digits will be used for routing purpose. Any ideas ! ### routing via hangup_cause was trying to create a routing rule to to route calls by accounting to the hangup causes, I have written below syntax but it fails to give the cause code to the varriable for routing. <extension name="refer"> <condition field="destination_number" expression="^1234$"> <action application="bridge" data="sofia/external/1234@X.X.X.X"/> <action application="set" data="hangup_after_bridge=false"/> <action application="set" data="continue_on_fail=true"/> <action application="log" data="1 B-leg hangup cause: ${bridge_hangup_cause}"/> <action application="transfer" data="${bridge_hangup_cause} XML conbridge"/> </condition> </extension> <extension name="no user"> <condition field="destination_number" expression="^(NO_USER_RESPONSE)$"> <action application="bridge" data="sofia/external/4567@X.X.X.X"/> </condition> </extension> here the ${bridge_hangup_cause} is not getting executed. Am I doing it right or is there any other way to do it.
I would suggest you to read FreeSWITCH wiki docs before posting at this mailing list. All of your questions lack basic knowledge of FreeSWITCH and are already addressed in the wiki. Also when you post please be patient and post one question at a time instead of publishing a digest on the mailing list. 1. A simple search on google for "freeswitch call pickup" takes you to the following page. http://wiki.freeswitch.org/wiki/User:Agx#Call_Pickup 2. Follow instructions on this page for collecting dtmf digits. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits 3. make sure context conbridge exists. Regards, On Wed, Dec 15, 2010 at 10:57 AM, Sam <u2nsam@gmail.com> wrote:
Hello folks,
### call pickup
I am trying call pickup for incoming calls by intercept function, its not working , am i missing something ?
<extension name="group-intercept"> <condition field="destination_number" expression="^08$"> <action application="answer"/> <action application="set" data="intercept_unbridged_only=true"/>
<action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/${callgroup})}"/> <action application="sleep" data="2000"/> </condition> </extension>
### collecting DTMF digits
Is there any method to collect digits by a variable clause ?
Suppose i have a ivr playing and user inputs digits , i want to collect the dtmf digits and send it to a different application where that digits will be used for routing purpose.
Any ideas !
### routing via hangup_cause was trying to create a routing rule to to route calls by accounting to the hangup causes,
I have written below syntax but it fails to give the cause code to the varriable for routing.
<extension name="refer"> <condition field="destination_number" expression="^1234$">
<action application="bridge" data="sofia/external/1234@X.X.X.X"/> <action application="set" data="hangup_after_bridge=false"/> <action application="set" data="continue_on_fail=true"/> <action application="log" data="1 B-leg hangup cause: ${bridge_hangup_cause}"/> <action application="transfer" data="${bridge_hangup_cause} XML conbridge"/>
</condition>
</extension>
<extension name="no user"> <condition field="destination_number" expression="^(NO_USER_RESPONSE)$"> <action application="bridge" data="sofia/external/4567@X.X.X.X"/>
</condition> </extension>
here the ${bridge_hangup_cause} is not getting executed. Am I doing it right or is there any other way to do it. _______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
Thanks Ghulam, I recently had started work on freeswitch , 1.For the call pickup I was planning to use it with callgroup such that a group of extension would be picked up by a particular group only. like support will pickup support extension and billing will pickup billing extensions. 2. Is there any function just to get digits without playing ? the digits should get captured on $(digits) var so that i can use those digits for further routing. 3.for the routing via hangup cause the context conbridge is all there , here the log is not generated/captured for the hangup cause. <action application="log" data="1 B-leg hangup cause: ${bridge_hangup_cause}"/> so the next statement is not getting executed. regards Sam On Wed, Dec 15, 2010 at 3:48 PM, Ghulam Mustafa <mustafa.pk@gmail.com>wrote:
I would suggest you to read FreeSWITCH wiki docs before posting at this mailing list.
All of your questions lack basic knowledge of FreeSWITCH and are already addressed in the wiki.
Also when you post please be patient and post one question at a time instead of publishing a digest on the mailing list.
1. A simple search on google for "freeswitch call pickup" takes you to the following page.
http://wiki.freeswitch.org/wiki/User:Agx#Call_Pickup
2. Follow instructions on this page for collecting dtmf digits.
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits
3. make sure context conbridge exists.
Regards,
On Wed, Dec 15, 2010 at 10:57 AM, Sam <u2nsam@gmail.com> wrote:
Hello folks,
### call pickup
I am trying call pickup for incoming calls by intercept function, its not working , am i missing something ?
<extension name="group-intercept"> <condition field="destination_number" expression="^08$"> <action application="answer"/> <action application="set" data="intercept_unbridged_only=true"/>
<action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/${callgroup})}"/> <action application="sleep" data="2000"/> </condition> </extension>
### collecting DTMF digits
Is there any method to collect digits by a variable clause ?
Suppose i have a ivr playing and user inputs digits , i want to collect the dtmf digits and send it to a different application where that digits will be used for routing purpose.
Any ideas !
### routing via hangup_cause was trying to create a routing rule to to route calls by accounting to the
hangup causes,
I have written below syntax but it fails to give the cause code to the varriable for routing.
<extension name="refer"> <condition field="destination_number" expression="^1234$">
<action application="bridge" data="sofia/external/1234@X.X.X.X"/> <action application="set" data="hangup_after_bridge=false"/> <action application="set" data="continue_on_fail=true"/> <action application="log" data="1 B-leg hangup cause: ${bridge_hangup_cause}"/> <action application="transfer" data="${bridge_hangup_cause} XML conbridge"/>
</condition>
</extension>
<extension name="no user"> <condition field="destination_number" expression="^(NO_USER_RESPONSE)$"> <action application="bridge" data="sofia/external/4567@X.X.X.X"/>
</condition> </extension>
here the ${bridge_hangup_cause} is not getting executed. Am I doing it right or is there any other way to do it. _______________________________________________ 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
-- Ghulam Mustafa cell: +92 333.611.7681 sip: cyrenity@ekiga.net mail: mustafa.pk@gmail.com web: cyrenity.wordpress.com
_______________________________________________ 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
participants (2)
-
Ghulam Mustafa
-
Sam