[Asterisk-Users] FAX difference IAXModem / Hylafax and spandsp app_rxfax

James Armstrong james at thearmstrongs.org
Fri Nov 18 13:14:21 MST 2005


>>
>>> Thanks, that helps. What variable (in Asterisk) would I modify if I 
>>> wanted to tweak one of the CALLERID fields that gets passed? Right 
>>> now, it is not passing the DID number the fax came in on, it is 
>>> always passing 's' as the NDID. 
>>
>>
>>
>>
>> I think the key is to just not alter the DID to begin with:
>>
>>  exten => 5551212,1,Dial(IAX2/ttyIAX0)
> 
> The only problem here is, we are using our normal did numbers that 
> forward to our extensions. Asterisk detects the fax tone and sends it to 
> the exten => fax,1,.... extension.
> 
>>
>> instead of:
>>
>>  exten => s,1,Dial(IAX2/ttyIAX0)
> 
> I will try setting the caller id based on the DID number that was called 
> and see if that works.
> 
>>
>> If you need some kind of pattern matching, then use it, but using "s" 
>> rewrites the DID.
>>

Does Asterisk have a variable that keeps the original ${EXTEN} anywhere? 
I tried to use the exten => fax,1,Set(CALLERID(number)=${EXTEN}) 
function to set the original DID number that the call came in on, but by 
the time it gets to the fax, the Extension is already set to 'fax' and I 
do not know the DID number that was called. I also tried to use 
Set(CALLERID(number)=${FROM_DID}), but it looks like Asterisk is 
detecting the fax tone and diverting the call before it even gets to the 
[from-did] section of my extensions_additional.conf file.

Thanks,
James




More information about the asterisk-users mailing list