Discussion:
[Freeswitch-users] not make a phone call both extensions
Masakazu Nakano
2015-05-14 17:41:08 UTC
Permalink
Hi there

I'm Freeswitch newbie. 15 years ago, usually used asterisk as old
extension.conf style.

so I got a cloud server like a EC2.

I made a couple of users 5630 and 5631.xml and so on, specified default in
context and in /conf/directory/default.

and registered in np.

***@internal> show registrations
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
5631,my
cloud,76122ZWRhNDRmMDY0MzA2YWU5NzJkNWIxZWJiNmZmNTJmMjI,sofia/external/
sip:***@27.140.246.3:58996,1431626535,27.140.246.3,58996,udp,my cloud,
5630,my cloud,***@10.210.59.150
,sofia/external/sip:***@10.210.59.150:47420;transport=udp,1431626875,49.97.4.168,47420,udp,my
cloud,

2 total.

but fs_cli says 2015-05-15 02:31:47.752779 [INFO] mod_dialplan_xml.c:635
Processing 5631 <5631>->5630 in context public

why ??

BR

mack
https://www.facebook.com/nakano.masakazu
Volkan Oransoy
2015-05-16 10:08:51 UTC
Permalink
Freeswitch is very flexible, so you can set many sip profiles for many
different scenarios.
The starting point of a context is a sip profile. When a call hits the
dialplan, the relevant sip profile sets the initial context.
You should check your sip profile settings if you want to change the
initial context.

/Volkan
Post by Masakazu Nakano
Hi there
I'm Freeswitch newbie. 15 years ago, usually used asterisk as old
extension.conf style.
so I got a cloud server like a EC2.
I made a couple of users 5630 and 5631.xml and so on, specified default in
context and in /conf/directory/default.
and registered in np.
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
5631,my
cloud,76122ZWRhNDRmMDY0MzA2YWU5NzJkNWIxZWJiNmZmNTJmMjI,sofia/external/
cloud,
2 total.
but fs_cli says 2015-05-15 02:31:47.752779 [INFO] mod_dialplan_xml.c:635
Processing 5631 <5631>->5630 in context public
why ??
BR
mack
https://www.facebook.com/nakano.masakazu
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Masakazu Nakano
2015-05-16 10:27:46 UTC
Permalink
This post might be inappropriate. Click to display it.
Stanislav Sinyagin
2015-05-16 10:37:09 UTC
Permalink
Hopefully this will help you as a starting point:
https://github.com/voxserv/freeswitch_conf_minimal/blob/master/docs/tutorial_01_simple_pbx.md
Post by Masakazu Nakano
Hi Volkan,
thank you for your reply.
I think I forgot setting up dialplan, and make it.but result is under like
that.
2015-05-16 19:15:57.652782 [INFO] mod_dialplan_xml.c:635 Processing 5631
<5631>->5630 in context public
${unroll_loops}(true) =~ /^true$/ break=on-false
${sip_looped_call}() =~ /^true$/ break=on-false
continue=true
export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
continue=false
destination_number(5630) =~ /^(563[0-9])$/ break=on-false
bridge(sofia/doublenat/5630%27.XX.104.17 )
2015-05-16 19:15:57.652782 [DEBUG] switch_core_state_machine.c:216
Can I make a phone call by fs_cli to 5631 ??
PS: I'm understand old style extension.conf is enought. but xml one is bit
difficult... :(
BR
mack
Post by Volkan Oransoy
Freeswitch is very flexible, so you can set many sip profiles for many
different scenarios.
The starting point of a context is a sip profile. When a call hits the
dialplan, the relevant sip profile sets the initial context.
You should check your sip profile settings if you want to change the
initial context.
/Volkan
Post by Masakazu Nakano
Hi there
I'm Freeswitch newbie. 15 years ago, usually used asterisk as old
extension.conf style.
so I got a cloud server like a EC2.
I made a couple of users 5630 and 5631.xml and so on, specified default
in context and in /conf/directory/default.
and registered in np.
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
5631,my
cloud,76122ZWRhNDRmMDY0MzA2YWU5NzJkNWIxZWJiNmZmNTJmMjI,sofia/external/
cloud,
2 total.
but fs_cli says 2015-05-15 02:31:47.752779 [INFO] mod_dialplan_xml.c:635
Processing 5631 <5631>->5630 in context public
why ??
BR
mack
https://www.facebook.com/nakano.masakazu
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Volkan Oransoy
2015-05-16 20:29:29 UTC
Permalink
To start a call on freeswitch console, please check this link.
https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate
Post by Stanislav Sinyagin
https://github.com/voxserv/freeswitch_conf_minimal/blob/master/docs/tutorial_01_simple_pbx.md
Post by Masakazu Nakano
Hi Volkan,
thank you for your reply.
I think I forgot setting up dialplan, and make it.but result is under
like that.
2015-05-16 19:15:57.652782 [INFO] mod_dialplan_xml.c:635 Processing 5631
<5631>->5630 in context public
${unroll_loops}(true) =~ /^true$/ break=on-false
${sip_looped_call}() =~ /^true$/ break=on-false
continue=true
export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
continue=false
destination_number(5630) =~ /^(563[0-9])$/ break=on-false
bridge(sofia/doublenat/5630%27.XX.104.17 )
2015-05-16 19:15:57.652782 [DEBUG] switch_core_state_machine.c:216
Can I make a phone call by fs_cli to 5631 ??
PS: I'm understand old style extension.conf is enought. but xml one is
bit difficult... :(
BR
mack
Post by Volkan Oransoy
Freeswitch is very flexible, so you can set many sip profiles for many
different scenarios.
The starting point of a context is a sip profile. When a call hits the
dialplan, the relevant sip profile sets the initial context.
You should check your sip profile settings if you want to change the
initial context.
/Volkan
Post by Masakazu Nakano
Hi there
I'm Freeswitch newbie. 15 years ago, usually used asterisk as old
extension.conf style.
so I got a cloud server like a EC2.
I made a couple of users 5630 and 5631.xml and so on, specified default
in context and in /conf/directory/default.
and registered in np.
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
5631,my
cloud,76122ZWRhNDRmMDY0MzA2YWU5NzJkNWIxZWJiNmZmNTJmMjI,sofia/external/
cloud,
2 total.
but fs_cli says 2015-05-15 02:31:47.752779 [INFO]
mod_dialplan_xml.c:635 Processing 5631 <5631>->5630 in context public
why ??
BR
mack
https://www.facebook.com/nakano.masakazu
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Masakazu Nakano
2015-05-18 08:13:55 UTC
Permalink
ok,I got it :)
about dialplan , store the file to dialplan/default and/or public and trial
to be done.

BR

mack
Post by Volkan Oransoy
To start a call on freeswitch console, please check this link.
https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate
Post by Stanislav Sinyagin
https://github.com/voxserv/freeswitch_conf_minimal/blob/master/docs/tutorial_01_simple_pbx.md
Post by Masakazu Nakano
Hi Volkan,
thank you for your reply.
I think I forgot setting up dialplan, and make it.but result is under
like that.
2015-05-16 19:15:57.652782 [INFO] mod_dialplan_xml.c:635 Processing 5631
<5631>->5630 in context public
continue=false
${unroll_loops}(true) =~ /^true$/ break=on-false
${sip_looped_call}() =~ /^true$/ break=on-false
continue=true
export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
continue=false
destination_number(5630) =~ /^(563[0-9])$/ break=on-false
bridge(sofia/doublenat/5630%27.XX.104.17 )
2015-05-16 19:15:57.652782 [DEBUG] switch_core_state_machine.c:216
Can I make a phone call by fs_cli to 5631 ??
PS: I'm understand old style extension.conf is enought. but xml one is
bit difficult... :(
BR
mack
Post by Volkan Oransoy
Freeswitch is very flexible, so you can set many sip profiles for many
different scenarios.
The starting point of a context is a sip profile. When a call hits the
dialplan, the relevant sip profile sets the initial context.
You should check your sip profile settings if you want to change the
initial context.
/Volkan
Post by Masakazu Nakano
Hi there
I'm Freeswitch newbie. 15 years ago, usually used asterisk as old
extension.conf style.
so I got a cloud server like a EC2.
I made a couple of users 5630 and 5631.xml and so on, specified
default in context and in /conf/directory/default.
and registered in np.
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
5631,my
cloud,76122ZWRhNDRmMDY0MzA2YWU5NzJkNWIxZWJiNmZmNTJmMjI,sofia/external/
cloud,
2 total.
but fs_cli says 2015-05-15 02:31:47.752779 [INFO]
mod_dialplan_xml.c:635 Processing 5631 <5631>->5630 in context public
why ??
BR
mack
https://www.facebook.com/nakano.masakazu
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...