<HTML><BODY><div><div>Hi Sasmita,</div><div> </div><div>isn’t the ‘n’ option of the function what you need?</div><div> </div><div>https://opensips.org/docs/modules/2.4.x/drouting.html#func_is_from_gw</div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>-----------------------------------------------<br><span style="font-size: 15px;">BR, Alexey</span><br style="font-size: 15px;"><span style="font-size: 15px;">http://alexeyka.zantsev.com/</span></div></div></div><div> </div></div><style type="text/css"></style></BODY></HTML>