char* txt =
"Messages-Waiting: no\r\n"
"Message-Account: sip:7012@192.168.101.101\r\n"
"Voice-Message: 2/8 (0/2)";
SharedPtrnotify = dum->makeOutOfDialogRequest
(uasAor, NOTIFY, new testAppDialogSet(*dum, "UAC(NOTIFY)"));
notify->header(resip::h_Event).value() = "message-summary";
Mime type("application", "simple-message-summary");
HeaderFieldValue hfv(txt, strlen(txt));
GenericContents contents(&hfv, type);
notify->setContents(&contents);
dum->send(notify);
^_^
2007年1月1日星期一
resip发送含有自定义字段的Notify消息
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/?m=0 ]
文章标题: resip发送含有自定义字段的Notify消息
文章地址: https://blog.foolbear.com/2007/01/resipnotify.html?m=0
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/?m=0 ]
文章标题: resip发送含有自定义字段的Notify消息
文章地址: https://blog.foolbear.com/2007/01/resipnotify.html?m=0
订阅:
博文评论
(
Atom
)
没有评论 :
发表评论