Thanks, I will give it it a try and let you know. <br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 8:40 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div class="im">On Wed, Aug 5, 2009 at 8:57 PM, Vladimir Rodionov <span dir="ltr"><<a href="mailto:vladrodionov@gmail.com" target="_blank">vladrodionov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
No, it is more like static routing. I need my <b>script program</b> be
invoked when somebody dial in. That is it. One script for all inbound
DIDs. Suppose I have thousand of them. I think I know how to
accomplish this but I am not sure yet.<br>
</blockquote></div><div><br>Have the external profile be used only for provider ABC, or define a new profile. Then in the profile have the calls go to a specific context. You could have something like this in the sip profile definition:<br>
<br><param name="context" value="abc_calls"/><br><br>Then create a dialplan context called "abc_calls" that handles all inbound calls. Create a file in conf/dialplan/ called abc_calls.xml:<br>
<br><include><br> <context name="abc_calls"><br> <extension name="abc_calls"><br> <condition field="destination_number" expression="^(.*)$"><br> <action application="lua" data="myscript.lua"/><br>
</condition><br> </extension><br> </context><br></include><br><br>Essentially you're just creating a SIP profile and a dialplan context that are servicing your VoIP provider. You can add other profiles/contexts for other providers if need be.<br>
<br>Let us know how it goes...<br>-MC<br><br></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>