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.
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 :)