Motivation

  1. DOC says setid in mysql should be UNSIGNED INT:
    http://www.kamailio.org/docs/modules/4.4.x/modules/rtpengine.html#rtpengine.p.table_name
    http://www.kamailio.org/docs/modules/4.4.x/modules/rtpengine.html#rtpengine.p.setid_col

  2. kamailio did report invalid value if setid less than 0.

  3. kamailio rtpengine module declares setid as int setid, thus we can not use setid more than 2147483647

This PR changes declaration of setid from int to unsigned int

UNSURE (REVIEW NEEDED):

I'm not sure about:

should int_val in fixup_set_ip at rtpengine.c#L910 be declared as unsigned int as well?

not sure about the usage of int pv_locate_name() and unsigned short str2s() in the fixup_set_ip() function.

should we use str2int instead str2s ?

let me know if I'm on the wrong direction


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/999

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.