hello,
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
register =>1111@111.222.333.444
register =>2222@111.222.333.444
register =>3333@111.222.333.444
register =>4444@111.222.333.444
[L1]
type=peer
defaultuser=11111
host=111.222.3333.4444
[L2]
type=peer
defaultuser=22222
host=111.222.3333.4444
[L3]
type=peer
defaultuser=33333
host=111.222.3333.4444
[L4]
type=peer
defaultuser=44444
host=111.222.3333.4444