[reSIProcate] ClientPagerMessage usage
Hi,
Just wondering what the intended use of ClientPagerMessage is. Which option
is valid:
1) Reusing the handle
ClientPagerMessageHandle h = dum.makePagerMessage(target);
h->page(msg1);
h->page(msg2); // note that I'm reusing this handle, which will cause
// a second MESSAGE request to be sent with the same
// Call-ID as the first.
2) Not reusing the handle
ClientPagerMessageHandle h = dum.makePagerMessage(target);
h->page(msg1);
h->end(); // is this the right place to do this?
h = dum.makePagerMessage(target);
h->page(msg2);
Option 1) seems easier, but option 2) seems like it might be more in line
with RFCs 3261 and 3428:
"MESSAGE requests do not themselves initiate a SIP
dialog; under normal usage each Instant Message stands alone, much
like pager messages."
Which option looks right?
Thanks,
- Jeremy -
Jeremy Geras
Software Developer,
NewHeights Software
jgeras@xxxxxxxxxxxxxx