Thanks Daniel! I'm folow: https://www.kamailio.org/docs/modules/stable/modules/ dispatcher.html#dispatcher.ex.install but my kamailio get errors: parameter <dstid_avp> of type <1> not found in module <dispatcher> parameter <attrs_avp> of type <1> not found in module <dispatcher> parameter <sock_avp> of type <1> not found in module <dispatcher> parameter <cnt_avp> of type <1> not found in module <dispatcher> I have no infor how to fix it Can you show me more detail about how to do: - *Fix error* * - Set the socket attribute to your private ip socket to do bridge from external to internal networks. * (just add to "attrs(str,opt)", and in my situation, it is my private IP of Kamailio server1 ? forexample: 1 sip:<PublicIP>:<Port> 0 0 duid=kamilioserver1;socket=<protocol>:<KamailioServer1_PrivateIP>:<Port>;my=xyz) (I don't understand what my=xyz mean..) * - Do i have to do something in Kamailio server2 and KamailioServer3 (or just create kamailio database each server and synchronyze kamailio database between them?)* *Thanks!*
And thanks Mojtaba! I had read your recomment tutorial with OpenSIP, but do not know how to apply to my system. Have you got an other more clearly tutorial for this?
On Thu, Jul 12, 2018 at 5:00 PM, sr-users-request@lists.kamailio.org wrote:
Send sr-users mailing list submissions to sr-users@lists.kamailio.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users or, via email, send a message with subject or body 'help' to sr-users-request@lists.kamailio.org
You can reach the person managing the list at sr-users-owner@lists.kamailio.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of sr-users digest..."
Today's Topics:
- UAC register (Ben Hood)
- Re: UAC register (Daniel-Constantin Mierla)
- Re: UAC register (Daniel-Constantin Mierla)
- dispatcher module complete tutorial (SamSung TV)
- Re: UAC register (Ben Hood)
- Re: UAC register (Ben Hood)
- Re: dispatcher module complete tutorial (Mojtaba)
- Re: SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM) (Aqs Younas)
- Re: dispatcher module complete tutorial (Daniel-Constantin Mierla)
- Re: UAC register (Daniel-Constantin Mierla)
- Re: UAC register (Daniel-Constantin Mierla)
- Re: SIP/2.0 500 I'm terribly sorry, server error occurred (1/TM) (Daniel-Constantin Mierla)
Message: 1 Date: Wed, 11 Jul 2018 12:36:36 +0100 From: Ben Hood ben@relops.com To: sr-users@lists.sip-router.org Subject: [SR-Users] UAC register Message-ID: 7B1A15CF-7BCF-4BCC-8DF0-20E2906BA1DA@relops.com Content-Type: text/plain; charset="utf-8"
Hi,
I’m wondering if there is a flag somewhere in the UAC module config that prevents remote registration from happening.
It looks like I’ve loaded the uacreg table but I can’t see any REGISTER methods being sent from Kamailio to the remote peer.
The remote registrants are loaded using this config:
listen=udp:172.16.176.150:5060
loadmodule "db_postgres.so" loadmodule "kex.so" loadmodule "corex.so" loadmodule "tm.so" loadmodule "tmx.so" loadmodule "sl.so" loadmodule "rr.so" loadmodule "pv.so" loadmodule "maxfwd.so" loadmodule "textops.so" loadmodule "siputils.so" loadmodule "xlog.so" loadmodule "sanity.so" loadmodule "ctl.so" loadmodule "cfg_rpc.so" loadmodule "counters.so" loadmodule "uac.so"
modparam("uac", "reg_db_url", DBURL) modparam("uac", "reg_contact_addr", “172.16.176.150:5060") modparam("uac", "reg_db_table", "uacreg") modparam("uac", "reg_timer_interval", 10) modparam("uac", "reg_retry_interval", 10)
request_route { route(RELAY); }
route[RELAY] {
t_on_reply("MANAGE_REPLY");
if (!t_relay()) { sl_reply_error(); } exit; }
And it looks like this has been consumed by Kamailio:
$ kamcmd uac.reg_dump { l_uuid: 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f l_username: 126231943099723776 l_domain: 172.16.176.150 r_username: 1000 r_domain: 172.16.176.129 realm: 172.16.176.129 auth_username: 1000 auth_password: password auth_proxy: sip:172.16.176.129:5080 expires: 0 flags: 0 diff_expires: -1531235076 timer_expires: 0 reg_init: 1531234841 reg_delay: 0 }
Doing a refresh successfully reloads the uacreg data
$ kamcmd uac.reg_refresh 2cc6776d-61ed-4ea1-a3ae-055f89bd4d3f
I can get Kamailio to forward an OPTIONS message to the remote peer () to verify network connectivity, e.g. :
$ru = "sip:1000@172.16.176.129:5080"; $fs = "udp:172.16.176.150:5060";
But Kamailio does not appear to generate REGISTER messages either after first boot or as a result of the manual refresh.
This is using an instance of Kamailio 5.0.1. Should I try with a newer version?
Is there a way to get extra debugging of the uac module?
If I increase the debug verbosity, I get quite granular detail for the DB traffic, but the uac module doesn’t appear to emit much diagnostics.
Many thanks,
Ben
Do not reply to the digest message of the mailing list manager if you want to participate in a discussion.
Subscribe for receiving normal emails as long as you are asking questions and want to be in the email discussions, and reply to those messages -- digest replies makes it hard to figure out what were previous messages in the topic you want to reply to. Future replies to digest emails are going to be ignored by me.
It seems you are using the master branch (development version), which is not really recommended for production, unless it is exactly what you want.
So, either install version 5.1.x to use with the link I provided before or for master branch read the appropriate docs at:
* https://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.e...
There were changes in dispatcher from 5.1 to devel branch, using now xavps instead of avps.
Cheers, Daniel
On 13.07.18 09:59, Ne Mo wrote:
Thanks Daniel! I'm folow: https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatc... https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.install
but my kamailio get errors: parameter <dstid_avp> of type <1> not found in module <dispatcher> parameter <attrs_avp> of type <1> not found in module <dispatcher> parameter <sock_avp> of type <1> not found in module <dispatcher> parameter <cnt_avp> of type <1> not found in module <dispatcher> I have no infor how to fix it Can you show me more detail about how to do: - *Fix error* * - Set the socket attribute to your private ip socket to do bridge from external to internal networks. * (just add to "attrs(str,opt)", and in my situation, it is my private IP of Kamailio server1 ? forexample: 1 sip:<PublicIP>:<Port> 0 0 duid=kamilioserver1;socket=<protocol>:<KamailioServer1_PrivateIP>:<Port>;my=xyz) (I don't understand what my=xyz mean..) * - Do i have to do something in Kamailio server2 and KamailioServer3 (or just create kamailio database each server and synchronyze kamailio database between them?)* *Thanks!*
And thanks Mojtaba! I had read your recomment tutorial with OpenSIP, but do not know how to apply to my system. Have you got an other more clearly tutorial for this?
On Thu, Jul 12, 2018 at 5:00 PM, <sr-users-request@lists.kamailio.org mailto:sr-users-request@lists.kamailio.org> wrote:
Send sr-users mailing list submissions to sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> To subscribe or unsubscribe via the World Wide Web, visit https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users> or, via email, send a message with subject or body 'help' to sr-users-request@lists.kamailio.org <mailto:sr-users-request@lists.kamailio.org> You can reach the person managing the list at sr-users-owner@lists.kamailio.org <mailto:sr-users-owner@lists.kamailio.org> When replying, please edit your Subject line so it is more specific than "Re: Contents of sr-users digest..." Today's Topics: [...]
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users