< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
I'm trying to register with a proxy as multiple
contacts in a single SIP REGISTER request. Is there a 'correct'
method of doing this in the DUM?
This is what I'm currently doing, which
I'm not sure is correct and produces weird behaviour:
SharedPtr<SipMessage> reg =
m_dum.makeRegistration(m_dum.getMasterProfile()->getDefaultFrom(),
(AppDialogSet*)NULL);
NameAddr
AdditionalContact("sip:8053@xxxxxxxxxxxxx:5060");
reg->header(h_Contacts).push_back(AdditionalContact);
m_dum.send(reg);
The following is sent down the wire:
Request-Line: REGISTER sip:192.168.0.222 SIP/2.0
Via:
SIP/2.0/UDP
192.168.0.199:5060;branch=z9hG4bK-d8754z-886bdf4b3332cc2d-1---d8754z-;rport
Max-Forwards:
70
Contact: <sip:8051>
Contact:
<sip:8053@xxxxxxxxxxxxx:5060>
To:
"ContactPortal"<sip:8051@xxxxxxxxxxxxx>
From:
"ContactPortal"<sip:8051@xxxxxxxxxxxxx>;tag=d05e7d6e
Call-ID:
NmViY2JjMWNjMTQ4MGUwOTVlYzRjMzU3ZTgzZTIxNzM.
CSeq: 1 REGISTER
Expires:
3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY
User-Agent:
ContactPortal/11.0
Content-Length: 0
The asterisk PBX I'm testing against never responds with a 200 OK to this (all I
get is 100 Trying). So instead I tried doing
reg->header(h_Contacts).push_front(AdditionalContact);
This does get a 200 OK
response, however neither 8051 or 8053 seem to work.