[Freeswitch-users] Rejecting a call from JavaScript

2009-11-01 Thread Yehavi Bourvine
Hello,

  We would like to handle an incoming call to a busy phone according
to user's prefference:  Some want waiting call, some want to just reject the
call, and others want to send the call to voicemail.

  We have a small JavaScript which tests the status of the destination and
the user's will and tries to act accordingly. Our problem is how to send
busy. I tried session.hangup(USER_BUSY) but it always sends temporary
unavailable which causes the orignator to think that the destination is out
of order.

What is the correct way to do so?

   Thanks! __Yehavi:
___
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


Re: [Freeswitch-users] Rejecting a call from JavaScript

2009-11-01 Thread Anthony Minessale
try session.execute(hangup, user_busy);


On Sun, Nov 1, 2009 at 8:24 AM, Yehavi Bourvine
yehavi.bourv...@gmail.comwrote:

 Hello,

   We would like to handle an incoming call to a busy phone according
 to user's prefference:  Some want waiting call, some want to just reject the
 call, and others want to send the call to voicemail.

   We have a small JavaScript which tests the status of the destination and
 the user's will and tries to act accordingly. Our problem is how to send
 busy. I tried session.hangup(USER_BUSY) but it always sends temporary
 unavailable which causes the orignator to think that the destination is out
 of order.

 What is the correct way to do so?

Thanks! __Yehavi:

 ___
 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




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
pstn:213-799-1400
___
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


Re: [Freeswitch-users] Rejecting a call from JavaScript

2009-11-01 Thread Yehavi Bourvine
Thanks! It works!

  __Yehavi:

 2009/11/1 Anthony Minessale anthony.miness...@gmail.com

 try session.execute(hangup, user_busy);


   On Sun, Nov 1, 2009 at 8:24 AM, Yehavi Bourvine 
 yehavi.bourv...@gmail.com wrote:

   Hello,

   We would like to handle an incoming call to a busy phone according
 to user's prefference:  Some want waiting call, some want to just reject the
 call, and others want to send the call to voicemail.

   We have a small JavaScript which tests the status of the destination and
 the user's will and tries to act accordingly. Our problem is how to send
 busy. I tried session.hangup(USER_BUSY) but it always sends temporary
 unavailable which causes the orignator to think that the destination is out
 of order.

 What is the correct way to do so?

Thanks! __Yehavi:

 ___
 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




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400

 ___
 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


___
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