Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using astersik real time (dynamic). I have entered my SIP trunk details into the sippeers tables.

However, the sip trunk does not perform a register with the SIP TRUNK providers servers as it would if wrote it in sip.conf manually as

register => username:password@

I use the recommended sippeers table as describe at the asterisk documentation:,+MySQL+table+structure

I know that the sip trunk is not being registered because :

  1. i do not see it as registered when i do a sip show registry on the asterisk CLI

  2. When i attempt to make a call, asterisk throws a forbidden error.

  3. It however recognises my sip trunk as a peer.

  4. When i manually write the entries into the sip.conf file, it all works. i.e: register statement and sip trunk peer description.

Any inputs will be appreciated.

share|improve this question

Not gonna work.

Use #exec directive to execute external script which retrieves registration data from DB, and outputs correct registration string as text.

Do not forget to enable #exec in asterisk.conf

You will need to do sip reload each time you change registration settings.

With reload you will lose all existing registrations and all previously registered devices will be unreachable till they register again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.