Though Brain already spoke on this, just to add. If you are thinking of handing your call over to the dialplan and do some processing before sending out call then you need to use loopback channel instead of sofia.
That way you can dial the pstn number within your dialplan and do something there.
Dialplan needs to be in place obviously.

Otherwise I dont think there is any mechanism or key-word you can put in that field and it do the LCR or distribution or failover the carrier it self.

BR
Sammy G.

On Aug 14, 2012 4:11 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:

that's up to your script to provide. You'really already at the lowest level to make a call via event socket.

Brian Foster
Endigo Computer LLC

Sent from a mobile device.

On Aug 13, 2012 1:33 PM, "Leonardo" <leonardo@daitangroup.com> wrote:
Hi.
I'm using the command "originate" to make a call via socket interface:

api originate sofia/external/MY_PSTN_NUMBER@PSTN_GATEWAY &park()
api originate sofia/external/MY_PSTN_NUMBER@PSTN_GATEWAY &bridge(originate sofia/external/OTHER_PSTN_NUMBER@PSTN_GATEWAY)

Is there a way to omit the "
PSTN_GATEWAY" and force the Freeswitch figure out which one to use based on PSTN_NUMBER/dialplan?

Thanks i advance,
Leo

--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added Services Worldwide.
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

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


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

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