I’m new to asterisk, and I’m looking for an answer to the following question:
Let’s say I set the host=dynamic option to a sip friend. How can I save to a database (mysql) the ip he last registered from?
If I enter the “sip show peers” command in the CLI, I get all the info I need. So I’m assuming the asterisk keeps this info
in the memory (quite evident I guess). If he does it is just a problem of updateing the corresponding values (in the
database) every time these values change.
Is this option available somehow?
Any comments, links, docs regarding my problem are greatly apreciated.