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@192.168.0.216:5060
why not
New Channel sofia/gateway/Messagenet/sofia/external/069087651@192.168.0.216:5060
As I’m specifying n the “new Session” code ???