<p>I have found an instance where using an avp or xavp as the response variable for http_query will cause a segfault later in t_relay().  When I change the variable to a $var instead of an avp, there is no segfault.</p>

<p>I can only recreate it with a specific URL. If I try to reproduce it by simply sending a plain text response from a static page, it does not segfault.<br>
The http_query command is as follows:<br>
http_query("<a href="http://cnam.dashcs.com/?companyId=XXXXX&password=XXXXXXX&number=%24avp(from_phone)">http://cnam.dashcs.com/?companyId=XXXXX&password=XXXXXXX&number=$avp(from_phone)</a>", "$avp(cnam)");</p>

<p>version: kamailio 4.3.0 (x86_64/linux) c6aa95<br>
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: c6aa95 <br>
compiled on 13:39:06 Jun 10 2015 with gcc 4.8.2</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/212">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTGO-f2CS8iEbu4O_puWlEKRY9VBks5oUGffgaJpZM4FEq4p.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/212"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>