Skip to content

Opensips-cli mi command fails if response json has binary in it #148

@artkos

Description

@artkos

command:
opensips-cli -x mi dlg_list

result:
ERROR: command 'dlg_list' returned: Error with connection: 'utf-8' codec can't decode byte 0x80 in position 3374: invalid start byte. Is OpenSIPS running?

position 3374 points to response json, which has something like this:

Content-Type: application/ISUP;base=itu-t92+;version=itu-t92+\r\nContent-Length: 45\r\nContent-Disposition: signal;handling=required\r\nCONTENT-TRANSFER-ENCODING: binary\r\n\r\n\u0001\u0010 .\n

position 3374 is end of \u0010

dlg_list commands works fine if all the calls doesnt have isup content.

Also opensips-cp dialog module have same problem, if there is isup content it wont show any call dialogs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions