Hello all,<br><br>I've a little problem with the SIP phone Thomson ST2030.<br>When it registers, it auto-adds ";user=phone" in all the fields it can be.<br>The problem is that it can't be called due to the contact header, kamailio can't found the phone.<br>
<br>I tried to delete the filed during the REGISTER and the PROXY AUTH processes, with no success ...<br><br>If someone has a solution, many thanks !<br><br>-- --<br>
kamailio.cfg :<br>
-- --<br>
...<br>
# ;user=phone hack<br>
if (search("^Contact:.*;user=phone"))<br>
{<br>
xlog("L_INFO", "-> user=phone found, remove it - F=$fu ContactHF=$ct");<br>
replace_all(";user=phone", "\r\n");<br>
#subst("/;user=phone$;$"))<br>
}<br>...<br><br>=> all the logs here :<br><br>-- --<br>SQL result<br>-- --<br><br>Database: openser<br>SQL query: SELECT * FROM `location` WHERE `id` = 383 LIMIT 0, 30 ;<br><br>id 383<br>username 0123451013<br>
domain <a href="http://sip.720.fr">sip.720.fr</a><br>contact sip:0123451013@192.168.0.158:5060;user=phone<br>received sip:<a href="http://77.246.81.162:1902">77.246.81.162:1902</a><br>path NULL<br>
expires 2008-11-28 13:02:16<br>q 0.00<br>callid <a href="mailto:18786315-c0a80101-5-a@192.168.0.158">18786315-c0a80101-5-a@192.168.0.158</a><br>cseq 270<br>last_modified 2008-11-28 12:02:16<br>
flags 0<br>cflags 64<br>user_agent THOMSON ST2030 hw5 fw1.63 00-14-7F-00-5E-0A<br>socket udp:<a href="http://77.246.81.132:5060">77.246.81.132:5060</a><br>methods NULL<br><br>-- --<br>
kamailio REGISTER sip buffer <br>-- --<br><br>REGISTER sip:<a href="http://sip.720.fr">sip.720.fr</a>;user=phone SIP/2.0<br>Via: SIP/2.0/UDP 192.168.0.158:5060;branch=z9hG4bK363142985921875976-158787787<br>From: <sip:0123451013@sip.720.fr:5060;user=phone>;tag=c0a80101-976e8ab<br>
To: <sip:0123451013@sip.720.fr:5060;user=phone><br>Call-ID: <a href="mailto:18786315-c0a80101-5-a@192.168.0.158">18786315-c0a80101-5-a@192.168.0.158</a><br>CSeq: 250 REGISTER<br>Max-Forwards: 69<br>Expires: 3600<br>
Contact: <sip:0123451013@192.168.0.158:5060;user=phone><br>Authorization: Digest username="0123451013", realm="<a href="http://sip.720.fr">sip.720.fr</a>",<br>nonce="492f8a92000000697e7fefd30ce752d7e50c6166da2cc6e2",<br>
uri="sip:<a href="http://sip.720.fr">sip.720.fr</a>", response="37f8ec824ba77eb37583f38f2a509f77",<br>algorithm=MD5, qop=auth, cnonce="976e8cb", nc=00000001<br>User-Agent: THOMSON ST2030 hw5 fw1.63 00-14-7F-00-5E-0A<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>Content-Length: 0<br><br>-- --<br>ngrep log :<br>-- --<br><br>U 2008/11/28 12:13:59.813649 <a href="http://77.246.81.162:8680">77.246.81.162:8680</a> -> <a href="http://77.246.81.132:5060">77.246.81.132:5060</a><br>
INVITE <a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c.<br>From: "Sam" <<a href="mailto:sip%3A0123451010@sip.720.fr">sip:0123451010@sip.720.fr</a>>;tag=4209e88c969ca7dfo0.<br>
To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Remote-Party-ID: "Sam" <<a href="mailto:sip%3A0123451010@sip.720.fr">sip:0123451010@sip.720.fr</a>>;screen=yes;party=calling.<br>
Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>CSeq: 102 INVITE.<br>Max-Forwards: 50.<br>Proxy-Authorization: Digest username="0123451010",realm="<a href="http://sip.720.fr">sip.720.fr</a>",nonce="492fd3a300000094c9e8b4f3805f7f96dc3f36f981a64570",uri="<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>",algorithm=MD5,response="1538e1ac3e3181f8bfb6f473f2470a6a",qop=auth,nc=00000001,cnonce="7c8a76fd".<br>
Contact: "Sam" <<a href="http://sip:0123451010@192.168.0.113:5060">sip:0123451010@192.168.0.113:5060</a>>.<br>Expires: 240.<br>User-Agent: Linksys/SPA941-5.1.8.<br>Content-Length: 263.<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.<br>
Supported: 100rel, replaces.<br>Content-Type: application/sdp.<br>.<br>v=0.<br>o=- 33629308 33629308 IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>s=-.<br>c=IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>
t=0 0.<br>m=audio 35692 RTP/AVP 18 0 8 101.<br>a=rtpmap:18 G729a/8000.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-15.<br>a=ptime:30.<br>a=sendrecv.<br><br><br>U 2008/11/28 12:13:59.820056 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:8680">77.246.81.162:8680</a><br>
SIP/2.0 100 Trying.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>.<br>From: "Sam" <<a href="mailto:sip%3A0123451010@sip.720.fr">sip:0123451010@sip.720.fr</a>>;tag=4209e88c969ca7dfo0.<br>
To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>CSeq: 102 INVITE.<br>
Server: 720 DEGRES SIP PROXY.<br>Content-Length: 0.<br>Warning: 392 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> "Noisy feedback tells: pid=14141 req_src_ip=<a href="http://77.246.81.162">77.246.81.162</a> req_src_port=8680 in_uri=<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> out_uri=<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> via_cnt==1".<br>
.<br><br><br>U 2008/11/28 12:13:59.882639 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:1902">77.246.81.162:1902</a><br>INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.<br>
Record-Route: <sip:<a href="http://77.246.81.132">77.246.81.132</a>;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.<br>Via: SIP/2.0/UDP <a href="http://77.246.81.132">77.246.81.132</a>;branch=z9hG4bK821.3a570854.0.<br>
Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>;branch=z9hG4bK-eb23842c.<br>From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.<br>
To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>CSeq: 102 INVITE.<br>
Max-Forwards: 49.<br>Contact: "Sam" <<a href="http://sip:0123451010@77.246.81.162:8680">sip:0123451010@77.246.81.162:8680</a>>.<br>Expires: 240.<br>User-Agent: Linksys/SPA941-5.1.8.<br>Content-Length: 281.<br>
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.<br>Supported: 100rel, replaces.<br>Content-Type: application/sdp.<br>Privacy: id.<br>Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.<br>
.<br>v=0.<br>o=- 33629308 33629308 IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>s=-.<br>c=IN IP4 <a href="http://77.246.81.133">77.246.81.133</a>.<br>t=0 0.<br>m=audio 35132 RTP/AVP 18 0 8 101.<br>a=rtpmap:18 G729a/8000.<br>
a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-15.<br>a=ptime:30.<br>a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U 2008/11/28 12:14:00.273883 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:1902">77.246.81.162:1902</a><br>
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.<br>Record-Route: <sip:<a href="http://77.246.81.132">77.246.81.132</a>;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.<br>
Via: SIP/2.0/UDP <a href="http://77.246.81.132">77.246.81.132</a>;branch=z9hG4bK821.3a570854.0.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>;branch=z9hG4bK-eb23842c.<br>
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.<br>To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>
CSeq: 102 INVITE.<br>Max-Forwards: 49.<br>Contact: "Sam" <<a href="http://sip:0123451010@77.246.81.162:8680">sip:0123451010@77.246.81.162:8680</a>>.<br>Expires: 240.<br>User-Agent: Linksys/SPA941-5.1.8.<br>
Content-Length: 281.<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.<br>Supported: 100rel, replaces.<br>Content-Type: application/sdp.<br>Privacy: id.<br>Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.<br>
.<br>v=0.<br>o=- 33629308 33629308 IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>s=-.<br>c=IN IP4 <a href="http://77.246.81.133">77.246.81.133</a>.<br>t=0 0.<br>m=audio 35132 RTP/AVP 18 0 8 101.<br>a=rtpmap:18 G729a/8000.<br>
a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-15.<br>a=ptime:30.<br>a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U 2008/11/28 12:14:01.272604 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:1902">77.246.81.162:1902</a><br>
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.<br>Record-Route: <sip:<a href="http://77.246.81.132">77.246.81.132</a>;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.<br>
Via: SIP/2.0/UDP <a href="http://77.246.81.132">77.246.81.132</a>;branch=z9hG4bK821.3a570854.0.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>;branch=z9hG4bK-eb23842c.<br>
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.<br>To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>
CSeq: 102 INVITE.<br>Max-Forwards: 49.<br>Contact: "Sam" <<a href="http://sip:0123451010@77.246.81.162:8680">sip:0123451010@77.246.81.162:8680</a>>.<br>Expires: 240.<br>User-Agent: Linksys/SPA941-5.1.8.<br>
Content-Length: 281.<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.<br>Supported: 100rel, replaces.<br>Content-Type: application/sdp.<br>Privacy: id.<br>Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.<br>
.<br>v=0.<br>o=- 33629308 33629308 IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>s=-.<br>c=IN IP4 <a href="http://77.246.81.133">77.246.81.133</a>.<br>t=0 0.<br>m=audio 35132 RTP/AVP 18 0 8 101.<br>a=rtpmap:18 G729a/8000.<br>
a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-15.<br>a=ptime:30.<br>a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U 2008/11/28 12:14:03.283852 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:1902">77.246.81.162:1902</a><br>
INVITE sip:0123451013@192.168.0.158:5060;user=phone SIP/2.0.<br>Record-Route: <sip:<a href="http://77.246.81.132">77.246.81.132</a>;lr=on;ftag=4209e88c969ca7dfo0;nat=yes;vsf=dTRjN2NvOSh5O2l3chRUKWUpZWo5MGkrLFxGBRldBw-->.<br>
Via: SIP/2.0/UDP <a href="http://77.246.81.132">77.246.81.132</a>;branch=z9hG4bK821.3a570854.0.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>;branch=z9hG4bK-eb23842c.<br>
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=4209e88c969ca7dfo0.<br>To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>
CSeq: 102 INVITE.<br>Max-Forwards: 49.<br>Contact: "Sam" <<a href="http://sip:0123451010@77.246.81.162:8680">sip:0123451010@77.246.81.162:8680</a>>.<br>Expires: 240.<br>User-Agent: Linksys/SPA941-5.1.8.<br>
Content-Length: 281.<br>Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER.<br>Supported: 100rel, replaces.<br>Content-Type: application/sdp.<br>Privacy: id.<br>Remote-Party-ID: <<null>>;party=caller;privacy=yes;screen=no.<br>
.<br>v=0.<br>o=- 33629308 33629308 IN IP4 <a href="http://192.168.0.113">192.168.0.113</a>.<br>s=-.<br>c=IN IP4 <a href="http://77.246.81.133">77.246.81.133</a>.<br>t=0 0.<br>m=audio 35132 RTP/AVP 18 0 8 101.<br>a=rtpmap:18 G729a/8000.<br>
a=rtpmap:0 PCMU/8000.<br>a=rtpmap:8 PCMA/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-15.<br>a=ptime:30.<br>a=sendrecv.<br>a=nortpproxy:yes.<br><br><br>U 2008/11/28 12:14:04.905612 <a href="http://77.246.81.162:8680">77.246.81.162:8680</a> -> <a href="http://77.246.81.132:5060">77.246.81.132:5060</a><br>
CANCEL <a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c.<br>From: "Sam" <<a href="mailto:sip%3A0123451010@sip.720.fr">sip:0123451010@sip.720.fr</a>>;tag=4209e88c969ca7dfo0.<br>
To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>CSeq: 102 CANCEL.<br>
Max-Forwards: 50.<br>Proxy-Authorization: Digest username="0123451010",realm="<a href="http://sip.720.fr">sip.720.fr</a>",nonce="492fd3a300000094c9e8b4f3805f7f96dc3f36f981a64570",uri="<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>",algorithm=MD5,response="07e4433c6000309b8cac1f917dbb9643",qop=auth,nc=00000002,cnonce="7c8a76fd".<br>
User-Agent: Linksys/SPA941-5.1.8.<br>Content-Length: 0.<br>.<br><br><br>U 2008/11/28 12:14:04.912088 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> -> <a href="http://77.246.81.162:8680">77.246.81.162:8680</a><br>
SIP/2.0 501 Method Not Supported Here.<br>Via: SIP/2.0/UDP 192.168.0.113:5060;branch=z9hG4bK-eb23842c;rport=8680;received=<a href="http://77.246.81.162">77.246.81.162</a>.<br>From: "Sam" <<a href="mailto:sip%3A0123451010@sip.720.fr">sip:0123451010@sip.720.fr</a>>;tag=4209e88c969ca7dfo0.<br>
To: "st2030" <<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a>>;tag=d25c9349df891607b66aeb00d1da49ca.b1d0.<br>Call-ID: <a href="mailto:39d2f3d0-b283756b@192.168.0.113">39d2f3d0-b283756b@192.168.0.113</a>.<br>
CSeq: 102 CANCEL.<br>Server: 720 DEGRES SIP PROXY.<br>Content-Length: 0.<br>Warning: 392 <a href="http://77.246.81.132:5060">77.246.81.132:5060</a> "Noisy feedback tells: pid=14137 req_src_ip=<a href="http://77.246.81.162">77.246.81.162</a> req_src_port=8680 in_uri=<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> out_uri=<a href="mailto:sip%3A0123451013@sip.720.fr">sip:0123451013@sip.720.fr</a> via_cnt==1".<br>
<br clear="all"><br>-- <br>Samuel MULLER<br>Ingénieur Reseaux & Telecom<br>720 DEGRES<br>+33 (0)663 128 505<br><a href="mailto:sml@720.fr">sml@720.fr</a><br>