Hello all,

I've a little problem with the SIP phone Thomson ST2030.
When it registers, it auto-adds ";user=phone" in all the fields it can be.
The problem is that it can't be called due to the contact header, kamailio can't found the phone.

I tried to delete the filed during the REGISTER and the PROXY AUTH processes, with no success ...

If someone has a solution, many thanks !

-- --
kamailio.cfg :
-- --
...
        # ;user=phone hack
        if (search("^Contact:.*;user=phone"))
        {
                xlog("L_INFO", "-> user=phone found, remove it - F=$fu ContactHF=$ct");
                replace_all(";user=phone", "\r\n");
                #subst("/;user=phone$;$"))
        }
...

=> all the logs here :

-- --
SQL result
-- --

Database: openser
SQL query: SELECT * FROM `location` WHERE `id` = 383 LIMIT 0, 30 ;

id             383
username     0123451013
domain             sip.720.fr
contact     sip:0123451013@192.168.0.158:5060;user=phone
received     sip:77.246.81.162:1902
path             NULL
expires     2008-11-28 13:02:16
q             0.00
callid             18786315-c0a80101-5-a@192.168.0.158
cseq             270
last_modified     2008-11-28 12:02:16
flags             0
cflags             64
user_agent     THOMSON ST2030 hw5 fw1.63 00-14-7F-00-5E-0A
socket             udp:77.246.81.132:5060
methods     NULL

-- --
kamailio REGISTER sip buffer
-- --

REGISTER sip:sip.720.fr;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.0.158:5060;branch=z9hG4bK363142985921875976-158787787
From: <sip:0123451013@sip.720.fr:5060;user=phone>;tag=c0a80101-976e8ab
To: <sip:0123451013@sip.720.fr:5060;user=phone>
Call-ID: 18786315-c0a80101-5-a@192.168.0.158
CSeq: 250 REGISTER
Max-Forwards: 69
Expires: 3600
Contact: <sip:0123451013@192.168.0.158:5060;user=phone>
Authorization: Digest username="0123451013", realm="sip.720.fr",
nonce="492f8a92000000697e7fefd30ce752d7e50c6166da2cc6e2",
uri="sip:sip.720.fr", response="37f8ec824ba77eb37583f38f2a509f77",
algorithm=MD5, qop=auth, cnonce="976e8cb", nc=00000001
User-Agent: THOMSON ST2030 hw5 fw1.63 00-14-7F-00-5E-0A
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold
Content-Length: 0

-- --
ngrep log :
-- --

U 2008/11/28 12:13:59.813649 77.246.81.162:8680 -> 77.246.81.132:5060
INVITE sip:0123451013@sip.720.fr SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c.
From: "Sam" <sip:0123451010@sip.720.fr>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Remote-Party-ID: "Sam" <sip:0123451010@sip.720.fr>;screen=yes;party=calling.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Max-Forwards: 50.
Proxy-Authorization: Digest username="0123451010",realm="sip.720.fr",nonce="492fd3a300000094c9e8b4f3805f7f96dc3f36f981a64570",uri="sip:0123451013@sip.720.fr",algorithm=MD5,response="1538e1ac3e3181f8bfb6f473f2470a6a",qop=auth,nc=00000001,cnonce="7c8a76fd".
Contact: "Sam" <sip:0123451010@192.168.0.113:5060>.
Expires: 240.
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 263.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.
Supported: 100rel, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 33629308 33629308 IN IP4 192.168.0.113.
s=-.
c=IN IP4 192.168.0.113.
t=0 0.
m=audio 35692 RTP/AVP 18 0 8 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.


U 2008/11/28 12:13:59.820056 77.246.81.132:5060 -> 77.246.81.162:8680
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c;rport=8680;received=77.246.81.162.
From: "Sam" <sip:0123451010@sip.720.fr>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Server: 720 DEGRES SIP PROXY.
Content-Length: 0.
Warning: 392 77.246.81.132:5060 "Noisy feedback tells:  pid=14141 req_src_ip=77.246.81.162 req_src_port=8680 in_uri=sip:0123451013@sip.720.fr out_uri=sip:0123451013@sip.720.fr via_cnt==1".
.


U 2008/11/28 12:13:59.882639 77.246.81.132:5060 -> 77.246.81.162:1902
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.
Record-Route: <sip:77.246.81.132;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.
Via: SIP/2.0/UDP 77.246.81.132;branch=z9hG4bK821.3a570854.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=77.246.81.162;branch=z9hG4bK-eb23842c.
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Max-Forwards: 49.
Contact: "Sam" <sip:0123451010@77.246.81.162:8680>.
Expires: 240.
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 281.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.
Supported: 100rel, replaces.
Content-Type: application/sdp.
Privacy: id.
Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.
.
v=0.
o=- 33629308 33629308 IN IP4 192.168.0.113.
s=-.
c=IN IP4 77.246.81.133.
t=0 0.
m=audio 35132 RTP/AVP 18 0 8 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
a=nortpproxy:yes.


U 2008/11/28 12:14:00.273883 77.246.81.132:5060 -> 77.246.81.162:1902
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.
Record-Route: <sip:77.246.81.132;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.
Via: SIP/2.0/UDP 77.246.81.132;branch=z9hG4bK821.3a570854.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=77.246.81.162;branch=z9hG4bK-eb23842c.
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Max-Forwards: 49.
Contact: "Sam" <sip:0123451010@77.246.81.162:8680>.
Expires: 240.
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 281.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.
Supported: 100rel, replaces.
Content-Type: application/sdp.
Privacy: id.
Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.
.
v=0.
o=- 33629308 33629308 IN IP4 192.168.0.113.
s=-.
c=IN IP4 77.246.81.133.
t=0 0.
m=audio 35132 RTP/AVP 18 0 8 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
a=nortpproxy:yes.


U 2008/11/28 12:14:01.272604 77.246.81.132:5060 -> 77.246.81.162:1902
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.
Record-Route: <sip:77.246.81.132;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.
Via: SIP/2.0/UDP 77.246.81.132;branch=z9hG4bK821.3a570854.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=77.246.81.162;branch=z9hG4bK-eb23842c.
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Max-Forwards: 49.
Contact: "Sam" <sip:0123451010@77.246.81.162:8680>.
Expires: 240.
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 281.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.
Supported: 100rel, replaces.
Content-Type: application/sdp.
Privacy: id.
Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.
.
v=0.
o=- 33629308 33629308 IN IP4 192.168.0.113.
s=-.
c=IN IP4 77.246.81.133.
t=0 0.
m=audio 35132 RTP/AVP 18 0 8 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
a=nortpproxy:yes.


U 2008/11/28 12:14:03.283852 77.246.81.132:5060 -> 77.246.81.162:1902
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.
Record-Route: <sip:77.246.81.132;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.
Via: SIP/2.0/UDP 77.246.81.132;branch=z9hG4bK821.3a570854.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=77.246.81.162;branch=z9hG4bK-eb23842c.
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 INVITE.
Max-Forwards: 49.
Contact: "Sam" <sip:0123451010@77.246.81.162:8680>.
Expires: 240.
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 281.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.
Supported: 100rel, replaces.
Content-Type: application/sdp.
Privacy: id.
Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.
.
v=0.
o=- 33629308 33629308 IN IP4 192.168.0.113.
s=-.
c=IN IP4 77.246.81.133.
t=0 0.
m=audio 35132 RTP/AVP 18 0 8 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
a=nortpproxy:yes.


U 2008/11/28 12:14:04.905612 77.246.81.162:8680 -> 77.246.81.132:5060
CANCEL sip:0123451013@sip.720.fr SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c.
From: "Sam" <sip:0123451010@sip.720.fr>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 CANCEL.
Max-Forwards: 50.
Proxy-Authorization: Digest username="0123451010",realm="sip.720.fr",nonce="492fd3a300000094c9e8b4f3805f7f96dc3f36f981a64570",uri="sip:0123451013@sip.720.fr",algorithm=MD5,response="07e4433c6000309b8cac1f917dbb9643",qop=auth,nc=00000002,cnonce="7c8a76fd".
User-Agent: Linksys/SPA941-5.1.8.
Content-Length: 0.
.


U 2008/11/28 12:14:04.912088 77.246.81.132:5060 -> 77.246.81.162:8680
SIP/2.0 501 Method Not Supported Here.
Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c;rport=8680;received=77.246.81.162.
From: "Sam" <sip:0123451010@sip.720.fr>;tag=4209e88c969ca7dfo0.
To: "st2030" <sip:0123451013@sip.720.fr>;tag=d25c9349df891607b66aeb00d1da49ca.b1d0.
Call-ID: 39d2f3d0-b283756b@192.168.0.113.
CSeq: 102 CANCEL.
Server: 720 DEGRES SIP PROXY.
Content-Length: 0.
Warning: 392 77.246.81.132:5060 "Noisy feedback tells:  pid=14137 req_src_ip=77.246.81.162 req_src_port=8680 in_uri=sip:0123451013@sip.720.fr out_uri=sip:0123451013@sip.720.fr via_cnt==1".


--
Samuel MULLER
Ingénieur Reseaux & Telecom
720 DEGRES
+33 (0)663 128 505
sml@720.fr