<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">&lt;include&gt;</div><div style="font-size:12.8px">  &lt;extension name=&quot;public_did&quot;&gt;</div><div style="font-size:12.8px">    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(88888888)$&quot;&gt;  </div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;set&quot; data=&quot;callerID = $${caller_id_number}&quot;/&gt;<span style="white-space:pre-wrap">        </span></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;log&quot; data=&quot;INFO src number is $${callerID}&quot;/&gt;</div><div style="font-size:12.8px">        &lt;action application=&quot;respond&quot; data=&quot;503&quot;/&gt;</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;originate&quot; data=&quot;{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">&quot;/&gt;</span></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span></div><div style="font-size:12.8px">    &lt;/condition&gt;</div><div style="font-size:12.8px">  &lt;/extension&gt;</div><div style="font-size:12.8px">&lt;/include&gt;</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">&lt;extension name=&quot;show_prepare&quot;&gt;</span></div><div><span style="font-size:12.8px"><span class="" style="white-space:pre">        </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(?:\+91|0|)(\d{10})$&quot;&gt;</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>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/MySIP/91$1&quot;/&gt;</span></div><div><span style="font-size:12.8px">      &lt;/condition&gt;</span></div><div><span style="font-size:12.8px">&lt;/extension&gt;  </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 &quot;</span><span style="font-size:12.8px">callerID&quot;</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">&lt;<a href="mailto:deepikay@iiitd.ac.in" target="_blank">deepikay@iiitd.ac.in</a>&gt;</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>&lt;include&gt;</div><div>  &lt;extension name=&quot;public_did&quot;&gt;</div><div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(88888888)$&quot;&gt;  </div><div><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;log&quot; data=&quot;INFO domain is $${domain}&quot;/&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;set&quot; data=&quot;callerID = $${caller_id_number}&quot;/&gt;<span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;log&quot; data=&quot;INFO src number is $${callerID}&quot;/&gt;</div><div>&lt;action application=&quot;respond&quot; data=&quot;503&quot;/&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;action application=&quot;bridge&quot; data=&quot;{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&quot;/&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;!--&lt;action application=&quot;respond&quot; data=&quot;reponse_info&quot; data=&quot;407&quot;/&gt; --&gt;</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>&lt;!--&lt;action application=&quot;transfer&quot; data=&quot;5000 XML default&quot;/&gt; --&gt;</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>    &lt;/condition&gt;</div><div>  &lt;/extension&gt;</div><div>&lt;/include&gt;</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>