<div dir="ltr">sorry for the incomplete message, please ignore the previous message.<div><br></div><div>I am creating the dialplan in this way:<div><br></div><div><div style=""><div style="font-size:12.8px"><include></div><div style="font-size:12.8px"> <extension name="public_did"></div><div style="font-size:12.8px"> <condition field="destination_number" expression="^(88888888)$"> </div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span><action application="set" data="callerID = $${caller_id_number}"/><span style="white-space:pre-wrap">        </span></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span><action application="log" data="INFO src number is $${callerID}"/></div><div style="font-size:12.8px"> <action application="respond" data="503"/></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span><action application="originate" data="{sip_auth_username=1003,sip_auth_password=*******}sofia/external/<a href="mailto:1003@52.38.67.78" target="_blank">1003@</a>X.X.X.X $<span style="font-size:12.8px">callerID</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">"/></span></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span></div><div style="font-size:12.8px"> </condition></div><div style="font-size:12.8px"> </extension></div><div style="font-size:12.8px"></include></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style=""><div><span style="font-size:12.8px"><extension name="show_prepare"></span></div><div><span style="font-size:12.8px"><span class="" style="white-space:pre">        </span><condition field="destination_number" expression="^(?:\+91|0|)(\d{10})$"></span></div><div><span style="font-size:12.8px"> </span></div><div><span style="font-size:12.8px"><span class="" style="white-space:pre">        </span><action application="bridge" data="sofia/gateway/MySIP/91$1"/></span></div><div><span style="font-size:12.8px"> </condition></span></div><div><span style="font-size:12.8px"></extension> </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">After rejecting the call, new channel for outgoing call does not start , also variable "</span><span style="font-size:12.8px">callerID"</span><span style="font-size:12.8px"> is set to empty not capturing the source number</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards,</span></div><div><span style="font-size:12.8px">Deepika</span></div></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 11, 2016 at 11:50 PM, Deepika Yadav <span dir="ltr"><<a href="mailto:deepikay@iiitd.ac.in" target="_blank">deepikay@iiitd.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I want to reject an incoming call from a mobile number in the public context and callback to it</div><div><br></div><div>how should the dialplan look like:</div><div><br></div><div><br></div><div><div><include></div><div> <extension name="public_did"></div><div> <condition field="destination_number" expression="^(88888888)$"> </div><div><span style="white-space:pre-wrap">        </span><action application="set" data="domain_name=$${domain}"/></div><div><span style="white-space:pre-wrap">        </span><action application="log" data="INFO domain is $${domain}"/></div><div><span style="white-space:pre-wrap">        </span><action application="set" data="callerID = $${caller_id_number}"/><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span><action application="log" data="INFO src number is $${callerID}"/></div><div><action application="respond" data="503"/></div><div><span style="white-space:pre-wrap">        </span><action application="bridge" data="{sip_auth_username=1003,sip_auth_password=R@D~o$121$@IIITD}sofia/external/<a href="mailto:1003@52.38.67.78" target="_blank">1003@52.38.67.78</a> 9769658019"/></div><div><span style="white-space:pre-wrap">        </span><!--<action application="respond" data="reponse_info" data="407"/> --></div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span><!--<action application="transfer" data="5000 XML default"/> --></div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span> </div><div> </condition></div><div> </extension></div><div></include></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Deepika</div></div>
</blockquote></div><br></div>