[SR-Users] Kamailio with Asterisk 13 PjSip Realtime

2015-01-13 Thread Chirag Desai
Hi,

I saw Matt Jordan's recent Kamailio world talk and was interested in the
idea he proposed of stripling out authentication and registration from
asterisk and solely letting Kamailio handle it.

In order to do this would I be correct in assuming I would have to use the
asterisk database rather than the Kamailio database?

I've compared the two and the table structures are very different.

If I use the asterisk database I guess asterisk still needs to be
responsible for handling authentication, registration and writing the
contacts to the database. If I use the Kamailio database how would I dial
an extension from asterisk, because as far as I can fell asterisk will have
no idea who is registered or how to find them (contact details).

Maybe I'm over thinking something simple, or maybe I'm not. Either way I
would love your thoughts on how this could be done.

Kind regards,

C
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio and Free switch - multi tenant

2014-04-28 Thread Chirag Desai
Hi all,

First time poster here.

I had a freeswitch installation configured to allow users to register with
different domains e.g.
tenant1.mydomain.com
tenant2.mydomain.com
..
tenantN.my domain.com

This worked fine. Users were able to call extensions in their own domain
and access their voicemail.

All tenants/domains shared the same diaplan (default).

I followed the great tutorial at
http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc

I now have my users (using different domains as above) registering to
Kamailio.

It was a little tricky but I can now place calls between users on the same
domain.

For some reason the variable ${domain_name} (from the tutorial) seems to be
empty so I had to replace it with a channel variable (I'm not in front of
my dialplan now but it was something like ${sip_from_domain}.

Was this the right thing to do? Why does the domain_name variable not
populate with the domain of the user making the call?

Another issue I have is to do with usernames.

I want my users to have alphanumeric usernames e.g.
us...@tenant1.example.com
us...@tenant1.example.com

But I'd also like them to be able to have an associated extension and
mailbox.

E.g. user1 may be extension 1001 and mailbox 1001

user2 may be extension 1002 and mailbox 1002.

In Kamailio I've handled this by using aliasdb.

So user1.tenant1.example.com has an alias of 1001.tenant1.example.com

Scenario:

User2 dials 1001.

Kamailio evaluates this and determines we want user1. It passes the call to
FS with a $rU of user1. However, even though user1 is registered and
online...the call fails and diverts to voicemail - any ideas?

Also I had to hack the above so that after the alias db lookup Kamailio
sends an $rU of 1001@tenant1...

If anyone has got FS and Kamailio running with multiple domains I would
really love some feedback on routing and dialplan configuration.

Thanks so much in advance,

CD
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio with Asterisk

2014-01-27 Thread Chirag Desai
Hi all,

I'm wondering if someone can help me get a little unstuck.

I followed the guide here:
http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

And I now have kamailio running, but I have two problems.

Number 1
When I do kamctl add user password and make two users, they register fine.
But any attempt to call between the users times out.

Number 2
Anytime I have my kamailo.cfg file begin as

#!KAMAILIO
 #!define WITH_MYSQL#!define WITH_AUTH#!define WITH_USRLOCDB#!define
WITH_ASTERISK

I am unable to start kamctl. I get the following error.

ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start
failed

If I run kamailio I get
ERROR: bad config file (3 errors)

The moment I remove the define lines at the start, kamctl starts fine, but
I can't authenticate with asterisk.

Any ideas?

Thanks

Chirag
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users