[Freeswitch-users] Transferring to a cell phone

Yungwei Chen yungwei at resolvity.com
Fri May 27 20:34:13 MSD 2011


Here's the debug log, http://pastebin.freeswitch.org/16398

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Friday, May 27, 2011 10:08 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Transferring to a cell phone

You need to put a debug log on pastebin.freeswitch.org<http://pastebin.freeswitch.org>. Be sure to use "FreeSWITCH Log" for the syntax highlighting.
-MC
On Fri, May 27, 2011 at 7:41 AM, Yungwei Chen <yungwei at resolvity.com<mailto:yungwei at resolvity.com>> wrote:
No.

I just verified that making an outbound call to my cell phone still works.
I even recorded the session just to make sure, and in the recording I hear things both ways.
I first dial 9911 from my SIP client (behind freeswitch), and this leads to the javascript program below.
  session.answer();
  var new_session = new Session("{ignore_early_media=true}sofia/gateway/sip_provider/1231231234");
  session.hangup(16); // disconnects the session between the SIP client and freeswitch
  new_session.execute("record_session", "/tmp/call-from-js-to-cell.wav");
  while (new_session.ready())
  {
      new_session.streamFile("/path/to/local/wav/file");
  }

Now back to the case I'm having problem with.
In this case, I first make a call from a landline to freeswitch through my sip provider, and then a javascript program takes over.
I want to transfer the call to a cell phone so that the landline and the cell phone can communicate with each other.
Here's the javascript program:
  session.answer();

  if (session.ready())
  {
      session.execute("bridge", "{ignore_early_media=true}sofia/gateway/sip_provider/1231231234");
  }

So what am I missing here?

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of mazilo
Sent: Friday, May 27, 2011 7:28 AM
To: freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Transferring to a cell phone


Yungwei Chen wrote:
>
> Thanks for your reply. Using bridge fixed the problem. But I cannot hear
> anything both ways. Any idea?
After switching to using bridge function, does this also happen when you
make an outbound call to your cell phone using your javascript?

-----
FreeSWITCH hosted on a Seagate DockStar with OpenWRT and ONLY consumes 3 Watts of electricity.
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Transferring-to-a-cell-phone-tp6408246p6410887.html
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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/20110527/226061c7/attachment-0001.html 


More information about the FreeSWITCH-users mailing list