VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mrjoebain at gmail.com Guest
|
Posted: Mon Dec 08, 2008 12:07 pm Post subject: [Freeswitch-users] Catching hangups |
|
|
Hi,
I'm writing an IVR in Lua and am having problems dealing with hangups cleanly. Very often session:ready() reports true long after I have hung up and the hangup hook function I have set doesn't get called either. It seems to report that the session is active indefinitely in some cases where a loop keeps trying to get some dtmf key presses. Is there any trick to using session:ready() or the hangup hook that I might have missed?
On a slightly related point I can't seem to access the session properties, e.g. session.caller_id_num has a value of nil. Any thoughts here?
Thanks in advance,
Joe Bain |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Mon Dec 08, 2008 12:20 pm Post subject: [Freeswitch-users] Catching hangups |
|
|
Joe,
A few questions... what svn rev are you running? Which operating
system? Finally, is it possible for you to put your dialplan and Lua
script up at pastebin.freeswitch.org?
Thanks,
MC
On Mon, Dec 8, 2008 at 8:57 AM, Joe Bain <mrjoebain@gmail.com> wrote:
Quote: | Hi,
I'm writing an IVR in Lua and am having problems dealing with hangups
cleanly. Very often session:ready() reports true long after I have hung up
and the hangup hook function I have set doesn't get called either. It seems
to report that the session is active indefinitely in some cases where a loop
keeps trying to get some dtmf key presses. Is there any trick to using
session:ready() or the hangup hook that I might have missed?
On a slightly related point I can't seem to access the session properties,
e.g. session.caller_id_num has a value of nil. Any thoughts here?
Thanks in advance,
Joe Bain
_______________________________________________
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 |
|
|
mrjoebain at gmail.com Guest
|
|
Back to top |
|
|
ivan at myrvold.org Guest
|
Posted: Tue Dec 09, 2008 4:42 am Post subject: [Freeswitch-users] Catching hangups |
|
|
Did you read carefully when asked to provide login and password?The login and password is there, don't use your own freeswitch login.
Ivan
Den 9. des.. 2008 kl. 10:27 skrev Joe Bain:
|
|
Back to top |
|
|
mrjoebain at gmail.com Guest
|
Posted: Tue Dec 09, 2008 5:07 am Post subject: [Freeswitch-users] Catching hangups |
|
|
2008/12/9 Ivan C Myrvold <ivan@myrvold.org (ivan@myrvold.org)>
Ah, I should have read more carefully!
The dialplan is here and the two important lua scripts are here and here, the first calls the second. I didn't include all the Lua script as the problem appears right at the start (as well as throughout) if the user hangs up when the IVR is speaking (asking for an id number) then it seems to never get a hangup and loops trying to get the id number.
Joe |
|
Back to top |
|
|
mrjoebain at gmail.com Guest
|
Posted: Tue Dec 09, 2008 9:16 am Post subject: [Freeswitch-users] Catching hangups |
|
|
Ok I have been testing more and I have reduced my problem to a pretty short and simple Lua script. I've posted it at http://pastebin.freeswitch.org/6373 and this gets called straight from the dialplan. From my experience so far it only exits after a caller hangup about 1 in 10 times. Most of the time it continues to loop until I do 'hupall'.
Thanks in advance if anyone can solve this or offer any advice.
Joe
2008/12/9 Joe Bain <mrjoebain@gmail.com (mrjoebain@gmail.com)>
Quote: | 2008/12/9 Ivan C Myrvold <ivan@myrvold.org (ivan@myrvold.org)>
Ah, I should have read more carefully!
The dialplan is here and the two important lua scripts are here and here, the first calls the second. I didn't include all the Lua script as the problem appears right at the start (as well as throughout) if the user hangs up when the IVR is speaking (asking for an id number) then it seems to never get a hangup and loops trying to get the id number.
Joe
|
|
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Tue Dec 09, 2008 11:03 am Post subject: [Freeswitch-users] Catching hangups |
|
|
On Dec 9, 2008, at 9:10 AM, Joe Bain wrote:
Quote: | Ok I have been testing more and I have reduced my problem to a pretty short and simple Lua script. I've posted it at http://pastebin.freeswitch.org/6373 and this gets called straight from the dialplan. From my experience so far it only exits after a caller hangup about 1 in 10 times. Most of the time it continues to loop until I do 'hupall'.
Thanks in advance if anyone can solve this or offer any advice.
Joe
2008/12/9 Joe Bain <mrjoebain@gmail.com (mrjoebain@gmail.com)>
Quote: | 2008/12/9 Ivan C Myrvold <ivan@myrvold.org (ivan@myrvold.org)>
Quote: | Did you read carefully when asked to provide login and password? The login and password is there, don't use your own freeswitch login.
Ivan
Den 9. des.. 2008 kl. 10:27 skrev Joe Bain:
Quote: | On Mon, Dec 8, 2008 at 8:57 AM, Joe Bain <mrjoebain@gmail.com (mrjoebain@gmail.com)> wrote:
Quote: | Hi,
I'm writing an IVR in Lua and am having problems dealing with hangups
cleanly. Very often session:ready() reports true long after I have hung up
and the hangup hook function I have set doesn't get called either. It seems
to report that the session is active indefinitely in some cases where a loop
keeps trying to get some dtmf key presses. Is there any trick to using
session:ready() or the hangup hook that I might have missed?
On a slightly related point I can't seem to access the session properties,
e.g. session.caller_id_num has a value of nil. Any thoughts here?
|
|
|
|
Quote: | Quote: | Quote: | Joe,
Quote: |
A few questions... what svn rev are you running? Which operating
system? Finally, is it possible for you to put your dialplan and Lua
script up at pastebin.freeswitch.org?
Thanks,
MC
| Hi,
I'm running "FreeSWITCH Version 1.0.trunk (10175M)" on Windows. I can post the dialplan and lua script though at the moment I can't seem to log in to the pastebin, I just became a member on the freeswitch homepage but the pass/username isn't being accepted.
Joe
|
|
Ah, I should have read more carefully!
The dialplan is here and the two important lua scripts are here and here, the first calls the second. I didn't include all the Lua script as the problem appears right at the start (as well as throughout) if the user hangs up when the IVR is speaking (asking for an id number) then it seems to never get a hangup and loops trying to get the id number.
Joe
|
|
We just tested this with current svn trunk and it appears to work fine, could you try updating and see if it is still a problem for you
Mike |
|
Back to top |
|
|
mrjoebain at gmail.com Guest
|
Posted: Tue Dec 09, 2008 12:10 pm Post subject: [Freeswitch-users] Catching hangups |
|
|
2008/12/9 Michael Jerris <mike@jerris.com (mike@jerris.com)>
Quote: |
On Dec 9, 2008, at 9:10 AM, Joe Bain wrote:
Quote: | Ok I have been testing more and I have reduced my problem to a pretty short and simple Lua script. I've posted it at http://pastebin.freeswitch.org/6373 and this gets called straight from the dialplan. From my experience so far it only exits after a caller hangup about 1 in 10 times. Most of the time it continues to loop until I do 'hupall'.
Thanks in advance if anyone can solve this or offer any advice.
Joe
2008/12/9 Joe Bain <mrjoebain@gmail.com (mrjoebain@gmail.com)>
Quote: | 2008/12/9 Ivan C Myrvold <ivan@myrvold.org (ivan@myrvold.org)>
Quote: | Did you read carefully when asked to provide login and password? The login and password is there, don't use your own freeswitch login.
Ivan
Den 9. des.. 2008 kl. 10:27 skrev Joe Bain:
Quote: | On Mon, Dec 8, 2008 at 8:57 AM, Joe Bain <mrjoebain@gmail.com (mrjoebain@gmail.com)> wrote:
Quote: | Hi,
I'm writing an IVR in Lua and am having problems dealing with hangups
cleanly. Very often session:ready() reports true long after I have hung up
and the hangup hook function I have set doesn't get called either. It seems
to report that the session is active indefinitely in some cases where a loop
keeps trying to get some dtmf key presses. Is there any trick to using
session:ready() or the hangup hook that I might have missed?
On a slightly related point I can't seem to access the session properties,
e.g. session.caller_id_num has a value of nil. Any thoughts here?
|
|
|
|
Quote: | Quote: | Quote: | Joe,
Quote: |
A few questions... what svn rev are you running? Which operating
system? Finally, is it possible for you to put your dialplan and Lua
script up at pastebin.freeswitch.org?
Thanks,
MC
| Hi,
I'm running "FreeSWITCH Version 1.0.trunk (10175M)" on Windows. I can post the dialplan and lua script though at the moment I can't seem to log in to the pastebin, I just became a member on the freeswitch homepage but the pass/username isn't being accepted.
Joe
|
|
Ah, I should have read more carefully!
The dialplan is here and the two important lua scripts are here and here, the first calls the second. I didn't include all the Lua script as the problem appears right at the start (as well as throughout) if the user hangs up when the IVR is speaking (asking for an id number) then it seems to never get a hangup and loops trying to get the id number.
Joe
|
|
We just tested this with current svn trunk and it appears to work fine, could you try updating and see if it is still a problem for you
Mike
_______________________________________________
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
|
I have to install FS on our server soon so when I do I'll see if the problem is still there. Though I'm testing on Vista and the server won't be running that so if the problem doesn't reappear it may not be conclusive. If I have any spare time I'll try a reinstall on my test machine but I probably won't unfortunately, my contract ends on wednesday at the company I'm working for.
Thanks for your help.
Joe |
|
Back to top |
|
|
|
|
|
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
|