Kasinath Kottukkal
Kasinath Kottukkal

Reputation: 2589

Trouble with authenticating using Kamailio

I just installed Kamailio in one server and Asterisk in another. Asterisk loads it sipusers info from database which is in Kamailio server.

I don't know how to go further. How can I authenticate Asterisk users through Kamailio. I am trying to authenticate using a sipphone. But no luck.

I am missing alot here. I know we can add users using the following command

kamctl add username password

But I already have users in asterisk realtime db. Is there any difference? Awaiting your reply,

Thanks in advance,

Upvotes: 0

Views: 2463

Answers (2)

Mir Dunaev
Mir Dunaev

Reputation: 21

Also make sure that your password is not too long , as there is some md5/ha1 challenge that doesn't like passwords to be extremely long.

kamailio_4.3.1 64bit form source

Upvotes: 0

arheops
arheops

Reputation: 15247

It is very hard to answer this question correctly.

For anderstand answer you need read info about how sip works and how authentificate in openser/kamailio/opensips work.

Most valuable probably will be kamailio turtorials page

But also you have read sip RFC and general info about asterisk(for example ORelly's "Asterisk the Future of telephony book"

There are no way give you more correct answer, becuase you not specify what exactly you want to get.

For general load balancing setup you need authentificate user on kamailio(user have kamailio ip in UA's) after that forward call to asterisk.

For use kamailio as main point(trunk) for multiple asterisk you need create authorization for your asterisk box and put that info in both kamailio(usualy subscribers table) and asterisk.

Upvotes: 2

Related Questions