i have 4 peer setup with the same remote ip/port, each peer can only do 1 call at a time incoming or outgoing, everything is working fine, i can receive inbound and do outbound calls, now my problem is with call counters if i have incoming calls for peer no. 3 the counter counts peer no1. showing in sip show inuse, even incoming call for peer no.4 it is counted on peer no.1 , probably because they are on the same ip address and type=peer checks the source ip firsthand. is there any other way to make incoming calls count the correct peer instead of defaulting to the first peer ? and another issue is that asterisk cant figure out device_state properly, even if peer 3 has an existing calls sip show inuse shows that it is not in use.
my sip.conf setup