[Freeswitch-users] javascript choose external channel
Francesco Facco de Lagarda
francesco at delagarda.com
Tue May 22 09:56:47 UTC 2018
I'm developing a call app using javascript
I have 2 possibile gateways for outgoing calls:
one is a RealTone FXO box on analogue line
one is a MessageNet SIP account..
in JS I THOUGHT I could use them as follows:
for the realtone FXO
var sessOut = new Session("sofia/gateway/realtoneFXO/" + dialedNum +
"@192.168.0.216:5060");
for messageNet SIP ACCOUNT
var sessOut = new Session("sofia/gateway/messagenet/" + dialedNum +
"@192.168.0.216:5060");
But FS ALWAYS dials out on the FXO, in fs_cli I see:
switch_channel.c:1104 New Channel
sofia/external/069087651 at 192.168.0.216:5060
<mailto:sofia/external/069087651 at 192.168.0.216:5060>
why not
New Channel
sofia/gateway/Messagenet/sofia/external/069087651 at 192.168.0.216:5060
<mailto:sofia/external/069087651 at 192.168.0.216:5060>
As I'm specifying n the "new Session" code ???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180522/5567f2e3/attachment.html>
More information about the FreeSWITCH-users
mailing list