[sr-dev] utils module, http_query method, bug?

Brandon Armstead brandon at cryy.com
Fri Jul 24 05:36:27 CEST 2009


Hello,

    First off as always, thanks ahead of time!

I'm testing out the new http_query kamailio method/function, experiencing
some odd behavior.

When I do: http://sub.domain.com/folder/1111111111 <- 1111111111 being a
"file dynamically created", it may pull results i.e. "XYZ".

When I do: http://domain.com/test.txt <--- it may pull "XYZ", only the later
method is being stored inside of the avp/var that I set on http_query.

 I've tried everything from adjusting timeout, matching the end result in
the first with second that http serves, etc. The first one is a result that
is pulled dynamically, however the result is instantly rendered (no delay)
so is essentially the same amount of time between the two methods. At this
point the only difference I can see is the URI, one is on a subdomain, and
one is not, and one has two 'forward /' slashes, vs the other only has one
-- Any thoughts?

HTTP HEADERS
---------------------------------------------
AVP RESULT IS NOT STORED:

T +2.695119 KAMAILIO:50254 -> APACHE_SERVER_1:80 [AP]
GET /cnam/XXXXXXXXXX HTTP/1.1.
Host: APACHE_SERVER_1.
Accept: */*.
.


T +0.077494 APACHE_SERVER:80 -> KAMAILIO:50254 [AP]
HTTP/1.1 200 OK.
Date: Fri, 24 Jul 2009 03:28:44 GMT.
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 PHP/
5.2.9.
X-Powered-By: PHP/5.2.9.
Set-Cookie: PHPSESSID=73ab9eba6da2d51883d386bce2bb5967; path=/.
Expires: Thu, 19 Nov 1981 08:52:00 GMT.
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0.
Pragma: no-cache.
Content-Length: 15.
Content-Type: text/html.
.
Cell Phone   CA


AVP RESULT IS APPROPRIATELY STORED:


T +5.883544 KAMAILIO:34652 -> APACHE_SERVER_2:80 [AP]
GET /test.txt HTTP/1.1.
Host: APACHE_SERVER_2.
Accept: */*.
.


T +0.002655 APACHE_SERVER_2:80 -> KAMAILIO:34652 [AP]
HTTP/1.1 200 OK.
Date: Fri, 24 Jul 2009 03:29:14 GMT.
Server: Apache/2.2.11 (Unix) PHP/5.2.9.
Last-Modified: Fri, 24 Jul 2009 03:14:54 GMT.
ETag: "11a117-10-46f6b0215a780".
Accept-Ranges: bytes.
Content-Length: 16.
Content-Type: text/plain.
.
Cell Phone   CA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20090723/d5d08cea/attachment.htm>


More information about the sr-dev mailing list