[asterisk-dev] call counter not updating for fax

Remi Quezada remiq at monmouth.com
Mon May 21 06:59:23 MST 2007


Ever since I upgraded to 1.2.18 from 1.2.14, I found that the call 
counter is not updating properly for fax calls.  If I make a call to a 
sip device asterisk sees it as a peer and the call counter is updated to 
one, I get this debug message:

May 18 16:49:26 DEBUG[18468]: chan_sip.c:2083 sip_call: Outgoing Call 
for test
May 18 16:49:26 DEBUG[18468]: chan_sip.c:2228 update_call_counter: 
Updating call counter for outgoing call
May 18 16:49:26 DEBUG[18468]: chan_sip.c:2284 update_call_counter: Call 
to peer 'test' is 2 out of 2

Now by the end of the call if its detects that it is a fax call, the 
debug messages look different from a regular call.  The call type 
changes to incoming for some reason, I get this debug messages:

May 18 16:50:12 DEBUG[18468]: chan_sip.c:2448 sip_hangup: 
update_call_counter(test) - decrement call limit counter
May 18 16:50:12 DEBUG[18468]: chan_sip.c:2228 update_call_counter: 
Updating call counter for incoming call
May 18 16:50:12 DEBUG[18468]: chan_sip.c:2267 update_call_counter: Call 
from user 'test' removed from call limit 2

When this happens it is not decrementing from the peer and if you call 
the sip device again it is busy because the count never gets 
decremented.   The sip device type is set to friend, but if I change it 
to peer the problem is fixed.  The problem with just setting it to peer 
in my case is that I can only make this sip device work properly when 
type is set to friend in order to make incoming and outgoing calls.  Any 
ideas why the call counter is not updating properly?

Thanks


Remi



More information about the asterisk-dev mailing list