Send email on successful fax sending.
Hi all, I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ? Any help is much appreciated. thanks Marc
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ? Very grateful for any pointers thanks Marc On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com>wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
I dont think you will manage it this way. AFAIR, after the fax is sent, some channel variables are set, but I am not sure if there is a way to read them before the call is closed. If not, you need to get them from the CDR. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 21/01/2011 à 09:14, Marc de Corny a écrit :
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com> wrote: Hi all,
I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
Thanks David. I will see what I can find Marc On Fri, Jan 21, 2011 at 8:19 AM, David Ponzone <david.ponzone@ipeva.fr>wrote:
I dont think you will manage it this way. AFAIR, after the fax is sent, some channel variables are set, but I am not sure if there is a way to read them before the call is closed. If not, you need to get them from the CDR.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 21/01/2011 à 09:14, Marc de Corny a écrit :
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com>wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable. mod_spandsp_fax.c:412 is "TODO Fire events" It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status. If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not. -Steve On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch> wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
Thanks, all I have not investigated the ESL options yet, I will have a look and see, many thanks for the responses, Marc On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com> wrote:
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable.
mod_spandsp_fax.c:412 is "TODO Fire events"
It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status.
If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not.
-Steve
On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch> wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
I've just put a patch together for mod_spandsp that should add the required event. It's on Jira, FS-3004. http://jira.freeswitch.org/browse/FS-3004 I've checked it compiles, but I have no T38 capable gateways so someone else will need to test it out. Does anyone fancy trying it out? -Steve On 21 January 2011 12:40, Marc de Corny <marcdecorny@gmail.com> wrote:
Thanks, all I have not investigated the ESL options yet, I will have a look and see,
many thanks for the responses,
Marc
On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com> wrote:
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable.
mod_spandsp_fax.c:412 is "TODO Fire events"
It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status.
If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not.
-Steve
On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch> wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
_______________________________________________ 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
One other thing you could do is use api_reporting_hook. There, you will have variables set and you can run a script that you like. Beware that in this script, you won't have session. I think api_reporting_hook is still undocumented... João Mesquita On Fri, Jan 21, 2011 at 10:10 AM, Steven Ayre <steveayre@gmail.com> wrote:
I've just put a patch together for mod_spandsp that should add the required event.
It's on Jira, FS-3004. http://jira.freeswitch.org/browse/FS-3004
I've checked it compiles, but I have no T38 capable gateways so someone else will need to test it out. Does anyone fancy trying it out?
-Steve
On 21 January 2011 12:40, Marc de Corny <marcdecorny@gmail.com> wrote:
Thanks, all I have not investigated the ESL options yet, I will have a look and see,
many thanks for the responses,
Marc
On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com>wrote:
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable.
mod_spandsp_fax.c:412 is "TODO Fire events"
It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status.
If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not.
-Steve
On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch>wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
_______________________________________________ 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
Hello Steve, I am also working around the fax module and I would like to get the fax delivery status through "uuid_getvar uuid fax_success" api function, so I have installed this patch. But it is still not fetching the required status. Please assist. Regards, Rex -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Send-email-on-successful-fax-s... Sent from the freeswitch-users mailing list archive at Nabble.com.
That won't work if the channel no longer exists (it accesses the channel's object and gets the variable stored there). You can either use a hangup hook as someone else suggested (runs after hangup but before the session is destroyed so the channels are still available) or look at my event patch which raises an event containing a header with that variable's value. -Steve On 21 January 2011 16:38, rex.alex <rajesh.npnr@yahoo.com> wrote:
Hello Steve,
I am also working around the fax module and I would like to get the fax delivery status through "uuid_getvar uuid fax_success" api function, so I have installed this patch. But it is still not fetching the required status.
Please assist.
Regards, Rex ------------------------------ View this message in context: Re: Send email on successful fax sending.<http://freeswitch-users.2379917.n2.nabble.com/Send-email-on-successful-fax-sending-tp5881415p5948386.html> Sent from the freeswitch-users mailing list archive<http://freeswitch-users.2379917.n2.nabble.com/>at Nabble.com.
_______________________________________________ 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
On Fri, Jan 21, 2011 at 6:44 PM, Steven Ayre <steveayre@gmail.com> wrote:
That won't work if the channel no longer exists (it accesses the channel's object and gets the variable stored there).
You can either use a hangup hook as someone else suggested (runs after hangup but before the session is destroyed so the channels are still available) or look at my event patch which raises an event containing a header with that variable's value.
-Steve
Could be off topic here, but we are using linger for this: http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events George
Hello, I am using api_hangup_hook and calling a lua function with env:serialize(),env:getHeader("fax_success") to fetch the delivery status. But I would like to use javascript since I am familiar with javascript odbc to store the status in db, so what is the javascript equivalent to these functions as I tried env.serialize(); and event.serialize(); nothing seems to be working. Please assist how to call these methods http://wiki.freeswitch.org/wiki/Javascript_Event#Methods Thanks, Rex -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Send-email-on-successful-fax-s... Sent from the freeswitch-users mailing list archive at Nabble.com.
The api_reporting_hook is called on the same state where the CDRs are available so you are 100% sure that you have all vars that go to CDR available. Regards, João Mesquita On Fri, Jan 21, 2011 at 1:44 PM, Steven Ayre <steveayre@gmail.com> wrote:
That won't work if the channel no longer exists (it accesses the channel's object and gets the variable stored there).
You can either use a hangup hook as someone else suggested (runs after hangup but before the session is destroyed so the channels are still available) or look at my event patch which raises an event containing a header with that variable's value.
-Steve
On 21 January 2011 16:38, rex.alex <rajesh.npnr@yahoo.com> wrote:
Hello Steve,
I am also working around the fax module and I would like to get the fax delivery status through "uuid_getvar uuid fax_success" api function, so I have installed this patch. But it is still not fetching the required status.
Please assist.
Regards, Rex ------------------------------ View this message in context: Re: Send email on successful fax sending.<http://freeswitch-users.2379917.n2.nabble.com/Send-email-on-successful-fax-sending-tp5881415p5948386.html> Sent from the freeswitch-users mailing list archive<http://freeswitch-users.2379917.n2.nabble.com/>at Nabble.com.
_______________________________________________ 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
Hi Marc, Brian's committed this patch to the trunk 27/1/2011 in 314a2a1e. You'd now be able to connect via ESL, do originate and then wait for the spandsp::txfaxresult event, then send the success/failure email. -Steve On 21 January 2011 13:10, Steven Ayre <steveayre@gmail.com> wrote:
I've just put a patch together for mod_spandsp that should add the required event.
It's on Jira, FS-3004. http://jira.freeswitch.org/browse/FS-3004
I've checked it compiles, but I have no T38 capable gateways so someone else will need to test it out. Does anyone fancy trying it out?
-Steve
On 21 January 2011 12:40, Marc de Corny <marcdecorny@gmail.com> wrote:
Thanks, all I have not investigated the ESL options yet, I will have a look and see,
many thanks for the responses,
Marc
On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com>wrote:
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable.
mod_spandsp_fax.c:412 is "TODO Fire events"
It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status.
If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not.
-Steve
On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch>wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
_______________________________________________ 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
fantastic. let me give it a go and see. thanks for your help guys Marc On Fri, Jan 28, 2011 at 8:32 AM, Steven Ayre <steveayre@gmail.com> wrote:
Hi Marc,
Brian's committed this patch to the trunk 27/1/2011 in 314a2a1e.
You'd now be able to connect via ESL, do originate and then wait for the spandsp::txfaxresult event, then send the success/failure email.
-Steve
On 21 January 2011 13:10, Steven Ayre <steveayre@gmail.com> wrote:
I've just put a patch together for mod_spandsp that should add the required event.
It's on Jira, FS-3004. http://jira.freeswitch.org/browse/FS-3004
I've checked it compiles, but I have no T38 capable gateways so someone else will need to test it out. Does anyone fancy trying it out?
-Steve
On 21 January 2011 12:40, Marc de Corny <marcdecorny@gmail.com> wrote:
Thanks, all I have not investigated the ESL options yet, I will have a look and see,
many thanks for the responses,
Marc
On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com>wrote:
But since the channel will hangup, you'd need to wait for and check the CDR to see that variable.
mod_spandsp_fax.c:412 is "TODO Fire events"
It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status.
If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not.
-Steve
On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch>wrote:
On 21.01.2011 09:14, Marc de Corny wrote:
Hi There, Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail.
- Thomas
_______________________________________________ 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
_______________________________________________ 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
That's a good ----- Original Message ----- From: Marc de Corny To: FreeSWITCH Users Help Sent: Friday, January 28, 2011 8:25 AM Subject: Re: [Freeswitch-users] Send email on successful fax sending. fantastic. let me give it a go and see. thanks for your help guys Marc On Fri, Jan 28, 2011 at 8:32 AM, Steven Ayre <steveayre@gmail.com> wrote: Hi Marc, Brian's committed this patch to the trunk 27/1/2011 in 314a2a1e. You'd now be able to connect via ESL, do originate and then wait for the spandsp::txfaxresult event, then send the success/failure email. -Steve On 21 January 2011 13:10, Steven Ayre <steveayre@gmail.com> wrote: I've just put a patch together for mod_spandsp that should add the required event. It's on Jira, FS-3004. http://jira.freeswitch.org/browse/FS-3004 I've checked it compiles, but I have no T38 capable gateways so someone else will need to test it out. Does anyone fancy trying it out? -Steve On 21 January 2011 12:40, Marc de Corny <marcdecorny@gmail.com> wrote: Thanks, all I have not investigated the ESL options yet, I will have a look and see, many thanks for the responses, Marc On Fri, Jan 21, 2011 at 12:33 PM, Steven Ayre <steveayre@gmail.com> wrote: But since the channel will hangup, you'd need to wait for and check the CDR to see that variable. mod_spandsp_fax.c:412 is "TODO Fire events" It looks like that it's planned for mod_spandsp to fire an event that'll indicate that the fax has finished sending and would contain the status. If that was implemented, you could connect via ESL, do the originate and wait for the event to tell you whether it worked or not. -Steve On 21 January 2011 12:07, Thomas Mueller <thomas@chaschperli.ch> wrote: On 21.01.2011 09:14, Marc de Corny wrote: > Hi There, > Has anybody had any ideas on this ? I imagine you must all have the > same requirement in the Email to Fax scenario ? reading the sourcecode the channel var "fax_success" gets set to 1 for OK, to 0 for fail. - Thomas _______________________________________________ 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 _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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
You can use api_hangup_hook to call a lua script to do this right now: http://wiki.freeswitch.org/wiki/Mod_lua#Special_Case:_env_object On Fri, Jan 21, 2011 at 3:14 AM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
-- Kristian Kielhofner
Could be off topic here but we are using linger for receiving all the events and sending email on fax - http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events <http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events>George 2011/1/21 Kristian Kielhofner <kris@kriskinc.com>
You can use api_hangup_hook to call a lua script to do this right now:
http://wiki.freeswitch.org/wiki/Mod_lua#Special_Case:_env_object
On Fri, Jan 21, 2011 at 3:14 AM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound
fax
from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
-- Kristian Kielhofner
_______________________________________________ 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
That's only for outbound sockets though, isn't it? Looks like you're talking about sending email on received fax, while he's looking for email confirmation on transmitted fax. -Steve On 21 January 2011 17:45, George Niculae <george.niculae79@gmail.com> wrote:
Could be off topic here but we are using linger for receiving all the events and sending email on fax - http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events
<http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events>George
2011/1/21 Kristian Kielhofner <kris@kriskinc.com>
You can use api_hangup_hook to call a lua script to do this right now:
http://wiki.freeswitch.org/wiki/Mod_lua#Special_Case:_env_object
On Fri, Jan 21, 2011 at 3:14 AM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound
fax
from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
-- Kristian Kielhofner
_______________________________________________ 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
Yes, you are right, I really was off topic George On Fri, Jan 21, 2011 at 9:30 PM, Steven Ayre <steveayre@gmail.com> wrote:
That's only for outbound sockets though, isn't it?
Looks like you're talking about sending email on received fax, while he's looking for email confirmation on transmitted fax.
-Steve
On 21 January 2011 17:45, George Niculae <george.niculae79@gmail.com> wrote:
Could be off topic here but we are using linger for receiving all the events and sending email on fax - http://wiki.freeswitch.org/wiki/Event_socket_outbound#Events George
2011/1/21 Kristian Kielhofner <kris@kriskinc.com>
You can use api_hangup_hook to call a lua script to do this right now:
http://wiki.freeswitch.org/wiki/Mod_lua#Special_Case:_env_object
On Fri, Jan 21, 2011 at 3:14 AM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi There,
Has anybody had any ideas on this ? I imagine you must all have the same requirement in the Email to Fax scenario ?
Very grateful for any pointers thanks Marc
On Thu, Dec 30, 2010 at 3:29 PM, Marc de Corny <marcdecorny@gmail.com> wrote:
Hi all,
I have got all the inbound fax working and can get FS to send outbound fax from the shell by using the commands : /opt/freeswitch/bin/fs_cli \ --execute="originate {fax_verbose=true}$DEST &txfax($TMPFAX)" as in the wiki
However I'm looking for a way of notifying the sender on the success or failure of the fax emission. Is there a way of getting a result back from that command like fax_success 0/1 that will allow me then to send the relevant emails out ?
Any help is much appreciated.
thanks Marc
_______________________________________________ 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
-- Kristian Kielhofner
_______________________________________________ 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
_______________________________________________ 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
participants (10)
-
David Ponzone
-
George Niculae
-
George Niculae
-
João Mesquita
-
Kristian Kielhofner
-
Madovsky
-
Marc de Corny
-
rex.alex
-
Steven Ayre
-
Thomas Mueller