[reSIProcate] Registering as multiple contacts

Greg Inglis Greg.Inglis at TelephoneticsVIP.co.uk
Wed Mar 7 09:06:34 CST 2007


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 at 192.168.0.222: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-;rp
ort
Max-Forwards: 70
Contact: <sip:8051>
Contact: <sip:8053 at 192.168.0.222:5060>
To: "ContactPortal"<sip:8051 at 192.168.0.222>
From: "ContactPortal"<sip:8051 at 192.168.0.222>;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.

Any ideas?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070307/6ce2aad0/attachment.htm>


More information about the resiprocate-devel mailing list