FreeSwitch
Getting the first fs_cli working:
using bria to register user 1000 on myopenvoice.org using blink to register user 1001 on myopenvoice.org
under fs_cli issue:
originate sofia/internal/1000@myopenvoice.org&bridge(sofia/internal/1001@myopenvoice.org)
This does not work since both softphones are registered, invite loops back into freeswitch. Need to use 1000%myopenvoice.org instead of 1000@myopenvoice.org
Issue this command:
originate sofia/internal/1000@myopenvoice.org &bridge(sofia/internal/1001@myopenvoice.org)
Still doesn't work.
Issue this command:
global_getvar domain
returns the ip, hence update the command to:
originate sofia/internal/1000%myopenvoice.org &bridge(sofia/internal/1001%173.203.104.13)
Now it works. FS first rings bria where 1000 is reg'ed, once 1000 picks up, it rings blink where 1001 is reg'ed.
FreeSwitcher
Using bria and blink to register user 1000 and 1001 on myopenvoice.org.
To place a call from 1000 to 1001:
s = FSR::CommandSocket.new(:server => 'myopenvoice.org', :auth => 'mysecretpassword') => #<FSR::CommandSocket:0x102d37630 @auth="mysecretpassword", @port="8021", @socket=#TCPSocket:0x102d375b8, @server="myopenvoice.org">
Using IP (for now on myopenvoice.org) and use % instead of @
s.originate(:target => 'sofia/internal/1000%173.203.104.13', :endpoint => FSR::App::Bridge.new('sofia/internal/1001%173.203.104.13')).run => {"Job-UUID"=>"c5271c2a-ae83-11df-bbac-7331d226de50", "body"=>"", "Content-Type"=>"command/reply", "Reply-Text"=>"+OK Job-UUID: c5271c2a-ae83-11df-bbac-7331d226de50"}