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

Re: [reSIProcate-users] send REGISTER using DUM, REGISTER does not go out.


Why are you modifying the request line - is the one created for you from calling makeRegistration not sufficient?

If there is some reason to do this, then the following code would be cleaner:
sipMessage->header(h_RequestLine).uri() = Uri("sip:blah....");

Scott

On Tue, Aug 31, 2010 at 1:56 PM, Hong Zhang <zhang@xxxxxxxxxxx> wrote:

Hi,

I am using DUM for SIP messages testing. Based on BasicCall.cxx, I can have  UAC and UCS talked(INVITE/200OK/ACK/BYE) to each other on two different machines. Now I am trying to send REGISTER before the call started. I modified the Request-URI header for the remote address as following(sysint10 is local, sysint11 is remote)

 

SharedPtr<SipMessage> sipMessage = dumUac->makeRegistration(uacAor,  new testAppDialogSet(*dumUac, "UAS(Registration)"));

/* modify the Request-Uri header */

 resip::RequestLine rLine = sipMessage->header(h_RequestLine);

 rLine.uri() = Uri("sip:sysint10.ulticom.com;transport=udp");

sipMessage->header(h_RequestLine) = rLine;

dumUac->send(sipMessage);

 

The REGISTER message did not send out in the line from the UAC side. Could you help me to check the REGISTER and see what is wrong on my configuration.

 

Thank you for your help.

 

Zhang

 

 

 

./z_client: /usr/lib64/libpopt.so.0: no version information available (required by ./z_client)

DEBUG | 20100831-132600.617 | z_client | RESIP | 47909822227696 | ssl/Security.cxx:867 | BaseSecurity::BaseSecurity

INFO | 20100831-132600.617 | z_client | RESIP:DNS | 47909822227696 | dns/AresDns.cxx:190 | DNS initialization: found  1 name servers

INFO | 20100831-132600.618 | z_client | RESIP:DNS | 47909822227696 | dns/AresDns.cxx:193 |  name server: 172.25.0.1

DEBUG | 20100831-132600.618 | z_client | RESIP | 47909822227696 | Compression.cxx:40 | COMPRESSION SUPPORT NOT COMPILED IN

DEBUG | 20100831-132600.618 | z_client | RESIP | 47909822227696 | Compression.cxx:43 | Compression configuration object created; algorithm = 0

DEBUG | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | TransportSelector.cxx:93 | No compression library available

DEBUG | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | InternalTransport.cxx:86 | Creating fd=3 V4/UDP

DEBUG | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | InternalTransport.cxx:94 | Binding to 0.0.0.0

INFO | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | UdpTransport.cxx:48 | Creating UDP transport host= port=5080 ipv4=1

DEBUG | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | UdpTransport.cxx:62 | No compression library available: Transport: [ V4 0.0.0.0:5080 UDP target domain=unspecified mFlowKey=3 ]

DEBUG | 20100831-132600.618 | z_client | RESIP:DNS | 47909822227696 | DnsUtil.cxx:434 | Considering: lo -> 127.0.0.1 flags=0x49

DEBUG | 20100831-132600.618 | z_client | RESIP:DNS | 47909822227696 | DnsUtil.cxx:444 |   ignore because: interface is loopback

DEBUG | 20100831-132600.618 | z_client | RESIP:DNS | 47909822227696 | DnsUtil.cxx:434 | Considering: eth0 -> 172.25.7.60 flags=0x1043

DEBUG | 20100831-132600.618 | z_client | RESIP:DNS | 47909822227696 | DnsUtil.cxx:463 |   using this

DEBUG | 20100831-132600.618 | z_client | RESIP | 47909822227696 | SipStack.cxx:225 | Adding domain alias: 127.0.0.1:5080

DEBUG | 20100831-132600.618 | z_client | RESIP | 47909822227696 | SipStack.cxx:225 | Adding domain alias: 172.25.7.60:5080

DEBUG | 20100831-132600.618 | z_client | RESIP:TRANSPORT | 47909822227696 | TransportSelector.cxx:196 | Adding transport: [ V4 0.0.0.0:5080 UDP target domain=unspecified mFlowKey=0 ]

DEBUG | 20100831-132600.618 | z_client | RESIP:DUM | 47909822227696 | UserProfile.cxx:135 | Adding credential: realm=sysint11.ulticom.com user=omnitest1

UAS(Registration): testAppDialogSet: created.

DEBUG | 20100831-132600.619 | z_client | RESIP:DUM | 47909822227696 | BaseCreator.cxx:155 | BaseCreator::makeInitialRequest: 0x1efa2870

DEBUG | 20100831-132600.619 | z_client | RESIP:DUM | 47909822227696 | RegistrationCreator.cxx:36 | RegistrationCreator::RegistrationCreator: 0x1efa2870

DEBUG | 20100831-132600.619 | z_client | RESIP:DUM | 47909822227696 | DialogSet.cxx:53 |  ************* Created DialogSet(UAC)  -- NTgxMmZjYTdmN2NkYzc0OGNiMWIzMDVjN2U4ZmRmZmE.-9751ef50*************

DEBUG | 20100831-132600.619 | z_client | RESIP:DUM | 47909822227696 | DialogUsageManager.cxx:867 | SEND:

 

REGISTER sip:sysint10.ulticom.com;transport=udp SIP/2.0

Via: SIP/2.0/UDP sysint11.ulticom.com:5080;branch=z9hG4bK-d8754z-043e9340c6829f07-1---d8754z-;rport

Max-Forwards: 70

Contact: <sip:omnitest1@xxxxxxxxxxxxxxxxxxxx:5080>

To: <sip:omnitest@xxxxxxxxxxxxxxxxxxxx;transport=udp>

From: <sip:omnitest@xxxxxxxxxxxxxxxxxxxx:5080>;tag=6497fc02

Call-ID: NTgxMmZjYTdmN2NkYzc0OGNiMWIzMDVjN2U4ZmRmZmE.

CSeq: 1 REGISTER

Expires: 3600

Accept-Language: en

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE, UPDATE, PRACK, INFO, MESSAGE

Supported: replaces, timer, norefersub, answermode, tdialog

Content-Length: 0

 

DEBUG | 20100831-132600.619 | z_client | RESIP:DUM | 47909822227696 | DialogId.cxx:50 | DialogId::DialogId: NTgxMmZjYTdmN2

NkYzc0OGNiMWIzMDVjN2U4ZmRmZmE.-6497fc02-

DEBUG | 20100831-132600.632 | z_client | RESIP:DUM | 47909822227696 | DialogUsageManager.cxx:1001 | Send: SipReq:  REGISTE

R sysint10.ulticom.com tid=043e9340c6829f07 cseq=REGISTER contact=omnitest1@xxxxxxxxxxxxxxxxxxxx:5080 / 1 from(tu)

DEBUG | 20100831-132600.632 | z_client | RESIP | 47909822227696 | SipStack.cxx:337 | SEND: SipReq:  REGISTER sysint10.ulti

com.com tid=043e9340c6829f07 cseq=REGISTER contact=omnitest1@xxxxxxxxxxxxxxxxxxxx:5080 / 1 from(tu)

terminate called without an active exception

./zc: line 3: 16549 Aborted                 ./z_client -n cout -v DEBUG -t UDP -m 5080 -c 2 -l "sip:omnitest@xxxxxxxxxxxxxxxxxxxx" -r "sip:omnitest@xxxxxxxxxxxxxxxxxxxx"


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