< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
From the logs you can see that it is trying to resolve sv7000 from a DNS server at 127.0.0.1. Is there a DNS server running locally? Assuming you didn't pass a DNS server address into the Stack when you created it, resip will query the default NIC for the configured address of the DNS server - perhaps you have that configured wrong.
INFO | 20100303-114530.953 | basicRegister.exe | RESIP:DNS | 2452 | aresdns.cxx: 114 | DNS initialization: found 1 name servers INFO | 20100303-114530.968 | basicRegister.exe | RESIP:DNS | 2452 | aresdns.cxx: 117 | name server: 127.0.0.1
ERR | 20100303-114536.078 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx:4 50 | Unknown error Timeout while contacting DNS servers for sv7000
Hi Scott,I tried removing port from the AOR but still failed to send register message to the destination SIP server.I put the screen logs in attachment. Found that DNS lookup failed.Please help. why it can happen?Thanks
Regards,ND
From: slgodin@xxxxxxxxx on behalf of Scott GodinSent: Wed 3/3/2010 9:42 AMSubject: 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.ScottOn 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 serverusing Domain Name instead of Ip address.I followed the sample basicRegister provided with open source. I found if I passNameAddr 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 headerThe 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/