[SR-Users] ul.add | path & socket not correctly set

Laurent Schweizer laurent.schweizer at peoplefone.com
Wed Jul 18 19:32:39 CEST 2018


Hello,

Thanks it’s working and I will upgrade to 5.1 😊

BR

Laurent

De : Daniel-Constantin Mierla [mailto:miconda at gmail.com]
Envoyé : lundi, 9 juillet 2018 10:54
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Laurent Schweizer <laurent.schweizer at peoplefone.com>
Objet : Re: [SR-Users] ul.add | path & socket not correctly set


Hello,

few things for your version 5.0.x:

  - rpc ul.add command doesn't have the last two parameters: received and socket -- those were added in 5.1 -- so socket is not going to be set no matter parameter you give

  - path parameter was expecting "0" (s:0) in order not to set it -- for coherence I pushed a patch to skip setting it if '.'  is given
However, if you want to set one of the last two parameters, you have to upgrade to 5.1.

Cheers,
Daniel
On 09.07.18 10:37, Daniel-Constantin Mierla wrote:

Hello,

I will check it -- reminders are good, somehow first message was not noticed...

Cheers,
Daniel

On 08.07.18 13:15, Laurent Schweizer wrote:
Dear all,

Any idea how to solve it ?

BR

Laurent

De : sr-users [mailto:sr-users-bounces at lists.kamailio.org] De la part de Laurent Schweizer
Envoyé : lundi, 25 juin 2018 22:13
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org><mailto:sr-users at lists.kamailio.org>
Objet : [SR-Users] ul.add | path & socket not correctly set

Dear all,

I have kamailio 5.0.6 and I have an issue to add permanent location

When I add a location with :
kamcmd ul.add location_ch demo at peoplefone.ch<mailto:demo at peoplefone.ch> sip: demo at 95.128.80.122:5060<mailto:demo at 95.128.80.122:5060> 0 0.0 . 0 128 6111 . udp:95.128.80.3:5060

then I get the following insertion:
kamcmd ul.lookup location_ch demo@
{
        AoR: demo
        Contacts: {
                Contact: {
                        Address: sip:demo at 95.128.80.122:5060
                        Expires: permanent
                        Q: 0.000000
                        Call-ID: dfjrewr12386fd6-343 at kamailio.mi<mailto:dfjrewr12386fd6-343 at kamailio.mi>
                        CSeq: 1
                        User-Agent: SIP Router MI Server
                        Received: [not set]
                        Path: .
                        State: CS_SYNC
                        Flags: 0
                        CFlags: 128
                        Socket: [not set]
                        Methods: 6111
                        Ruid: ulcx-5b243cb5-67c6-31
                        Instance: [not set]
                        Reg-Id: 0
                        Server-Id: 0
                        Tcpconn-Id: 0
                        Keepalive: 0
                        Last-Keepalive: 0
                        Last-Modified: 0
                }
        }


As you can see the Path value is set to “.” But it must be set to [not set]
The Socket is also not set.

Any idea ?

BR

Laurent




_______________________________________________

Kamailio (SER) - Users Mailing List

sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



--

Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio World Conference -- www.kamailioworld.com<http://www.kamailioworld.com>



--

Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio World Conference -- www.kamailioworld.com<http://www.kamailioworld.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180718/3bdb74e7/attachment.html>


More information about the sr-users mailing list