0

I have been reading about SIP and SIP Servers, especially Asterisk.

Something is still confusing me: What happens if the IP address of the peer (recipient) changes?

How does Asterisk know that the IP has changed? Or does the peer have to send a signal to Asterisk that it has changed its IP? and how does it update it on the server?

I realize this sounds like an open question, but I could not find the answer anywhere on the web. Can someone point me in the right direction for an explanation of how this situation is handled?

Nate Barbettini
  • 51,256
  • 26
  • 134
  • 147
Pacemaker
  • 1,117
  • 2
  • 17
  • 36

1 Answers1

1

Peer is responsibel for sent REGISTER message with auth info

Once that message come, asterisk depend of settings set ip to ip in message OR ip from which message received.

If ip changes and no new registration message recived, it will just nto work until new registration. So for 4g or other "bad" links you have set re-register interval to low values like 60 second

arheops
  • 15,544
  • 1
  • 21
  • 27
  • Thanks again @arheops . One more thing, If my peers/users are stored in a mysql database, how would I update the table when I receive a register message? Do I need to write a script? or does Asterisk handle that, if so what is required from me? – Pacemaker Feb 08 '15 at 10:22
  • 1
    IF you users orginized like this http://www.voip-info.org/wiki/view/Asterisk+RealTime+Sip then you not need do anything. asterisk will update registration info if you have in general section rtupdate = yes – arheops Feb 08 '15 at 16:11