[Freeswitch-users] Reject Inbound Call and Callback

Ken Rice krice at freeswitch.org
Sat Jun 11 22:42:32 MSD 2016


Look at your logs you'll notice that originate is not a dialplan command and after you hang up on the incoming call the channel is dead. The correct way to do this is with a script (probably ESl) that sees the incoming call hangs it up and triggers the originate command

Sent from my iPhone

> On Jun 11, 2016, at 1:26 PM, Deepika Yadav <deepikay at iiitd.ac.in> wrote:
> 
> sorry for the incomplete message, please ignore the previous message.
> 
> I am creating the dialplan in this way:
> 
> <include>
>   <extension name="public_did">
>     <condition field="destination_number" expression="^(88888888)$">  
> 	<action application="set" data="callerID = $${caller_id_number}"/>	
> 	<action application="log" data="INFO src number is $${callerID}"/>
>         <action application="respond" data="503"/>
> 	<action application="originate" data="{sip_auth_username=1003,sip_auth_password=*******}sofia/external/1003 at X.X.X.X $callerID "/>
> 	
>     </condition>
>   </extension>
> </include>
> 
> 
> <extension name="show_prepare">
> 	<condition field="destination_number" expression="^(?:\+91|0|)(\d{10})$">
>         
> 	<action application="bridge" data="sofia/gateway/MySIP/91$1"/>
>       </condition>
> </extension>  
> 
> After rejecting the call, new channel for outgoing call does not start , also variable "callerID" is set to empty not capturing the source number
> 
> Regards,
> Deepika
> 
> 
> 
>> On Sat, Jun 11, 2016 at 11:50 PM, Deepika Yadav <deepikay at iiitd.ac.in> wrote:
>> Hi,
>> 
>> I want to reject an incoming call from a mobile number in the public context and callback to it
>> 
>> how should the dialplan look like:
>> 
>> 
>> <include>
>>   <extension name="public_did">
>>     <condition field="destination_number" expression="^(88888888)$">  
>> 	<action application="set" data="domain_name=$${domain}"/>
>> 	<action application="log" data="INFO domain is $${domain}"/>
>> 	<action application="set" data="callerID = $${caller_id_number}"/>	
>> 	<action application="log" data="INFO src number is $${callerID}"/>
>> <action application="respond" data="503"/>
>> 	<action application="bridge" data="{sip_auth_username=1003,sip_auth_password=R at D~o$121$@IIITD}sofia/external/1003 at 52.38.67.78 9769658019"/>
>> 	<!--<action application="respond" data="reponse_info" data="407"/> -->
>> 	
>> 	<!--<action application="transfer" data="5000 XML default"/> -->
>> 	
>> 	
>> 	  
>>     </condition>
>>   </extension>
>> </include>
>> 
>> 
>> 
>> 
>> 
>> 
>> Regards,
>> Deepika
> 
> _________________________________________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160611/239b97bf/attachment-0001.html 


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