Dear. If i receive a call from a customer with some prefx like 1234 How i can do in order to forward this call with out prefix like Asterisk {ENTEN:4} Regards.
In your dialplan do something like this: <include> <extension name="remotefs"> <condition field="destination_number" expression="^1234(\d+)$"> <action application="bridge" data=" sofia/internal/$1@192.168.50.195:5080"/<sofia/internal/$1@192.168.50.195:5080%22/>
</condition> </extension> </include> The $1 variable has the number without the prefix of 1234. I am sending the call to another FS box in this example Bob On Fri, Jan 29, 2010 at 10:14 AM, FERNANDO VILLARROEL <fvillarroel@yahoo.com
wrote:
Dear.
If i receive a call from a customer with some prefx like 1234
How i can do in order to forward this call with out prefix like Asterisk
{ENTEN:4}
Regards.
_______________________________________________ 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
1) capture it in the regex and put the () around the part without the prefix. 2) do the same thing as asterisk with ${destination_number:4} On Thu, Jan 28, 2010 at 3:14 PM, FERNANDO VILLARROEL <fvillarroel@yahoo.com>wrote:
Dear.
If i receive a call from a customer with some prefx like 1234
How i can do in order to forward this call with out prefix like Asterisk
{ENTEN:4}
Regards.
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Bob Coleman
-
FERNANDO VILLARROEL