I am trying to forward SIP requests received from Asterisk to another SIP server. I am doing this specifically because I am trying to keep track of user registrations on this second server.
I just tested the second SIP server with an ordinary SIP client and everything works well: receives register, response 200 OK.
Now: how to forward requests received from Asterisk to the second SIP server?
Is there any other way to keep track of the users registration? Like Asterisk sending a notification or making a request to another server when a register comes in?
You should use another setup, use Kamailio as a registrar, use the the DMQ_USERLOC module to sync the regs to second Kamailio, route calls from Kamailio to Asterisk… Downside… Have to learn how to work with Kamailio.
No, that is for a call queue agent. An event that may be useful is ContactStatus[1]. The easiest thing would be to just connect to AMI, perform various things, and get a feel for the events.
Just a question, maybe I dont understand, now the other server only knows that a peer is reachable or unreachable, but you dont know how to reach the peer…Or am I in need of a new pair of glasses…