UAC RPC Commands problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

UAC RPC Commands problem

Volkan Oransoy-2
Hi,

I use Kamailio 5.0. I try to run RPC commands for UAC module but some of them doesn’t work like documented.

kamcmd uac.reg_dump 
kamcmd uac.reg_reload

These commands work as expected.  But commands with extra arguments give error.

kamcmd> uac.reg_refresh 908508850000
error: 400 - Invalid Parameters

kamcmd> uac.reg_info l_uuid 908508850000
error: 404 - Record not found

Do I miss something?

Thanks,

/Volkan




_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UAC RPC Commands problem

Daniel-Constantin Mierla-6

Hello,

try with:

uac.reg_refresh s:908508850000

kamcmd does to auto-convert when it detects the parameter is a number. By prefixing with s: you enforce string param.

Cheers,
Daniel

On 10.08.17 15:15, Volkan Oransoy wrote:
Hi,

I use Kamailio 5.0. I try to run RPC commands for UAC module but some of them doesn’t work like documented.

kamcmd uac.reg_dump 
kamcmd uac.reg_reload

These commands work as expected.  But commands with extra arguments give error.

kamcmd> uac.reg_refresh 908508850000
error: 400 - Invalid Parameters

kamcmd> uac.reg_info l_uuid 908508850000
error: 404 - Record not found

Do I miss something?

Thanks,

/Volkan





_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UAC RPC Commands problem

Volkan Oransoy-2
Thank you Daniel,

It worked like you describe.

/Volkan



On 10 Aug 2017, at 18:10, Daniel-Constantin Mierla <[hidden email]> wrote:

Hello,

try with:

uac.reg_refresh s:908508850000

kamcmd does to auto-convert when it detects the parameter is a number. By prefixing with s: you enforce string param.

Cheers,
Daniel

On 10.08.17 15:15, Volkan Oransoy wrote:
Hi,

I use Kamailio 5.0. I try to run RPC commands for UAC module but some of them doesn’t work like documented.

kamcmd uac.reg_dump 
kamcmd uac.reg_reload

These commands work as expected.  But commands with extra arguments give error.

kamcmd> uac.reg_refresh 908508850000
error: 400 - Invalid Parameters

kamcmd> uac.reg_info l_uuid 908508850000
error: 404 - Record not found

Do I miss something?

Thanks,

/Volkan





_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UAC RPC Commands problem

Daniel-Constantin Mierla-6

OK, I added an entry in FAQ, given that this question was asked several times, hopefully it becomes more visible in web searches:

  - https://www.kamailio.org/wiki/tutorials/faq/main#kamcmd_sometime_fails_to_execu

Cheers,
Daniel


On 10.08.17 19:30, Volkan Oransoy wrote:
Thank you Daniel,

It worked like you describe.

/Volkan



On 10 Aug 2017, at 18:10, Daniel-Constantin Mierla <[hidden email]> wrote:

Hello,

try with:

uac.reg_refresh s:908508850000

kamcmd does to auto-convert when it detects the parameter is a number. By prefixing with s: you enforce string param.

Cheers,
Daniel

On 10.08.17 15:15, Volkan Oransoy wrote:
Hi,

I use Kamailio 5.0. I try to run RPC commands for UAC module but some of them doesn’t work like documented.

kamcmd uac.reg_dump 
kamcmd uac.reg_reload

These commands work as expected.  But commands with extra arguments give error.

kamcmd> uac.reg_refresh 908508850000
error: 400 - Invalid Parameters

kamcmd> uac.reg_info l_uuid 908508850000
error: 404 - Record not found

Do I miss something?

Thanks,

/Volkan





_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Loading...