< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Content-type header + Register with Domainname


You don't need to do anything special to enable DNS resolution.  One potential problem I see with your AOR is that you are including the port number on it.  This is not good practice.  In fact it will have the effect of directing the resip stack to not do the NAPTR or SRV record DNS lookups, since the SRV DNS records are intended to specify the destination host and port.  I suspect the domain name sv7000.com is expecting a client to do an SRV lookup successfully.  Try removing the :5060 from the registration AOR.
 
Scott

On Mon, Mar 1, 2010 at 5:21 AM, Rajan, Nihar <nihar.rajan@xxxxxxxxxxxxxxxx> wrote:
Hi Scott,
 
  Thanks for ur help. Now i manged to resolve this issue but i have another problem while registering. I want to register client with the SIP server
using Domain Name instead of Ip address.
I followed the sample basicRegister provided with open source. I found if I pass

NameAddr userAor(

" 163 <sip:163@xxxxxxxxx:5060>") it sends register message to 10.8.2.40. But I want to pass domainname  like " 163 <sip:163@xxxxxxxxxx:5060>" 

instead of IP address. So I changed IP address with domain name. But failed to set destionanion IP address

can you please help me how to set dest IP address with domain name in this stack.

 

Regards,

  ND



From: slgodin@xxxxxxxxx on behalf of Scott Godin
Sent: Wed 2/24/2010 1:17 AM
To: Rajan, Nihar
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: Re: [reSIProcate-users] Content-type header

The code to add the parameter to the header looks correct, I'm guessing you are just adding it in the wrong spot.  There should be a way to do what you need without modifying the core resip code.  Judging from your code below you are interested in modifying the outbound MESSAGE request - are you using ClientPagerMessage to send MESSAGE requests, or are you sending within the context of an InviteSession (ie. InviteSession::message )? 

Scott

On Mon, Feb 22, 2010 at 9:42 PM, Rajan, Nihar <nihar.rajan@xxxxxxxxxxxxxxxx> wrote:
Hi All,
 
I hope it is the right forum to ask this question.
 I am using resiprocate basicmessage application to send one message to remote SIP phone.
I need to set "Content-Type: text/plain ;charset=iso-8859-1" otherwise I get unsupported MediaType error.
By adding following line of code I can get "Content-Type: text/plain "
 
clientDum.getMasterProfile()->addSupportedMimeType(MESSAGE, Mime("text", "plain"))
 
I want to add charset = UTF-8 in content-type header. So what extra work I need to do?
 
I tried by adding following codes in resip\dum\BaseCreator.cxx  makeInitialRequest()

SharedPtr<SipMessage> mLastRequest;

mLastRequest->header(h_ContentType).param(p_charset) = "UTF-8";
 
but failed to get desired result still "Content-Type: text/plain "
 
Please help.
 
Regards,
  ND

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/