[Freeswitch-users] Calling extension using ruby

Ben Langfeld ben at langfeld.co.uk
Thu Mar 28 21:52:54 MSK 2013


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130328/99e264a5/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list