Discussion:
[SR-Users] Extract domain of a user from location list table
aawaise
2014-09-13 08:42:35 UTC
Permalink
I went through usrloc page on kamailio site. Link given below.

http://www.kamailio.org/docs/modules/3.1.x/modules_s/usrloc.html

It states that the module keeps a user location table and provides access to
the table to other modules.

The module exports no functions that could be used directly from scripts.

How can one extract value of domain from Location List ?



--
View this message in context: http://sip-router.1086192.n5.nabble.com/Extract-domain-of-a-user-from-location-list-table-tp130598.html
Sent from the Users mailing list archive at Nabble.com.
Daniel-Constantin Mierla
2014-09-15 09:39:41 UTC
Permalink
You should use 4.1 instead of 3.1, because 3.1 is really old (and no
longer supported) version.

Location table keeps attributes per ***@domain. To get the
attributes, you need the ***@domain. The typical use case is when a
SIP requests comes to the proxy targeting ***@domain, you can use
lookup("location") to get associated attributes for routing the request
to where ***@domain is having the phone.

registrar is one of the modules using usrloc behind.

Cheers,
Daniel
Post by aawaise
I went through usrloc page on kamailio site. Link given below.
http://www.kamailio.org/docs/modules/3.1.x/modules_s/usrloc.html
It states that the module keeps a user location table and provides access to
the table to other modules.
The module exports no functions that could be used directly from scripts.
How can one extract value of domain from Location List ?
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Extract-domain-of-a-user-from-location-list-table-tp130598.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany
Loading...