In Adhearsion, you would do this:

def play_text_to_pstn(number, text)
  Adhearsion::OutboundCall.originate "sofia/blah/#{number}" do
    say text
  end
end

http://adhearsion.com

Regards,
Ben Langfeld


On 28 March 2013 05:54, Amit Kumar <findme@itsamit.com> wrote:
I am trying to make an application that can initiate a call from the Web app to a PSTN line. So when a user clicks on call, the PSTN line will ring, and FS will play the text entered on the web app to the PSTN.

I am able to dial the PSTN from a SIP phone(Zoiper). I am also able to call the PSTN line from the CLI, but I have no clue as to how to eliminate the SIP Phone all together.

I can connect to FS using ESL, and send the command to initiate a call, but since no user is registered without the SIP phone registering them, I am not sure how to go ahead.

Any help is appreciated!

_________________________________________________________________________
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

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