View previous topic :: View next topic |
Author |
Message |
brad.tuan at gmail.com Guest
|
Posted: Tue Jun 30, 2009 1:26 am Post subject: [Freeswitch-users] How to set FS_A as a gateway of FS_B?? |
|
|
I have already set it in my FreeSwitch\conf\sip_profiles\external.xml:
<gateways>
<gateway name="FreeSwitch">
<param name="username" value="1008"/>
<param name="realm" value="218.210.xxx.xxx"/>
<param name="password" value="1234"/>
<param name="extension" value="1008"/>
<param name="proxy" value="218.210.xxx.xxx"/>
<param name="expire-seconds" value="3600"/>
<param name="retry-seconds" value="10"/>
</gateway>
</gateways>
But my FS_A always return a 403 to FS_B, Where is the problem?? |
|
Back to top |
|
|
darklion11 at yahoo.com Guest
|
Posted: Tue Jun 30, 2009 1:38 am Post subject: [Freeswitch-users] How to set FS_A as a gateway of FS_B?? |
|
|
Create a dialplan for FS A to communicate to FS B.
dialplan/default/00_fsa.xml
<extension name="dialfreeswitch">
<condition field="destination_number" expression="^(\d+)$">
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="bridge"
data="sofia/gateway/FreeSwitch/1$218.210.xxx.xxx"/> -> IP of FS B
</condition>
</extension>
To check if your gateway succeed
just type on sofia status check if gateway FreeSWITCH is there connection is
set and ready to go
Brad Tuan wrote:
--
View this message in context: http://www.nabble.com/How-to-set-FS_A-as-a-gateway-of-FS_B---tp24266777p24266862.html
Sent from the Freeswitch-users mailing list archive at Nabble.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 |
|
Back to top |
|
|
brad.tuan at gmail.com Guest
|
Posted: Tue Jun 30, 2009 2:06 am Post subject: [Freeswitch-users] How to set FS_A as a gateway of FS_B?? |
|
|
I know that i need to set the dialplan,
my problem is when FS_B send a REGISTER to FS_A, FS_A will return a 403 to FS_B
Like this:
2009-06-30 15:03:25 [NOTICE] sofia_reg.c:305 sofia_reg_check_gateway() Registering FS_A
2009-06-30 15:03:25 [ERR] sofia_reg.c:1391 sofia_reg_handle_sip_r_register()
FS_A Registration Failed with status Forbidden [403]. failure #2
2009-06-30 15:03:25 [WARNING] sofia_reg.c:334 sofia_reg_check_gateway()
FS_A Failed Registration, setting retry to 30 seconds.
Quote: | Create a dialplan for FS A to communicate to FS B.
dialplan/default/00_fsa.xml
<extension name="dialfreeswitch">
<condition field="destination_number" expression="^(\d+)$">
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="bridge"
> data="sofia/gateway/FreeSwitch/1$218.210.xxx.xxx"/> -> IP of FS B
</condition>
</extension>
|
Quote: | To check if your gateway succeed
|
Quote: | just type on sofia status check if gateway FreeSWITCH is there connection is
set and ready to go
|
|
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Tue Jun 30, 2009 11:12 am Post subject: [Freeswitch-users] How to set FS_A as a gateway of FS_B?? |
|
|
If you don't need authentication, you don't need a gateway, if you do,
you will need to setup a user on the other box to register to.
On Jun 30, 2009, at 3:05 AM, Brad Tuan wrote:
Quote: | I know that i need to set the dialplan,
my problem is when FS_B send a REGISTER to FS_A, FS_A will return a
403 to FS_B
Like this:
2009-06-30 15:03:25 [NOTICE] sofia_reg.c:305
sofia_reg_check_gateway() Registering FS_A
2009-06-30 15:03:25 [ERR] sofia_reg.c:1391
sofia_reg_handle_sip_r_register()
FS_A Registration Failed with status Forbidden
[403]. failure #2
2009-06-30 15:03:25 [WARNING] sofia_reg.c:334
sofia_reg_check_gateway()
FS_A Failed Registration, setting retry to 30
seconds.
Quote: | Create a dialplan for FS A to communicate to FS B.
dialplan/default/00_fsa.xml
<extension name="dialfreeswitch">
<condition field="destination_number" expression="^(\d+)$">
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="bridge"
Quote: | data="sofia/gateway/FreeSwitch/1$218.210.xxx.xxx"/> -> IP of
|
| FS B
Quote: | </condition>
</extension>
|
Quote: | To check if your gateway succeed
|
Quote: | just type on sofia status check if gateway FreeSWITCH is there
| connection is
Quote: | set and ready to go
|
|
_______________________________________________
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 |
|
Back to top |
|
|
|