Try removing the "SIP_CODEC=alaw" from extensions.conf and try again.
U can set the SIP device's default codec to use in sip.conf. The conf
file also contain global info.
On Tue, 2009-03-17 at 16:53 +0000, vamara coulibaly wrote:
> Hi All;
>
> I have installed callweaver with :
> - callweaver-RC-1.1.99.20090317
> - spandsp-0.0.6pre7
> - Vale-20070928
>
> and these are my sip.conf and extensions.conf:
>
> --------------------
> sip.conf
> [general]
> context=default
> allowoverlap=no
> bindport=5060
> bindaddr=0.0.0.0
> srvlookup=yes
> language=us
> relaxdtmf=yes
> dtmfmode=rfc2833
> nat=yes
> disallow=all
> allow=ulaw
> allow=alaw
> canreinvite=no
> call-limit=1
> qualify = 2000
> t38udptlsupport=yes
>
>
> [9990101]
> type=friend
> username=9990101
> secret=9990101
> context=default
> host=dynamic
> language=us
> callerid="ATTOUNGBLAN"<9990101>
> accountcode=9990101
>
> [9990102]
> type=friend
> username=9990102
> secret=9990102
> context=default
> host=dynamic
> language=us
> callerid="DIARRA"<9990102>
> accountcode=9990102
>
> -------------------
> extensions.conf
>
> [general]
> static=yes
> writeprotect=no
> clearglobalvars=no
>
> [default]
>
> exten => 9990101,1,Dial(SIP/9990101,40,rtT)
> exten => 9990101,2,Playback("magic_callee_online")
> exten => 9990101,3,Voicemail(9990101,u)
> exten => 9990101,4,Hangup
> exten => 9990101,n+101,Voicemail(9990101,b)
>
> exten => 9990102,hint,SIP/9990102
> exten => 9990102,1,Dial(SIP/9990102,40,rtT)
> exten => 9990102,2,Playback("magic_callee_online")
> exten => 9990102,3,Voicemail(9990102,u)
> exten => 9990102,4,Hangup
> exten => 9990102,n+101,Voicemail(9990102,b)
>
> include => faxin
> include => faxout
> include => myfax
>
> [faxin]
> exten => s,1,Set(LOCALSTATIONID=CallWeaver FAX)
> exten => s,n,Set(LOCALHEADERINFO=Callewaver fax termination)
> exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif)
> exten => s,n,Set(FAXFILENOEXT=/tmp/${UNIQUEID})
> exten => s,n,Set(SIP_CODEC=alaw)
> exten => s,n,SipDTMFMode(inband)
> exten => s,n,RxFAX(${FAXFILE},ecm)
> exten => s,n,Hangup()
> exten => h,1,NoOp(RxFAX completed)
> exten => h,n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID})
> exten => h,n,NoOp(RX: FAXPAGES is ${FAXPAGES})
> exten => h,n,NoOp(RX: FAXRESOLUTION is ${FAXRESOLUTION})
> exten => h,n,NoOp(RX: FAXBITRATE is ${FAXBITRATE})
> exten => h,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS})
> exten => h,n,NoOp(RX: PHASESTRING is ${PHASEESTRING})
>
>
> [faxout]
> exten => s,1,Set(LOCALSTATIONID=CallWeaver FAX)
> exten => s,n,Set(LOCALHEADERINFO=Callewaver fax termination)
> exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif)
> exten => s,n,Set(SIP_CODEC=alaw)
> exten => s,n,SipDTMFMode(inband)
> exten => s,n,TxFAX(${FAXFILE},caller,debug,ecm)
> exten => s,n,Hangup()
> exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID})
> 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})
>
>
> [detectfax]
> exten => s,1,FaxDetect(8000)
> exten => s,n,Hangup()
> exten => fax,1,NoOp(Fax detected)
> exten => fax,n,Set(LOCALSTATIONID=CallWeaver FAX)
> exten => fax,n,Set(LOCALHEADERINFO=Callewaver fax termination wih
> detection)
> exten => fax,n,RxFAX(/tmp/${UNIQUEID}.tiff)
> exten => fax,n,Hangup()
> exten => h,1,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID})
> exten => h,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS})
> exten => h,n,NoOp(RX: PHASEESTRING is ${PHASEESTRING})
>
>
> [myfax]
> exten => 800,1,Goto(faxin,s,1);
> exten => 801,1,Goto(faxout,s,1);
> exten => 802,1,Goto(detectfax,s,1);
>
> -------
>
> as you can see my dialplan isn't optimized (i'm a beginner).
>
> I have sent a fax to the 800's extensions and i have obtained the tiff
> file in /tmp directory and that has worked only one time. all the
> times i have tried, i got an error message. below, the two logs :
> ---------------------------------------------
> -- Executing [...@default:1] Goto("SIP/9990105-e839", "faxin,s,1")
> -- Goto (faxin, s, 1)
> -- Executing [...@faxin:1] Set("SIP/9990105-e839",
> "LOCALSTATIONID=CallWeaver FAX")
> -- Executing [...@faxin:2] Set("SIP/9990105-e839",
> "LOCALHEADERINFO=Callewaver fax termination")
> -- Executing [...@faxin:3] Set("SIP/9990105-e839",
> "FAXFILE=/tmp/mycallweaverbox-1237303930.0.tif")
> -- Executing [...@faxin:4] Set("SIP/9990105-e839",
> "FAXFILENOEXT=/tmp/mycallweaverbox-1237303930.0")
> -- Executing [...@faxin:5] Set("SIP/9990105-e839", "SIP_CODEC=alaw")
> -- Executing [...@faxin:6] SipDTMFMode("SIP/9990105-e839", "inband")
> -- Executing [...@faxin:7] RxFAX("SIP/9990105-e839",
> "/tmp/mycallweaverbox-1237303930.0.tif,ecm")
> Mar 17 15:32:10 NOTICE[3059407760]: chan_sip.c:4006
> try_suggested_sip_codec: Changing codec to 'alaw' for this call
> because of ${SIP_CODEC) variable
> Mar 17 15:32:10 NOTICE[3059407760]: chan_sip.c:4006
> try_suggested_sip_codec: Changing codec to 'alaw' for this call
> because of ${SIP_CODEC) variable
> -- Executing [...@faxin:8] Hangup("SIP/9990105-e839", "")
> == Spawn extension (faxin, s, 8) exited non-zero on
> 'SIP/9990105-e839'
> -- Executing [...@faxin:1] NoOp("SIP/9990105-e839", "RxFAX
> completed")
> -- Executing [...@faxin:2] NoOp("SIP/9990105-e839", "RX:
> REMOTESTATIONID is 0022524477855")
> -- Executing [...@faxin:3] NoOp("SIP/9990105-e839", "RX: FAXPAGES is
> 1")
> -- Executing [...@faxin:4] NoOp("SIP/9990105-e839", "RX:
> FAXRESOLUTION is 3850")
> -- Executing [...@faxin:5] NoOp("SIP/9990105-e839", "RX: FAXBITRATE
> is 9600")
> -- Executing [...@faxin:6] NoOp("SIP/9990105-e839", "RX:
> PHASEESTATUS is 0")
> -- Executing [...@faxin:7] NoOp("SIP/9990105-e839", "RX: PHASESTRING
> is OK")
>
> *CLI>
> -- Executing [...@default:1] Goto("SIP/9990105-7623", "faxin,s,1")
> -- Goto (faxin, s, 1)
> -- Executing [...@faxin:1] Set("SIP/9990105-7623",
> "LOCALSTATIONID=CallWeaver FAX")
> -- Executing [...@faxin:2] Set("SIP/9990105-7623",
> "LOCALHEADERINFO=Callewaver fax termination")
> -- Executing [...@faxin:3] Set("SIP/9990105-7623",
> "FAXFILE=/tmp/mycallweaverbox-1237304174.1.tif")
> -- Executing [...@faxin:4] Set("SIP/9990105-7623",
> "FAXFILENOEXT=/tmp/mycallweaverbox-1237304174.1")
> -- Executing [...@faxin:5] Set("SIP/9990105-7623", "SIP_CODEC=alaw")
> -- Executing [...@faxin:6] SipDTMFMode("SIP/9990105-7623", "inband")
> -- Executing [...@faxin:7] RxFAX("SIP/9990105-7623",
> "/tmp/mycallweaverbox-1237304174.1.tif,ecm")
> Mar 17 15:36:14 NOTICE[3059141520]: chan_sip.c:4006
> try_suggested_sip_codec: Changing codec to 'alaw' for this call
> because of ${SIP_CODEC) variable
> Mar 17 15:36:14 NOTICE[3059141520]: chan_sip.c:4006
> try_suggested_sip_codec: Changing codec to 'alaw' for this call
> because of ${SIP_CODEC) variable
> -- Executing [...@faxin:1] NoOp("SIP/9990105-7623", "RxFAX
> completed")
> -- Executing [...@faxin:2] NoOp("SIP/9990105-7623", "RX:
> REMOTESTATIONID is 0022524477855")
> -- Executing [...@faxin:3] NoOp("SIP/9990105-7623", "RX: FAXPAGES is
> 0")
> -- Executing [...@faxin:4] NoOp("SIP/9990105-7623", "RX:
> FAXRESOLUTION is 3850")
> -- Executing [...@faxin:5] NoOp("SIP/9990105-7623", "RX: FAXBITRATE
> is 9600")
> -- Executing [...@faxin:6] NoOp("SIP/9990105-7623", "RX:
> PHASEESTATUS is 49")
> -- Executing [...@faxin:7] NoOp("SIP/9990105-7623", "RX: PHASESTRING
> is The call dropped prematurely")
>
>
> Could someone help me to fix that problem ?
> NB: i use Sagem FAX_ATA_101S for my tests.
>
> Best Regards;
>
> ______________________________________________________________________
> Découvrez toutes les possibilités de communication avec vos proches
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users