Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Rejecting a call from JavaScript


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
yehavi.bourvine at gma...
Guest





PostPosted: Sun Nov 01, 2009 9:35 am    Post subject: [Freeswitch-users] Rejecting a call from JavaScript Reply with quote

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:
Back to top
anthony.minessale at g...
Guest





PostPosted: Sun Nov 01, 2009 2:41 pm    Post subject: [Freeswitch-users] Rejecting a call from JavaScript Reply with quote

try session.execute("hangup", "user_busy");


On Sun, Nov 1, 2009 at 8:24 AM, Yehavi Bourvine <yehavi.bourvine@gmail.com (yehavi.bourvine@gmail.com)> wrote:
Quote:
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 (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_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
yehavi.bourvine at gma...
Guest





PostPosted: Sun Nov 01, 2009 11:23 pm    Post subject: [Freeswitch-users] Rejecting a call from JavaScript Reply with quote

Thanks! It works!
 
                      __Yehavi:


2009/11/1 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
try session.execute("hangup", "user_busy");



On Sun, Nov 1, 2009 at 8:24 AM, Yehavi Bourvine <yehavi.bourvine@gmail.com (yehavi.bourvine@gmail.com)> wrote:


Quote:

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 (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_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services