Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] What is the difference between preAnswer and ring_ready?


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





PostPosted: Sat Aug 29, 2009 8:40 pm    Post subject: [Freeswitch-users] What is the difference between preAnswer Reply with quote

Hi,
Assuming an inbound call, I have trouble understanding what the supposed difference between the following two set of instructions is:

session.execute("ring_ready");
session.set("set", "ringback=/home/ring.wav");

and

session.preAnswer();
session.streamFile("/home/ring.wav")

In practice, however, the first scenario doesn't work for me although the example here suggests otherwise: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready
Any idea?

Thanks,
Max.
Back to top
jason at jasonjgw.net
Guest





PostPosted: Sat Aug 29, 2009 8:54 pm    Post subject: [Freeswitch-users] What is the difference between preAnswer Reply with quote

Max Bridgewater <max.bridgewater@gmail.com> wrote:
Quote:
Hi,
Assuming an inbound call, I have trouble understanding what the supposed
difference between the following two set of instructions is:

session.execute("ring_ready");
session.set("set", "ringback=/home/ring.wav");

Ring_ready sends a SIP "ringing" message and will use your device's default
ringback sound - at least, that has been my experience. I should remember the
message number in the SIP protocol, but I don't (the SIP experts here will
undoubtedly have the details at the ready).
Quote:

and

session.preAnswer();
session.streamFile("/home/ring.wav")

I think that will play the file as early media.


_______________________________________________
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
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Sat Aug 29, 2009 11:01 pm    Post subject: [Freeswitch-users] What is the difference between preAnswer Reply with quote

Hi,

In SIP, ring_ready will send a 180 ringing, pre answer will send a 183
with a session description, so that some audio can be exchanged while
the call isnt answered yet (used a lot for inband error messages etc).

Regards,

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca




On 29-Aug-09, at 9:50 PM, Jason White wrote:

Quote:
Max Bridgewater <max.bridgewater@gmail.com> wrote:
Quote:
Hi,
Assuming an inbound call, I have trouble understanding what the
supposed
difference between the following two set of instructions is:

session.execute("ring_ready");
session.set("set", "ringback=/home/ring.wav");

Ring_ready sends a SIP "ringing" message and will use your device's
default
ringback sound - at least, that has been my experience. I should
remember the
message number in the SIP protocol, but I don't (the SIP experts
here will
undoubtedly have the details at the ready).
Quote:

and

session.preAnswer();
session.streamFile("/home/ring.wav")

I think that will play the file as early media.


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Mon Aug 31, 2009 11:32 am    Post subject: [Freeswitch-users] What is the difference between preAnswer Reply with quote

Well said, Math. BTW, this info is available on the wiki:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer

-MC

On Sat, Aug 29, 2009 at 8:54 PM, Mathieu Rene <mrene_lists@avgs.ca (mrene_lists@avgs.ca)> wrote:
Quote:
Hi,

In SIP, ring_ready will send a 180 ringing, pre answer will send a 183
with a session description, so that some audio can be exchanged while
the call isnt answered yet (used a lot for inband error messages etc).

Regards,

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)





On 29-Aug-09, at 9:50 PM, Jason White wrote:

Quote:
Max Bridgewater <max.bridgewater@gmail.com (max.bridgewater@gmail.com)> wrote:
Quote:
Hi,
Assuming an inbound call, I have trouble understanding what the
supposed
difference between the following two set of instructions is:

session.execute("ring_ready");
session.set("set", "ringback=/home/ring.wav");

Ring_ready sends a SIP "ringing" message and will use your device's
default
ringback sound - at least, that has been my experience. I should
remember the
message number in the SIP protocol, but I don't (the SIP experts
here will
undoubtedly have the details at the ready).
Quote:

and

session.preAnswer();
session.streamFile("/home/ring.wav")

I think that will play the file as early media.


_______________________________________________
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


_______________________________________________
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