[sr-dev] [kamailio/kamailio] KEMI record_route_preset requires 2 parameters instead of 1 (#2171)

Whitey notifications at github.com
Mon Dec 9 03:34:28 CET 2019


### Description

Hi all!

It looks like in https://github.com/kamailio/kamailio/pull/2051 `record_route_preset` was exposed to KEMI, which is awesome (thank you @aalba6675 !). However the second parameter in this function should be optional (see https://kamailio.org/docs/modules/devel/modules/rr.html#rr.f.record_route_preset).

### Troubleshooting

When using with a single parameter, the following error is thrown:

`Dec  9 13:24:13 ip-10-0-0-1 /usr/local/sbin/kamailio[15828]: ERROR: app_ruby [app_ruby_api.c:499]: sr_kemi_ruby_exec_func_ex(): invalid str parameter type 2 (1)`

#### Reproduction

(ruby Kemi)

```ruby
# Failure
KSR::RR.record_route_preset('1.2.3.4:5060')
# Success
KSR::RR.record_route_preset('1.2.3.4:5060', '')
# Success
KSR::RR.record_route_preset('1.2.3.4:5060', '1.2.3.4:5060')
```

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
version: kamailio 5.4.0-dev2 (x86_64/linux) 283e46-dirty
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2171
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191208/054c31ed/attachment.html>


More information about the sr-dev mailing list