< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
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/
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 DEBUG | 20100303-114530.968 | basicRegister.exe | RESIP | 2452 | Compression.cxx :40 | COMPRESSION SUPPORT NOT COMPILED IN DEBUG | 20100303-114530.968 | basicRegister.exe | RESIP | 2452 | Compression.cxx :43 | Compression configuration object created; algorithm = 0 DEBUG | 20100303-114530.984 | basicRegister.exe | RESIP:TRANSPORT | 2452 | Trans portSelector.cxx:86 | No compression library available INFO | 20100303-114530.984 | basicRegister.exe | RESIP:TRANSPORT | 2452 | UdpTra nsport.cxx:42 | Creating UDP transport host= port=5060 ipv4=1 DEBUG | 20100303-114531.000 | basicRegister.exe | RESIP:TRANSPORT | 2452 | Inter nalTransport.cxx:86 | Creating fd=1828 V4/UDP DEBUG | 20100303-114531.000 | basicRegister.exe | RESIP:TRANSPORT | 2452 | Inter nalTransport.cxx:94 | Binding to 0.0.0.0 DEBUG | 20100303-114531.015 | basicRegister.exe | RESIP:TRANSPORT | 2452 | UdpTr ansport.cxx:59 | No compression library available: Transport: [ V4 0.0.0.0:5060 UDP target domain=unspecified connectionId=0 ] DEBUG | 20100303-114531.031 | basicRegister.exe | RESIP:TRANSPORT | 2452 | Trans portSelector.cxx:154 | Adding transport: [ V4 0.0.0.0:5060 UDP target domain=uns pecified connectionId=0 ] DEBUG | 20100303-114531.031 | basicRegister.exe | RESIP:DUM | 2452 | UserProfile .cxx:135 | Adding credential: realm=sv7000 user=163 INFO | 20100303-114531.078 | basicRegister.exe | RESIP:DNS | 2452 | dnsutil.cxx: 145 | local hostname does not contain a domain part fcs DEBUG | 20100303-114531.093 | basicRegister.exe | RESIP:DUM | 2452 | BaseCreator .cxx:140 | BaseCreator::makeInitialRequest: 003ABC98 DEBUG | 20100303-114531.093 | basicRegister.exe | RESIP:DUM | 2452 | Registratio nCreator.cxx:31 | RegistrationCreator::RegistrationCreator: 003ABC98 STACK | 20100303-114531.109 | basicRegister.exe | RESIP:DUM | 2452 | Handled.cxx :16 | &&&&&& Handled::Handled 1this(003ADBA0) 000E7FE0 DEBUG | 20100303-114531.109 | basicRegister.exe | RESIP:DUM | 2452 | DialogSet.c xx:52 | ************* Created DialogSet(UAC) -- MTdhYjEzNTEwYWUwODE4OGFlYjVkMT NmN2U5MzA5NDY.-2435101c************* STACK | 20100303-114531.125 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:471 | ************* Adding DialogSet *************** STACK | 20100303-114531.125 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:472 | Before: [] STACK | 20100303-114531.140 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:474 | After: [MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c -> 003ADC28] STACK | 20100303-114531.140 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1921 | Looking for dialogSet: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5Mz A5NDY.-2435101c in map: STACK | 20100303-114531.156 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1922 | [MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c -> 003 ADC28] DEBUG | 20100303-114531.171 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:832 | SEND: REGISTER sip:sv7000 SIP/2.0 Via: SIP/2.0/ ;branch=z9hG4bK-d8754z-b9469142762d3b5c-1---d8754z-;rport Max-Forwards: 70 Contact: <sip:163;rinstance=470c4f3aca49f812> To: "163"<sip:163@sv7000> From: "163"<sip:163@sv7000>;tag=2435101c Call-ID: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY. CSeq: 1 REGISTER Expires: 70 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE Content-Length: 0 STACK | 20100303-114531.203 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1921 | Looking for dialogSet: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5Mz A5NDY.-2435101c in map: STACK | 20100303-114531.218 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1922 | [MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c -> 003 ADC28] DEBUG | 20100303-114531.218 | basicRegister.exe | RESIP:DUM | 2452 | DialogId.cx x:50 | DialogId::DialogId: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c - DEBUG | 20100303-114531.234 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:963 | Send: SipReq: REGISTER sv7000 tid=b9469142762d3b5c cseq=REGIS TER contact=163 / 1 from(tu) DEBUG | 20100303-114531.250 | basicRegister.exe | RESIP | 2452 | SipStack.cxx:30 7 | SEND: SipReq: REGISTER sv7000 tid=b9469142762d3b5c cseq=REGISTER contact=16 3 / 1 from(tu) STACK | 20100303-114531.359 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:279 | No matching transaction for SipReq: REGISTER sv7000 tid =b9469142762d3b5c cseq=REGISTER contact=163 / 1 from(tu) STACK | 20100303-114531.359 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:53 | Creating new TransactionState: tid=b9469142762d3b5c [ Cli entNonInvite/Trying reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target doma in=unspecified connectionId=0 ]] STACK | 20100303-114531.375 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:541 | TransactionState::processClientNonInvite: SipReq: REGIS TER sv7000 tid=b9469142762d3b5c cseq=REGISTER contact=163 / 1 from(tu) DEBUG | 20100303-114531.390 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tim erQueue.cxx:85 | Adding timer: Timer F tid=b9469142762d3b5c ms=32000 STACK | 20100303-114531.406 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:1738 | sendToWire with no dns result: tid=b9469142762d3b5c [ C lientNonInvite/Trying reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target do main=unspecified connectionId=0 ]] DEBUG | 20100303-114531.421 | basicRegister.exe | RESIP:TRANSPORT | 2452 | Trans portSelector.cxx:275 | Looking up dns entries for sip:sv7000 DEBUG | 20100303-114531.421 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:221 | DnsResult::lookup sip:sv7000 STACK | 20100303-114531.437 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :375 | DNS query of:sv7000 NAPTR STACK | 20100303-114531.437 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :407 | sv7000 not cached. Doing external dns lookup ERR | 20100303-114536.078 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx:4 50 | Unknown error Timeout while contacting DNS servers for sv7000 DEBUG | 20100303-114536.093 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :67 | sv7000 lookup failed: Timeout while contacting DNS servers STACK | 20100303-114536.109 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1306 | Received NAPTR result for: sip: target=sv7000 STACK | 20100303-114536.125 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1307 | DnsResult::onDnsResult() 12 DEBUG | 20100303-114536.140 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1248 | NAPTR lookup failed: sv7000 Timeout while contacting DNS servers STACK | 20100303-114536.156 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1297 | Doing SRV lookup of _sip._udp.sv7000 STACK | 20100303-114536.265 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :375 | DNS query of:_sip._udp.sv7000 SRV STACK | 20100303-114536.281 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :407 | _sip._udp.sv7000 not cached. Doing external dns lookup ERR | 20100303-114541.015 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx:4 50 | Unknown error Timeout while contacting DNS servers for _sip._udp.sv7000 DEBUG | 20100303-114541.031 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :61 | _sip._udp.sv7000 lookup failed: Timeout while contacting DNS servers STACK | 20100303-114541.046 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:995 | Received SRV result for: sv7000 STACK | 20100303-114541.046 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:998 | DnsResult::onDnsResult() 0 status=12 STACK | 20100303-114541.062 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1061 | SRV lookup failed: _sip._udp.sv7000 12 STACK | 20100303-114541.078 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:1107 | No SRV records for sv7000. Trying A records STACK | 20100303-114541.187 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :375 | DNS query of:sv7000 A STACK | 20100303-114541.187 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :407 | sv7000 not cached. Doing external dns lookup ERR | 20100303-114546.875 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx:4 50 | Unknown error Timeout while contacting DNS servers for sv7000 DEBUG | 20100303-114546.890 | basicRegister.exe | RESIP:DNS | 2452 | dnsstub.cxx :47 | sv7000 lookup failed: Timeout while contacting DNS servers STACK | 20100303-114546.906 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:786 | Received dns result for: sv7000 STACK | 20100303-114546.921 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:787 | DnsResult::onDnsResult() 12 STACK | 20100303-114546.937 | basicRegister.exe | RESIP:DNS | 2452 | DnsResult.c xx:826 | Failed async A query: Timeout while contacting DNS servers STACK | 20100303-114546.953 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:1571 | tid=b9469142762d3b5c [ ClientNonInvite/Trying reliable target=[ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified connectionId=0 ]] got DNS result: sv7000 --> [] INFO | 20100303-114546.968 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tran sactionState.cxx:1376 | Ran out of dns entries for sv7000. Send 503 DEBUG | 20100303-114546.984 | basicRegister.exe | RESIP | 2452 | Helper.cxx:372 | Helper::makeResponse(SipReq: REGISTER sv7000 tid=b9469142762d3b5c cseq=REGIST ER contact=163 / 1 from(tu) code=503 reason= INFO | 20100303-114547.031 | basicRegister.exe | RESIP:DNS | 2452 | dnsutil.cxx: 145 | local hostname does not contain a domain part fcs DEBUG | 20100303-114547.031 | basicRegister.exe | RESIP:TRANSACTION | 2452 | Tra nsactionState.cxx:1832 | Send to TU: TU: DialogUsageManager size=0 SIP/2.0 503 Service Unavailable Via: SIP/2.0/ ;branch=z9hG4bK-d8754z-b9469142762d3b5c-1---d8754z-;rport To: "163"<sip:163@sv7000>;tag=ae17715d From: "163"<sip:163@sv7000>;tag=2435101c Call-ID: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY. CSeq: 1 REGISTER Warning: 499 fcs "" Content-Length: 0 INFO | 20100303-114547.062 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsageM anager.cxx:1297 | Got: SipResp: 503 tid=b9469142762d3b5c cseq=REGISTER / 1 from( wire) STACK | 20100303-114547.078 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1921 | Looking for dialogSet: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5Mz A5NDY.-2435101c in map: STACK | 20100303-114547.078 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1922 | [MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c -> 003 ADC28] DEBUG | 20100303-114547.093 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1805 | DialogUsageManager::processResponse: SipResp: 503 tid=b9469142762d3b5c cseq=REGISTER / 1 from(wire) DEBUG | 20100303-114547.109 | basicRegister.exe | RESIP:DUM | 2452 | DialogId.cx x:50 | DialogId::DialogId: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101c -ae17715d STACK | 20100303-114547.109 | basicRegister.exe | RESIP:DUM | 2452 | DialogSet.c xx:465 | No matching dialog for SIP/2.0 503 Service Unavailable Via: SIP/2.0/ ;branch=z9hG4bK-d8754z-b9469142762d3b5c-1---d8754z-;rport To: "163"<sip:163@sv7000>;tag=ae17715d From: "163"<sip:163@sv7000>;tag=2435101c Call-ID: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY. CSeq: 1 REGISTER Warning: 499 fcs "" Content-Length: 0 STACK | 20100303-114547.140 | basicRegister.exe | RESIP:DUM | 2452 | Handled.cxx :16 | &&&&&& Handled::Handled 2this(00F70668) 000E7FE0 INFO | 20100303-114547.140 | basicRegister.exe | RESIP:TEST | 2452 | basicRegist er.cxx:48 | ClientHandler::onFailure: SIP/2.0 503 Service Unavailable Via: SIP/2.0/ ;branch=z9hG4bK-d8754z-b9469142762d3b5c-1---d8754z-;rport To: "163"<sip:163@sv7000>;tag=ae17715d From: "163"<sip:163@sv7000>;tag=2435101c Call-ID: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY. CSeq: 1 REGISTER Warning: 499 fcs "" Content-Length: 0 DEBUG | 20100303-114547.171 | basicRegister.exe | RESIP:DUM | 2452 | ClientRegis tration.cxx:59 | ClientRegistration::~ClientRegistration STACK | 20100303-114547.187 | basicRegister.exe | RESIP:DUM | 2452 | Handled.cxx :23 | &&&&&& ~Handled 2this(00F70668) 000E7FE0 DEBUG | 20100303-114547.187 | basicRegister.exe | RESIP:DUM | 2452 | DialogSet.c xx:122 | ********** DialogSet::~DialogSet: MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5 MzA5NDY.-2435101c************* STACK | 20100303-114547.203 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1959 | ************* Removing DialogSet *************** STACK | 20100303-114547.203 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1960 | Before: [MTdhYjEzNTEwYWUwODE4OGFlYjVkMTNmN2U5MzA5NDY.-2435101 c -> 003ADC28] STACK | 20100303-114547.218 | basicRegister.exe | RESIP:DUM | 2452 | DialogUsage Manager.cxx:1962 | After: [] STACK | 20100303-114547.218 | basicRegister.exe | RESIP:DUM | 2452 | Handled.cxx :23 | &&&&&& ~Handled 1this(003ADBA0) 000E7FE0 |