<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:helvetica">
<p>When I included a pv transformation in my cfg script to extract the expires value from a Contact I found that it would not work if the Contact string contained spaces. I does not seem to affect registration.</p>
<p></p>
<p>$(ct{param.value,expires})</p>
<p></p>
<p>The following patch in 1.3.0 works for me --</p>
<p></p>
<p>--- parser/parse_param.c-orig 2007-12-22 23:23:05.000000000 -0800</p>
<p>+++ parser/parse_param.c 2007-12-22 23:23:38.000000000 -0800</p>
<p>@@ -281,7 +281,7 @@</p>
<p></p>
<p> while(_s->len) {</p>
<p> switch(_s->s[0]) {</p>
<p>- case ' ':</p>
<p>+ //case ' ':</p>
<p> case '\t':</p>
<p> case '\r':</p>
<p> case '\n':</p>
<p></p>
<p>An example of a message that fails Contact expires transformation --</p>
<p>Session Initiation Protocol</p>
<p> Request-Line: REGISTER sip:proxy01.sipphone.com SIP/2.0</p>
<p> Method: REGISTER</p>
<p> Resent Packet: False</p>
<p> Message Header</p>
<p> Via: SIP/2.0/UDP 192.168.1.4:5061;branch=z9hG4bK-1849b3b3</p>
<p> From: Gateway <sip:17476316719@proxy01.sipphone.com>;tag=a0bda46794e0291o1</p>
<p> To: Gateway <sip:1234567@proxy01.sipphone.com></p>
<p> Call-ID: 6d0c06a5-8d11d464@192.168.1.4</p>
<p> CSeq: 51635 REGISTER</p>
<p> Max-Forwards: 70</p>
<p> Authorization: Digest username="1234567",realm="proxy01.sipphone.com",nonce="476e0e7866cafbf20434684456644a3d2022c85f",uri="sip:proxy01.sipphone.com",algorithm=MD5,response="57d8e4aea67f9bb45ced0394fe54d659"</p>
<p> <span style="font-weight:600">Contact: Gateway <sip:1234567@192.168.1.4:5061>;expires=3600</span></p>
<p> User-Agent: Linksys/SPA3000-3.1.10(GWd)</p>
<p> Content-Length: 0</p>
<p> Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER</p>
<p> Supported: x-sipura</p>
<p></p>
</body></html>