Newbie Question wrt Originating calls
Hi, Getting to learn Freeswitch. So, please bear with me. Can somebody tells me how to do dial extension 1003 from the command line. I tried the following and the all failed originate 1003%192.168.10.103 originate 1003@192.168.10.103 originate 1003%192.168.10.103 & park() originate 1003@192.168.10.103 & park() Thanks, Max.
originate sofia/default/1003 &echo() originate user/1003 &echo() originate user/1003 &park() On Jun 10, 2009, at 9:39 PM, Max Bridgewater wrote:
Hi,
Getting to learn Freeswitch. So, please bear with me. Can somebody tells me how to do dial extension 1003 from the command line. I tried the following and the all failed
originate 1003%192.168.10.103 originate 1003@192.168.10.103 originate 1003%192.168.10.103 & park() originate 1003@192.168.10.103 & park()
Thanks, Max.
_______________________________________________ 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
Thanks, the first variant doesn't work for me. Any idea? I changed it to: originate sofia/internal/1003@192.168.10.103 & park() then i get the error message: "Cannot blind transfer 1 legged call". Also going through the wiki i discovered the concept of socket event and included the following extension under /usr/local/freeswitch/conf/dialplan/public/mysockt.xml: <include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include> Can somebody gives me an example of dial string that would allow my call to be sent to this server socket? How would i place such a call using SJPhone? Best regards, Max. On Wed, Jun 10, 2009 at 10:21 AM, dujinfang <dujinfang@gmail.com> wrote:
originate sofia/default/1003 &echo()originate user/1003 &echo() originate user/1003 &park()
On Jun 10, 2009, at 9:39 PM, Max Bridgewater wrote:
Hi,
Getting to learn Freeswitch. So, please bear with me. Can somebody tells me how to do dial extension 1003 from the command line. I tried the following and the all failed
originate 1003%192.168.10.103 originate 1003@192.168.10.103 originate 1003%192.168.10.103 & park() originate 1003@192.168.10.103 & park()
Thanks, Max.
_______________________________________________ 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
the default alias was removed from the default configs last week, so new configs don't have this anymore. On Jun 10, 2009, at 10:54 AM, Max Bridgewater wrote:
Thanks,
the first variant doesn't work for me. Any idea? I changed it to:
originate sofia/internal/1003@192.168.10.103 & park()
then i get the error message: "Cannot blind transfer 1 legged call".
Also going through the wiki i discovered the concept of socket event and included the following extension under /usr/local/freeswitch/ conf/dialplan/public/mysockt.xml:
<include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include>
Can somebody gives me an example of dial string that would allow my call to be sent to this server socket? How would i place such a call using SJPhone?
Best regards, Max.
On Wed, Jun 10, 2009 at 10:21 AM, dujinfang <dujinfang@gmail.com> wrote: originate sofia/default/1003 &echo() originate user/1003 &echo() originate user/1003 &park()
On Jun 10, 2009, at 9:39 PM, Max Bridgewater wrote:
Hi,
Getting to learn Freeswitch. So, please bear with me. Can somebody tells me how to do dial extension 1003 from the command line. I tried the following and the all failed
originate 1003%192.168.10.103 originate 1003@192.168.10.103 originate 1003%192.168.10.103 & park() originate 1003@192.168.10.103 & park()
Thanks, Max.
http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings If you're calling a locally registered user... you need to use user/ user@domain which uses dial-string from the params on the user or directory. Or sofia/profile/user%domain /b On Jun 10, 2009, at 9:54 AM, Max Bridgewater wrote:
Thanks,
the first variant doesn't work for me. Any idea? I changed it to:
originate sofia/internal/1003@192.168.10.103 & park()
then i get the error message: "Cannot blind transfer 1 legged call".
Also going through the wiki i discovered the concept of socket event and included the following extension under /usr/local/freeswitch/ conf/dialplan/public/mysockt.xml:
<include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include>
Can somebody gives me an example of dial string that would allow my call to be sent to this server socket? How would i place such a call using SJPhone?
Best regards, Max.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
Thanks Folks; I'm making progress. The following origination string does make my non-registered SJPhone ring: {origination_caller_id_number=2000}sofia/external/some@192.168.50.67 But why isn't it caught by the following extension? <include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include> On Wed, Jun 10, 2009 at 11:11 AM, Brian West <brian@freeswitch.org> wrote:
http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings If you're calling a locally registered user... you need to use user/user@domain which uses dial-string from the params on the user or directory. Or sofia/profile/user%domain
/b
On Jun 10, 2009, at 9:54 AM, Max Bridgewater wrote:
Thanks,
the first variant doesn't work for me. Any idea? I changed it to:
originate sofia/internal/1003@192.168.10.103 & park()
then i get the error message: "Cannot blind transfer 1 legged call".
Also going through the wiki i discovered the concept of socket event and included the following extension under /usr/local/freeswitch/conf/dialplan/public/mysockt.xml:
<include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include>
Can somebody gives me an example of dial string that would allow my call to be sent to this server socket? How would i place such a call using SJPhone?
Best regards, Max.
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ 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
http://wiki.freeswitch.org/wiki/Dialplan_XML break="on-true" ? On Jun 10, 2009, at 12:18 PM, Max Bridgewater wrote:
Thanks Folks; I'm making progress. The following origination string does make my non-registered SJPhone ring:
{origination_caller_id_number=2000}sofia/external/some@192.168.50.67
But why isn't it caught by the following extension?
<include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include>
Well, i assume break="on-true" means, that if this extension is matched then execute its actions and stop there. That would correspond to what i'm trying to do. Anyway i removed this attribute and still nothing is being sent to the socket. Let me give you more context. This extension is put in a separate file AS IS under /usr/local/freeswitch/conf/dialplan/public/myextension.xml. Is this the right place? I have the impression that it is not seen or processed by Freeswitch. The latest thing i tried is to wrap the extension in a context element with name attribute "public". It did'nt help. Any clue? On Wed, Jun 10, 2009 at 12:52 PM, Michael Jerris <mike@jerris.com> wrote:
http://wiki.freeswitch.org/wiki/Dialplan_XML break="on-true" ?
On Jun 10, 2009, at 12:18 PM, Max Bridgewater wrote:
Thanks Folks; I'm making progress. The following origination string does make my non-registered SJPhone ring:
{origination_caller_id_number=2000}sofia/external/some@192.168.50.67
But why isn't it caught by the following extension?
<include> <extension name="myextension"> <condition field="caller_id_number" expression="^2000$" break="on-true"> <action application="socket" data="192.168.50.67:10000 full" /> </condition> </extension> </include>
_______________________________________________ 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
participants (4)
-
Brian West
-
dujinfang
-
Max Bridgewater
-
Michael Jerris