No, it is more like static routing. I need my script program 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.
in my dialplan I need to define:
<!-- Launch a JavaScript application if dialed in-->
<extension name="ProviderABC">
<condition field="source" expression="mod_sofia"/>
<condition field="destination_number" expression="^1NXXNXXXXXX$">
<action application="javascript" data="/usr/local/freeswitch/scripts/myapp.js"/>
</condition>
</extension>
<gateway name="voicepulse">
<!--/// account username *required* ///-->
<param name="username" value="your-username"/>
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
<param name="realm" value="nyc.voicepulse.com"/>
<!--/// account password *required* ///-->
<param name="password" value="your-password"/>
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
<param name="extension" value="1NXXNXXXXXX"/>
<!--/// proxy host: *optional* same as realm, if blank ///-->
<param name="proxy" value="nyc.voicepulse.com"/>
<!--/// expire in seconds: *optional* 3600, if blank ///-->
<param name="expire-seconds" value="600"/>
<param name="register" value="true"/>
</gateway>
mod_easyroute?2009/8/6 Vladimir Rodionov <vladrodionov@gmail.com>_______________________________________________Hi, everybody
This is a newbie question: Suppose I have XX (variable dynamic number) DIDs assigned to one sip trunk (from VOIP provider ABC ). All calls coming from VOIP provider ABC MUST be routed to the same lua/js/whatever script. Is it possible in FS? If yes, how everything should be configuered? Dialplan, sip gateway? One more question: suppose it is doeable as I hope then how can I get in my script CalleeID (not a CallerID)? Basicaly,
I want to acomplish the following:
1. Avoid re-configuring FS every time I got new bunch of DIDs assigned/released from/to my Voip provider.
2. Have a way of extracting CalleeID in my script.
TIA,
Vladimir Rodionov
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org