CallerId Lookup

Hello all,

I am using Asterisk and i programmed a nice little script that does a performs a search in our customer DB to see if it can return a CustId and Name before sending it to a tech. This PHP script fully works when i do the variables manually.

The problem at hand is the [NUMBER] is not putting in the number. I am doing a HTTP source, The path is: /phonedb/getnumber.php

The Q string is ?number=[NUMBER]

I can go to /phonedb/getnumber.php?number=NUMBERHERE and get lookups just fine, I have found that the PBX simply does not put the phone number in the string so it returns blank.

The config also shows this:

include => cidlookup-custom
exten => cidlookup_1,1,Set(CURLOPT(httptimeout)=7)
exten => cidlookup_1,n,Set(CALLERID(name)=${CURL(${CALLERID(num)})})
exten => cidlookup_1,n,Return()
exten => cidlookup_return,1,ExecIf($["${DB(cidname/${CALLERID(num)})}" != “”]?Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}))
exten => cidlookup_return,n,Return()

; end of [cidlookup]

Any thoughts?