[Devel] uac_replace_from: display name not restored for ACK/BYE

Ovidiu Sas sip.nslu at gmail.com
Mon Feb 12 15:10:09 CET 2007


Hi Bogdan,

Yes, uac_replace_from will do the trick, but it will complicate the script.
Can we, by default, blank the display name  while in "auto" mode?
Or add a new mode/param that will control this?


Regards,
Ovidiu Sas

On 2/12/07, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> Hi Ovidiu,
>
> no, the display name is not restorable because: 1) is it not transaction
> critical element, 2) usually is it used only in original request and 3)
> more info in RR would be required for restoring it also.
>
> you can use uac_replace_from :
>
>
> # remove display and do not touch uri
> uac_replace_from("","");
>
>
> to remove the display from the sequential requests.
>
> regards,
> bogdan
>
> Ovidiu Sas wrote:
> > Hi,
> >
> > I was playing with uac_replace_from and I noticed that the display
> > name for "From" header is not restored.  Is this the expected
> > bahaviour?
> >
> >
> > Regards,
> > Ovidiu Sas
> >
> >
> > Here's the relevant trace (compare "From" for the second INVITE with
> > "From" for the second ACK/BYE):
> >
> > U 2007/02/11 22:35:23.018769 192.168.2.102:50611 -> 192.168.2.22:5060
> > INVITE sip:200 at 192.168.2.22 SIP/2.0.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK18d317c9.
> > From: "Line 6"
> > <sip:line-6 at 192.168.2.22>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 70.
> > Date: Mon, 12 Feb 2007 03:34:57 GMT.
> > CSeq: 102 INVITE.
> > User-Agent: Cisco-CP7960G/7.5.
> > Contact: <sip:line-6 at 192.168.2.102:5060>.
> > Proxy-Authorization: Digest
> > username="line-6",realm="192.168.2.22",uri="sip:200 at 192.168.2.22",response="d8424444a17c4d2d2a2fde1eb746a39b",nonce="45cf9b563e06cce0b3403195c0b70ade460ac633",algorithm=md5.
> >
> > Expires: 180.
> > Content-Length: 256.
> > Content-Type: application/sdp.
> > Content-Disposition: session;handling=optional.
> > .
> > v=0.
> > o=Cisco-SIPUA 9111 0 IN IP4 192.168.2.102.
> > s=SIP Call.
> > t=0 0.
> > m=audio 29584 RTP/AVP 0 8 18 101.
> > c=IN IP4 192.168.2.102.
> > a=rtpmap:0 PCMU/8000.
> > a=rtpmap:8 PCMA/8000.
> > a=rtpmap:18 G729/8000.
> > a=rtpmap:101 telephone-event/8000.
> > a=fmtp:101 0-15.
> > a=sendrecv.
> >
> >
> > U 2007/02/11 22:35:23.067217 192.168.2.22:5060 -> 192.168.2.20:5060
> > INVITE sip:200 at 192.168.2.20:5060;transport=udp SIP/2.0.
> > Record-Route:
> > <sip:192.168.2.22;lr;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM->.
> >
> > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK1d32.06bd5ca7.0.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK18d317c9.
> > From: "Anonymous"
> > <sip:anonymous at 127.0.0.1>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 69.
> > Date: Mon, 12 Feb 2007 03:34:57 GMT.
> > CSeq: 102 INVITE.
> > User-Agent: Cisco-CP7960G/7.5.
> > Contact: <sip:line-6 at 192.168.2.102:5060>.
> > Expires: 180.
> > Content-Length: 256.
> > Content-Type: application/sdp.
> > Content-Disposition: session;handling=optional.
> > .
> > v=0.
> > o=Cisco-SIPUA 9111 0 IN IP4 192.168.2.102.
> > s=SIP Call.
> > t=0 0.
> > m=audio 29584 RTP/AVP 0 8 18 101.
> > c=IN IP4 192.168.2.102.
> > a=rtpmap:0 PCMU/8000.
> > a=rtpmap:8 PCMA/8000.
> > a=rtpmap:18 G729/8000.
> > a=rtpmap:101 telephone-event/8000.
> > a=fmtp:101 0-15.
> > a=sendrecv.
> >
> >
> >
> > ....
> >
> >
> >
> > U 2007/02/11 22:35:23.396768 192.168.2.102:50611 -> 192.168.2.22:5060
> > ACK
> > sip:200 at 192.168.2.20:5060;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM-
> >
> > SIP/2.0.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK06cbe6a6.
> > From: "Line 6"
> > <sip:line-6 at 192.168.2.22>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>;tag=as27b5454a.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 70.
> > Date: Mon, 12 Feb 2007 03:34:57 GMT.
> > CSeq: 102 ACK.
> > User-Agent: Cisco-CP7960G/7.5.
> > Route:
> > <sip:192.168.2.22:5060;lr;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM->.
> >
> > Proxy-Authorization: Digest
> > username="line-6",realm="192.168.2.22",uri="sip:200 at 192.168.2.22",response="d8424444a17c4d2d2a2fde1eb746a39b",nonce="45cf9b563e06cce0b3403195c0b70ade460ac633",algorithm=md5.
> >
> > Content-Length: 0.
> > .
> >
> >
> > U 2007/02/11 22:35:23.401911 192.168.2.22:5060 -> 192.168.2.20:5060
> > ACK
> > sip:200 at 192.168.2.20:5060;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM-
> >
> > SIP/2.0.
> > Record-Route:
> > <sip:192.168.2.22;lr;ftag=00036be7b1244f320d98fce7-0c5b9355>.
> > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK1d32.06bd5ca7.2.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK06cbe6a6.
> > From: "Line 6"
> > <sip:anonymous at 127.0.0.1>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>;tag=as27b5454a.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 69.
> > Date: Mon, 12 Feb 2007 03:34:57 GMT.
> > CSeq: 102 ACK.
> > User-Agent: Cisco-CP7960G/7.5.
> > Content-Length: 0.
> > P-hint: rr-enforced.
> > .
> >
> >
> > ....
> >
> >
> >
> > U 2007/02/11 22:35:26.044534 192.168.2.102:50611 -> 192.168.2.22:5060
> > BYE
> > sip:200 at 192.168.2.20:5060;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM-
> >
> > SIP/2.0.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK51ed5d3b.
> > From: "Line 6"
> > <sip:line-6 at 192.168.2.22>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>;tag=as27b5454a.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 70.
> > Date: Mon, 12 Feb 2007 03:35:00 GMT.
> > CSeq: 103 BYE.
> > User-Agent: Cisco-CP7960G/7.5.
> > Content-Length: 0.
> > RTP-RxStat: Dur=??,Pkt=??,Oct=??,LatePkt=??,LostPkt=??,AvgJit=??.
> > RTP-TxStat: Dur=??,Pkt=??,Oct=??.
> > Route:
> > <sip:192.168.2.22:5060;lr;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM->.
> >
> > Proxy-Authorization: Digest
> > username="line-6",realm="192.168.2.22",uri="sip:200 at 192.168.2.20:5060;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM-",response="403793ecca491c274f18f0fb628e8691",nonce="45cf9b563e06cce0b3403195c0b70ade460ac633",algorithm=md5.
> >
> > .
> >
> >
> > U 2007/02/11 22:35:26.074212 192.168.2.22:5060 -> 192.168.2.20:5060
> > BYE
> > sip:200 at 192.168.2.20:5060;ftag=00036be7b1244f320d98fce7-0c5b9355;vsf=AAAAAA0HAQtUWy9ESnIfAwEWHhweHAM-
> >
> > SIP/2.0.
> > Record-Route:
> > <sip:192.168.2.22;lr;ftag=00036be7b1244f320d98fce7-0c5b9355>.
> > Via: SIP/2.0/UDP 192.168.2.22;branch=z9hG4bK2d32.149a9413.0.
> > Via: SIP/2.0/UDP 192.168.2.102:5060;branch=z9hG4bK51ed5d3b.
> > From: "Line 6"
> > <sip:anonymous at 127.0.0.1>;tag=00036be7b1244f320d98fce7-0c5b9355.
> > To: <sip:200 at 192.168.2.22>;tag=as27b5454a.
> > Call-ID: 00036be7-b1240065-346cf3a4-75f242f5 at 192.168.2.102.
> > Max-Forwards: 69.
> > Date: Mon, 12 Feb 2007 03:35:00 GMT.
> > CSeq: 103 BYE.
> > User-Agent: Cisco-CP7960G/7.5.
> > Content-Length: 0.
> > RTP-RxStat: Dur=??,Pkt=??,Oct=??,LatePkt=??,LostPkt=??,AvgJit=??.
> > RTP-TxStat: Dur=??,Pkt=??,Oct=??.
> > P-hint: rr-enforced.
> > .
> >
> > _______________________________________________
> > Devel mailing list
> > Devel at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/devel
> >
>
>



More information about the Devel mailing list