Hi I dont see any curruption in Via header of 180 response. What sipp doing is taking multiple Via entries and keeping them in single Via header in response. As long as it doesn't change the order of values, it is fine. I compared your multiple Via's in INVITE with "," seperated Via list in the response. They are fine.
Dhana On 5/19/08, Gomtesh Jain <[EMAIL PROTECTED]> wrote: > > Hi joerg, > If there are hops in ur sip network then u have to fetch the values of > via header field from INVITE and replace in 180 ringing. > Here I give u the sample, how I m using... > > > <recv request="INVITE" rrs="true" > > rrs="true" crlf="true" > <action> > <ereg regexp="(SIP.*branch=[^[:space:]]*)" search_in="hdr" > occurence="2" header="Via:" assign_to="3,6" /> > <ereg regexp="(SIP.*branch=[^[:space:]]*)" search_in="hdr" > occurence="1" header="Via:" assign_to="8,7" /> > <ereg regexp=".*" search_in="hdr" occurence="1" header="Record-Route:" > assign_to="9" /> > <ereg regexp="INVITE sip:([[:alnum:]]*)" search_in="msg" > assign_to="10,11" /> > > </action> > </recv> > <send> > <![CDATA[ > > SIP/2.0 180 Ringing > Via: [$7] > Via: [$6] > [last_From:] > [last_To:];tag=[call_number]-INV-UAS > [last_Call-ID:] > [last_CSeq:] > Contact: [field0] <sip:[EMAIL PROTECTED]:[local_port]> > [last_Record-Route:] > Content-Length: 0 > > ]]> > </send> > > > Hope it will help u .. > > Gomtesh > > On Thu, May 15, 2008 at 3:08 AM, Joerg Aelken <[EMAIL PROTECTED]> > wrote: > >> Hello SIPp-users, >> >> I am facing a problem with the format of the Via: header element generated >> with a [last_Via:] from a responding script. >> >> The related script excerpt looks like: >> ================================================ >> <recv request="INVITE" rrs="true" crlf="true"> >> </recv> >> >> <send> >> <![CDATA[ >> SIP/2.0 180 Ringing >> [last_Via:] >> [last_From:] >> [last_To:] >> [last_Call-ID:] >> [last_CSeq:] >> Contact: <sip:[EMAIL PROTECTED]:[local_port]> >> Content-Length: 0 >> ]]> >> </send> >> ================================================ >> >> >> For some strange reason the several Via-entries received with the INVITE >> message are concatenated into one long, corrupted Via-entry in the >> response >> which of course is not accepted by the receiving instances. >> Instead of generating separate via-entries as in the INVITE, the different >> via-entries >> are only separated by a comma and concatenated and truncated in one long >> line. >> >> Please see an example of the fault below: >> ================================================ >> INVITE sip:[EMAIL PROTECTED]:1021 SIP/2.0 >> Via: SIP/2.0/UDP 10.3.163.103:5060 >> ;branch=z9hG4bK_IMSCA0500633.000_9e02ec1c0fcef0686f9278defc05c1cc;lskpmc=P21 >> Record-Route: <sip:10.3.163.103;routing_id=pcscf_b_side;lskpmc=P21;lr> >> Via: SIP/2.0/TCP 10.3.163.88:5090 >> ;branch=z9hG4bK_IMSCA0500633.000_7983006b20c1e045a0abd40b30eea41c;lskpmc=S16 >> P-Asserted-Identity: <sip:[EMAIL PROTECTED]> >> Content-Length: 0 >> Contact: <sip:n1pcscf2.ims1.nsn.poc.zsb;fid=server_1> >> To: "032781111021" <sip:[EMAIL PROTECTED]> >> CSeq: 1 INVITE >> User-Agent: SIPp v3.1, built Apr 21 2008 >> Max-Forwards: 67 >> P-Service-Indication: CWP >> Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO >> Via: SIP/2.0/UDP 10.3.97.73:6060 >> ;branch=z9hG4bKcae25431-5b5f-48c0-aa8c-0f130274f0b2 >> Call-ID: 10.3.97.73_5_4153614493295327814 >> From: "032781111020" <sip:[EMAIL PROTECTED]>;tag=fg950tv8-7 >> Record-Route: >> <sip:n1scscf1.ims1.nsn.poc.zsb:5090;lr;interface=isc;lskpmc=S16;routing_id=a7b355f9e07d7e89359379e3aa8055bf;tid=a7b355f9e07d7e89359379e3aa8055bf> >> P-Called-Party-ID: <sip:[EMAIL PROTECTED]> >> >> >> ----------------------------------------------- 2008-05-15 >> 11:26:51:202.929 >> UDP message sent (573 bytes): >> >> SIP/2.0 180 Ringing >> Via: SIP/2.0/UDP >> 10.3.163.103:5060;branch=z9hG4bK_IMSCA0500633.000_9e02ec1c0fcef0686f9278defc05c1cc;lskpmc=P21, >> SIP/2.0/TCP >> 10.3.163.88:5090;branch=z9hG4bK_IMSCA0500633.000_7983006b20c1e045a0abd40b30eea41c;lskpmc=S16, >> SIP/2.0/UDP 10.3.97.73:6060 >> ;branch=z9hG4bKcae25431-5b5f-48c0-aa8c-0f130274f0b2 >> From: "032781111020" <sip:[EMAIL PROTECTED]>;tag=fg950tv8-7 >> To: "032781111021" <sip:[EMAIL PROTECTED]> >> Call-ID: 10.3.97.73_5_4153614493295327814 >> CSeq: 1 INVITE >> Contact: <sip:[EMAIL PROTECTED]:1021> >> Content-Length: 0 >> ================================================ >> >> Can anybody point me to the root cause of the problem? >> Any kind of hint would be highly appreciated. >> Thanks a lot for your help in advance, >> with best regards.........................................///Joerg >> >> >> >> >> >> >> >> >> >> *Jörg Aelken* Dipl.-Ing >> Systems Tester >> >> Development Unit Core & IMS >> >> >> >> *Ericsson GmbH* >> >> Eurolab R&D >> Kackertstrasse 7-9 >> D-52072 Aachen >> www.ericsson.com >> >> Office: +49 2407 575 6968 >> Fax: +49 2407 575 150 >> >> Mobile: +49 173 5432027 >> Email: [EMAIL PROTECTED] >> >> >> Ericsson GmbH. Sitz: Düsseldorf. Registergericht: Amtsgericht Düsseldorf, >> HRB 33012. Geschäftsführer: Carsten Ahrens. Aufsichtsratsvorsitzender: >> Anders Olin >> >> >> This communication is confidential and intended solely for the >> addressee(s). Any unauthorized review, use, disclosure or distribution is >> prohibited. If you believe this message has been sent to you in error, >> please notify the sender by replying to this transmission and delete the >> message without disclosing it. Thank you. >> >> E-mail including attachments is susceptible to data corruption, >> interception, unauthorized amendment, tampering and viruses, and we only >> send and receive emails on the basis that we are not liable for any such >> corruption, interception, amendment, tampering or viruses or any >> consequences thereof. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Sipp-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/sipp-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Sipp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sipp-users > >
<<Email Signature.gif>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
