Try like this.
Code:
$request = ^INVITE
$addr = ^192.168.2.10$
$url.encode($getSIPuser(To)) = (.+)
$url.encode(Call-ID) = (.+)
$webget("http://192.168.2.11/log.php?num=%1&callid=%2") = (.+)
> 1. shall I use $web.webget or $webget, is there any difference between them?
They are same. They call the same internal routine.
> 2. If there are multiple requests, does the webget keeps the socket open or it uses the new socket for each request?
It depends on situations, sockets are reused.
Set the [Multiple Dispatcher]=Yes at [Configuration]->[SIP] page.
It can execute $webget method concurrently.
> 3. If I have to send the request to a non standard port 8080, can I use like
> $webget("
http://192.168.2.11:8080/log.php?num=%1&callid=%2")
Yes.
Also you can specify https if the web server supports it.
Is it for logging purpose?
If so, the CDR function might be an easier solution
https://docs.brekeke.com/sip/call-detai ... r-settings
https://docs.brekeke.com/sip/variables-for-cdr
Called number and Call-ID can be written to a file or DB if you specify the format as the following.
%{dstnamein},%{callidin}