[Asterisk-Users] FAX difference IAXModem / Hylafax and spandsp
app_rxfax
James Armstrong
james at thearmstrongs.org
Mon Nov 28 06:48:36 MST 2005
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
More information about the asterisk-users
mailing list