Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] script finished before call is answered


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





PostPosted: Tue Aug 26, 2008 9:20 am    Post subject: [Freeswitch-users] script finished before call is answered Reply with quote

Hi, all,

I have a very simple lua script hello.lua:
session:answer()
session:streamFile("hello.wav")
session:hangup()

When I tried
"originate sofia/default/1001 &lua(hello.lua)",
the script started to execute after the call is answered. But when I
tried with something like
"originate sofia/gateway/onesuite/123456789 &lua(hello.lua)",
the script executed/finished before the call was answered.

Is there a way to make sure the script only executes after the call is
answered (by the end device) when calling through a SIP gateway? Can
any one give me some hints?

Thanks a lot,
Yanhao Zhu

_______________________________________________
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
mike at jerris.com
Guest





PostPosted: Tue Aug 26, 2008 9:25 am    Post subject: [Freeswitch-users] script finished before call is answered Reply with quote

"originate {ignore_early_media=true}sofia/gateway/onesuite/123456789
&lua(hello.lua)"

On Aug 25, 2008, at 11:46 PM, Yanhao Zhu wrote:

Quote:
Hi, all,

I have a very simple lua script hello.lua:
session:answer()
session:streamFile("hello.wav")
session:hangup()

When I tried
"originate sofia/default/1001 &lua(hello.lua)",
the script started to execute after the call is answered. But when I
tried with something like
"originate sofia/gateway/onesuite/123456789 &lua(hello.lua)",
the script executed/finished before the call was answered.

Is there a way to make sure the script only executes after the call is
answered (by the end device) when calling through a SIP gateway? Can
any one give me some hints?

Thanks a lot,
Yanhao Zhu

_______________________________________________
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
brian at freeswitch.org
Guest





PostPosted: Tue Aug 26, 2008 9:26 am    Post subject: [Freeswitch-users] script finished before call is answered Reply with quote

In both of your cases it would have done the same thing if early media
was setup.


{ignore_early_media=true}sofia/blah/blah &lua(blah.lua)

/b


On Aug 25, 2008, at 10:46 PM, Yanhao Zhu wrote:

Quote:
Hi, all,

I have a very simple lua script hello.lua:
session:answer()
session:streamFile("hello.wav")
session:hangup()

When I tried
"originate sofia/default/1001 &lua(hello.lua)",
the script started to execute after the call is answered. But when I
tried with something like
"originate sofia/gateway/onesuite/123456789 &lua(hello.lua)",
the script executed/finished before the call was answered.

Is there a way to make sure the script only executes after the call is
answered (by the end device) when calling through a SIP gateway? Can
any one give me some hints?

Thanks a lot,
Yanhao Zhu

_______________________________________________
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

Brian West
sip:brian@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
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