Hello,

I had the same problem but i still no realy satisfied.

If you use failed we would know that your channel didnt anwered but 
currently I can't get informations about the cause of failed like busy or 
noanswer.

The section s-NOANSWER and s-BUSY is never called.

Is there any way to get the SIP response code when you go in failed section 
?


exten => s-NOANSWER,1,NoOp(TxFax exited with dialstatus ${DIALSTATUS})
exten => s-NOANSWER,2,Hangup()
exten => s-BUSY,1,NoOp(TxFax exited with dialstatus ${DIALSTATUS})
exten => s-BUSY,2,Hangup()

exten => failed,1,Set(CDR(userfield)=Call failed)
exten => failed,n,Set(CallTime=${STRFTIME(${EPOCH},GMT+2,%F %X)})
exten => failed,n,Set(FAXRECEIVER=${TONUMBER})
exten => failed,n,Set(DATEDEBUTEMISSION=${CallTime})
exten => failed,n,NoOp(TX: DIAlSTATUS is ${DIALSTATUS})
exten => failed,n,NoOp(TX: HANGUPCAUSE  is ${HANGUPCAUSE})
exten => failed,n,NoOp(TX: REASON is ${REASON})
exten => failed,n,NoOp(TX: CAUSECODE is ${CAUSECODE})
exten => failed,n,Hangup()

exten => h,1,Set(DATEFINEMISSION=${STRFTIME(${EPOCH},GMT+2,%F %X)})
exten => h,n,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
exten => h,n,Set(URI=${SIPCHANINFO(uri)})
exten => h,n,NoOp(TX: FAXPAGES is ${FAXPAGES})
exten => h,n,NoOp(TX: FAXRESOLUTION  is ${FAXRESOLUTION})
exten => h,n,NoOp(TX: FAXBITRATE is ${FAXBITRATE})
exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS})
exten => h,n,NoOp(TX: PHASEESTRING is ${PHASEESTRING})
exten => h,n,NoOp(TX: DIAlSTATUS is ${DIALSTATUS})
exten => h,n,NoOp(TX: HANGUPCAUSE  is ${HANGUPCAUSE})
exten => h,n,NoOp(TX: REASON is ${REASON})
exten => h,n,NoOp(TX: CAUSECODE is ${CAUSECODE})

Patrice

----- Original Message ----- 
From: <callweaver-users-requ...@callweaver.org>
To: <callweaver-users@callweaver.org>
Sent: Wednesday, September 02, 2009 12:00 PM
Subject: Callweaver-users Digest, Vol 30, Issue 2


> Send Callweaver-users mailing list submissions to
> callweaver-users@callweaver.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
> or, via email, send a message with subject or body 'help' to
> callweaver-users-requ...@callweaver.org
>
> You can reach the person managing the list at
> callweaver-users-ow...@callweaver.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Callweaver-users digest..."
>
>
> Today's Topics:
>
>   1. T.38 Fax - Call a script or sth. else when opening of the
>      channel fails. Or when giving up... (Rene Pankratz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 2 Sep 2009 07:42:51 +0200
> From: Rene Pankratz <iceb...@googlemail.com>
> Subject: [Callweaver-users] T.38 Fax - Call a script or sth. else when
> opening of the channel fails. Or when giving up...
> To: callweaver-users <callweaver-users@callweaver.org>
> Message-ID:
> <bb3967300909012242m1671dee7lf668550b66aba...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hallo list members.
> I followed the instructions on
> http://www.callweaver.org/wiki/Faxing+With+CallWeaver and I am able to
> successfully send T.38 FAX messages.
> As i want to evaluate the result of the process I added a System call to a
> self written Script that simply writes the results to my own logfile.
>
> But when opening of the the channel fails (e.g. when loop detected or 
> callee
> is busy) my script is never called and I will not get any result in my 
> log.
>
> So my callweaver needs to call a script when opening the channel fails. Or
> the best would be when e script is called when giving up to send the Fax.
>
> Is there a way to do this?
>
> Ren?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://lists.callweaver.org/pipermail/callweaver-users/attachments/20090902/3e2e97a3/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Callweaver-users mailing list
> Callweaver-users@callweaver.org
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
>
>
> End of Callweaver-users Digest, Vol 30, Issue 2
> *********************************************** 

_______________________________________________
Callweaver-users mailing list
Callweaver-users@callweaver.org
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to