[Asterisk-Users] FAX difference IAXModem / Hylafax and spandsp
app_rxfax
James Armstrong
james at thearmstrongs.org
Mon Nov 28 07:52:53 MST 2005
Found out why there is no original DID set. It looks like while waiting
for the incoming digits timeout (DID), we are getting the fax tone
detect and it is sending a digit 'f' which immediately starts the fax
extension before the incoming DID has been saved.
Is there a way to set in the zap config how many digits we are receiving
so there is not timeout waiting for the last digit? We only get 7 digits
coming in.
- James
James Armstrong wrote:
> I looked into why I can't get the original DID number called when a fax
> is detected (so I can later route to the correct email address). There
> is a variable called FAXEXTEN that is created when a fax is detected,
> but it is not being populated with the original extension / did number
> called. It always has 's' as the original extension. Does anyone know
> how to fix this? I just want to use the zap fax detection so each person
> can have their personal DID number accept faxes and calls, then route
> the fax to their email address based on the DID number called.
>
> - James
>
>
> James Armstrong wrote:
>
>>> In this example faxdetect is overwriting the DID.
>>>
>>> So the trick then would be to somewhere early-on in your dialplan
>>> grab the DID into some variable, and then restore it after the fax
>>> detection occurs...
>>>
>>> [default]
>>> exten => _X.,1, SetVar(ORIGEXTEN=${EXTEN})
>>> exten => s,2,Wait(3)
>>> .....
>>> exten => fax,1,Dial(IAX2/ttyIAX0/${ORIGEXTEN})
>>>
>>> Lee.
>>
>>
>>
>> I am having no luck here. It seems the fax detection is overriding
>> everything. I added the above and it never gets called. I guess it
>> might be time to look at the Asterisk code and see if I can create
>> another variable before the redirect happens.
>>
>> -- Starting simple switch on 'Zap/1-1'
>> -- Redirecting Zap/1-1 to fax extension
>> -- Executing Dial("Zap/1-1", "IAX2/999/|20") in new stack
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list