[Serusers] forward_reply: no 2nd via found in reply

viro at mail.ru viro at mail.ru
Tue Sep 21 12:15:46 CEST 2004


Hi!
Sorry for my English.
Unable to do click-to-dial whith Cisco access server participating.


I have the following:
Cisco Internetwork Operating System Software
IOS (tm) 5350 Software (C5350-IS-M), Version 12.3(3), RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 19-Aug-03 05:12 by dchih
Image text-base: 0x6000895C, data-base: 0x61600000
FastEthernet0/0 is up, line protocol is up
  Hardware is Fast Ethernet, address is 000e.d7b9.6a5e (bia 000e.d7b9.6a5e)
  Internet address is 195.234.147.120/28

Run:
[root at sip root]# ctd.sh "sip:8644111 at cint.ru" "sip:5089718 at cint.ru"

Listern:
[root at sip root]# ngrep -L port 5060
interface: eth0 (195.234.147.64/255.255.255.248)
filter: ip and ( port 5060 )
#
U 195.234.147.65:5060 -> 195.234.147.120:5060
INVITE sip:05508644111 at 195.234.147.120:5060 SIP/2.0.
Max-Forwards: 10.
Record-Route: <sip:8644111 at 195.234.147.65;ftag=10957534616353;lr=on>.
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.c2d855f3.0.
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.b2d855f3.0.
To: <sip:8644111 at cint.ru>.
From: <sip:1111111 at cint.ru>;tag=10957534616353.
CSeq: 1 INVITE.
Call-ID: 10957534616353.fifouacctd.
Content-Length: 131.
User-Agent: Sip EXpress router(0.8.14 (i386/linux)).
Contact: <sip:caller at 195.234.147.65:5060>.
Content-Type: application/sdp.
.
v=0.
o=click-to-dial 0 0 IN IP4 0.0.0.0.
s=session.
c=IN IP4 0.0.0.0.
b=CT:1000.
t=0 0.
m=audio 9 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.

#
U 195.234.147.120:5060 -> 195.234.147.65:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.c2d855f3.0,SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.b2d855f3.0.
From: <sip:1111111 at cint.ru>;tag=10957534616353.
To: <sip:8644111 at cint.ru>;tag=130B2EC0-1B21.
Date: Tue, 21 Sep 2004 07:57:42 GMT.
Call-ID: 10957534616353.fifouacctd.
Server: Cisco-SIPGateway/IOS-12.x.
CSeq: 1 INVITE.
Allow-Events: telephone-event.
Content-Length: 0.
.

I have:
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.c2d855f3.0,SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.b2d855f3.0.

Requed correct to?:
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.c2d855f3.0.
Via: SIP/2.0/UDP 195.234.147.65;branch=z9hG4bK11eb.b2d855f3.0.


I Want something like this:
subst('/Via: (.*),SIP(.*)$/Via: \1\.\nVia: SIP\2./g'))
NOT WORK. Not find "," in regexp

Test1:
if (subst('/SIP/SIP/g')) {log(1, "AAAAAAAAAAA\n");};
Work:

Test2:
if (subst('/,SIP/,SIP/g')) {log(1, "AAAAAAAAAAA\n");};
Not work: I can't backslashed ","




More information about the sr-users mailing list