VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nik.middleton at noble... Guest
|
Posted: Sat Feb 28, 2009 6:04 pm Post subject: [Freeswitch-users] Orginate: getting status of call fail |
|
|
Hi Guys,
I’ve been running a test script written in lua which now works very well thanks to Anthony’s fix to stream file.
Right now I’m using an event socket to initiate the call and passing the name of the script along with originate thus:
$dialstring = "originate {ignore_early_media=true,origination,originate_timeout=25}sofia/gateway/Mygw/phonenum '&lua(helloworld.lua )'";
$result = $obj ->bgapi_command($dialstring);
The script gets fired (it would appear) on answer. However, if the number is invalid , timed out or was busy, I’m not sure the script gets executed or am I wrong?
I want to be able to fire an event back on what happed to the call in the event that it failed for whatever reason.
I know I can simply call the originate and pass the number as an argument and execute the dial within the script but I’m led to believe that’s not very efficient, or am I completely wrong?
Looking for the most FS friendly way here
Regards, |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Mar 02, 2009 9:09 am Post subject: [Freeswitch-users] Orginate: getting status of call fail |
|
|
The best way would be to add a few custom variables and add a secondary system that monitors the CDR data and uses the
custom variables to identify what you want to do with the failed calls.
On Sat, Feb 28, 2009 at 4:49 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Quote: |
Hi Guys,
I’ve been running a test script written in lua which now works very well thanks to Anthony’s fix to stream file.
Right now I’m using an event socket to initiate the call and passing the name of the script along with originate thus:
$dialstring = "originate {ignore_early_media=true,origination,originate_timeout=25}sofia/gateway/Mygw/phonenum '&lua(helloworld.lua )'";
$result = $obj ->bgapi_command($dialstring);
The script gets fired (it would appear) on answer. However, if the number is invalid , timed out or was busy, I’m not sure the script gets executed or am I wrong?
I want to be able to fire an event back on what happed to the call in the event that it failed for whatever reason.
I know I can simply call the originate and pass the number as an argument and execute the dial within the script but I’m led to believe that’s not very efficient, or am I completely wrong?
Looking for the most FS friendly way here
Regards,
_______________________________________________
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/
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 |
|
|
nik.middleton at noble... Guest
|
Posted: Mon Mar 02, 2009 10:00 am Post subject: [Freeswitch-users] Orginate: getting status of call fail |
|
|
That’s what I was wondering, however, won’t the response to the bagi (not the initial) give me the info on the call result?
Regards
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: 02 March 2009 14:00
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Orginate: getting status of call fail
The best way would be to add a few custom variables and add a secondary system that monitors the CDR data and uses the
custom variables to identify what you want to do with the failed calls.
On Sat, Feb 28, 2009 at 4:49 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Hi Guys,
I’ve been running a test script written in lua which now works very well thanks to Anthony’s fix to stream file.
Right now I’m using an event socket to initiate the call and passing the name of the script along with originate thus:
$dialstring = "originate {ignore_early_media=true,origination,originate_timeout=25}sofia/gateway/Mygw/phonenum '&lua(helloworld.lua )'";
$result = $obj ->bgapi_command($dialstring);
The script gets fired (it would appear) on answer. However, if the number is invalid , timed out or was busy, I’m not sure the script gets executed or am I wrong?
I want to be able to fire an event back on what happed to the call in the event that it failed for whatever reason.
I know I can simply call the originate and pass the number as an argument and execute the dial within the script but I’m led to believe that’s not very efficient, or am I completely wrong?
Looking for the most FS friendly way here
Regards,
_______________________________________________
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/
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 |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Mar 02, 2009 10:36 am Post subject: [Freeswitch-users] Orginate: getting status of call fail |
|
|
yes if you match the job uuid from bgapi to the SWITCH_EVENT_BACKGROUND_JOB event, you would get the result in that event.
On Mon, Mar 2, 2009 at 8:49 AM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Quote: |
That’s what I was wondering, however, won’t the response to the bagi (not the initial) give me the info on the call result?
Regards
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Anthony Minessale
Sent: 02 March 2009 14:00
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Orginate: getting status of call fail
The best way would be to add a few custom variables and add a secondary system that monitors the CDR data and uses the
custom variables to identify what you want to do with the failed calls.
On Sat, Feb 28, 2009 at 4:49 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Hi Guys,
I’ve been running a test script written in lua which now works very well thanks to Anthony’s fix to stream file.
Right now I’m using an event socket to initiate the call and passing the name of the script along with originate thus:
$dialstring = "originate {ignore_early_media=true,origination,originate_timeout=25}sofia/gateway/Mygw/phonenum '&lua(helloworld.lua )'";
$result = $obj ->bgapi_command($dialstring);
The script gets fired (it would appear) on answer. However, if the number is invalid , timed out or was busy, I’m not sure the script gets executed or am I wrong?
I want to be able to fire an event back on what happed to the call in the event that it failed for whatever reason.
I know I can simply call the originate and pass the number as an argument and execute the dial within the script but I’m led to believe that’s not very efficient, or am I completely wrong?
Looking for the most FS friendly way here
Regards,
_______________________________________________
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/
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
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
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 |
|
|
|
|
|
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
|