Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Index: channels/chan_sip.c
  2. ===================================================================
  3. --- channels/chan_sip.c (revision 301304)
  4. +++ channels/chan_sip.c (working copy)
  5. @@ -16967,6 +16967,18 @@
  6. ast_queue_control(p->owner, AST_CONTROL_VIDUPDATE);
  7. transmit_response(p, "200 OK", req);
  8. return;
  9. + } else if (!strcasecmp(c, "application/text")) {
  10. + /* Hack for the vpad */
  11. + if (p->owner)
  12. + {
  13. + get_msg_text(buf, sizeof(buf), req, TRUE);
  14. + if(strstr(buf,"picture_fast_update"))
  15. + {
  16. + ast_queue_control(p->owner, AST_CONTROL_VIDUPDATE);
  17. + transmit_response(p, "200 OK", req);
  18. + return;
  19. + }
  20. + }
Add Comment
Please, Sign In to add comment