Hi Folks! I am trying to generate a MESSAGE packet using t_uac_dlg command from a management script written in Python. I have tried different combination of argument string but either getting parsing error or 400 bad headers error. The string which I am sending to mi_datagram socket in my Python script is:
*message = ''':t_uac_dlg:\nMESSAGE\nsip:[email protected] <nsip%[email protected]>\n.\n.\n"From: <sip:[email protected] <sip%[email protected]>>\\r\\nTo: <sip:[email protected] <sip%[email protected]>>\\r\\np-identifier: Local_Socket_V1.0\\r\\nContent-Type: text/plain\\r\\n"\n"Hi This is a Test Message"\n'''* When I print the above string it gives me the value given below: :t_uac_dlg: MESSAGE sip:[email protected] . . "From: <sip:[email protected]>\r\nTo: <sip:[email protected]>\r\np-identifier: Local_Socket_V1.0\r\nContent-Type: text/plain\r\n" "Hi This is a test" When I send this string to mi_datagram socket it gives me *400 Bad headers *Please guide where I am doing wrong. Regards, *Husnain Taseer*
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
