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@peoplefone.ch sip: demo@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@95.128.80.122:5060 Expires: permanent Q: 0.000000 Call-ID: dfjrewr12386fd6-343@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
Dear all,
Any idea how to solve it ?
BR
Laurent
De : sr-users [mailto:sr-users-bounces@lists.kamailio.org] De la part de Laurent Schweizer Envoyé : lundi, 25 juin 2018 22:13 À : Kamailio (SER) - Users Mailing List sr-users@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@peoplefone.chmailto:demo@peoplefone.ch sip: demo@95.128.80.122:5060mailto:demo@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@95.128.80.122:5060 Expires: permanent Q: 0.000000 Call-ID: dfjrewr12386fd6-343@kamailio.mimailto:dfjrewr12386fd6-343@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
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@lists.kamailio.org] *De la part de* Laurent Schweizer *Envoyé :* lundi, 25 juin 2018 22:13 *À :* Kamailio (SER) - Users Mailing List sr-users@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@peoplefone.ch mailto:demo@peoplefone.ch sip: demo@95.128.80.122:5060 mailto:demo@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@95.128.80.122:5060 sip:demo@95.128.80.122:5060
Expires: permanent
Q: 0.000000
Call-ID: dfjrewr12386fd6-343@kamailio.mi mailto:dfjrewr12386fd6-343@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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@lists.kamailio.org] *De la part de* Laurent Schweizer *Envoyé :* lundi, 25 juin 2018 22:13 *À :* Kamailio (SER) - Users Mailing List sr-users@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@peoplefone.ch mailto:demo@peoplefone.ch sip: demo@95.128.80.122:5060 mailto:demo@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@95.128.80.122:5060 sip:demo@95.128.80.122:5060
Expires: permanent
Q: 0.000000
Call-ID: dfjrewr12386fd6-343@kamailio.mi mailto:dfjrewr12386fd6-343@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com