Hi All,
I have a requirement to perform some processing based on the source and
destination addresses on a message in on_reply route. I can get source
ip address using $si pseudo variable, but I cant seem to access the
destination ($dd).
Is there any way I can access destination ip/domain of message in
on_reply route?
Thanks for any tips.
Dear Sir,
I have a difficulty to register a CISCO SPA 303 IP phone.
I can register a Soft phone to the SER server by setting the Hold IP
address, Proxy, account number..
But it is not working with the CISCO phone.
Can you advice?
Thanks,
Gary
Hello
I need to add q value while using function append_branch(),but the function
only takes decimal fraction as the parameter.
What if I want to use pv to add q value?
The $var and $avp just have string and integer type.
Thanks a lot!
Hi,
In the Kamailio OPENSER-MIB there is the counter "openserTotalNumFailedDialogSetups". This is a Counter32.
The description is:
"The total number of calls that failed with an error. The following codes define a failed call:"
Question:
* I'm looking for the corresponding counter to "openserTotalNumFailedDialogSetups" who counts successful Dialog setups of Counter32 type. Does it exist?
* If not, does it exist a work around?
* Where in the code can the new suggested …
[View More]counter be added?
* Something else????
Suggestion for the new counter is a name like: "openserTotalNumSucceededDialogSetups". It has a counter32. Description: "The total number of calls that succeeded"
I know that there are the counters openserCurNumDialogs, openserCurNumDialogsInProgress and openserCurNumDialogsInSetup but these are of Gauge type who only reflects the current situation. These Gauge counters can't be used together with a Counter32 counter. That don't mix. The calculation done for the counter "openserCurNumDialogsInProgress" should be used where every new dialog setup is added to the new suggested counter. A counter of 32 should cover a great deal of connections. These counters are usually read, if used, every 15 minutes or 1 hour.
Rationale:
The reason for the new counter is that a calculation between succeeded and failed dialog setups can be done and be used for SLA agreements. Without this, its hard to make any customer versus provider agreements.
/Stefan
PS. Ask if anything is unclear and I need an answer rapidly.
[View Less]
in order to get invite requests accounted, it seems that accounting
flags need to be set before t_newtran() is called.
is there any way to unset the accounting flags after calling
t_newtran()? for example, i would not like to account invites that
result to 407 proxy authentication required.
-- juha
Hi All,
I have a requirement to perform some processing based on the source and
destination addresses on a message in on_reply route. I can get source
ip address using $si pseudo variable, but I cant seem to access the
destination ($dd).
Is there any way I can access destination ip/domain of message in
on_reply route?
Thanks for any tips.
Hi,
I'm new on Kamailio 3.0
This is the scenario I would like to build:
1 Subscriber A -> 2 kamailio -> 3 asterisk -> 4 Kamailio -> 5 Subscriber B
Everything is working fine until the last step
This is the code that manage the call from asterisk to kamailio
if(is_method("INVITE") && (src_ip==80.169.xx.xx) )
{
route(TOPROXYUSER);
}
And this is the code that should end the call the the subscriber
route[…
[View More]TOPROXYUSER] {
xlog("L_NOTICE", "$mi route[$rm][0] $fu ->
$ru START PROCESSING MESSAGE\n");
rewritehostport("127.0.0.1:5060");
if (is_method("BYE|CANCEL")) {
route(FAIL_ONE);
} else if (is_method("INVITE")){
route(RELAY);
};
exit;
}
Thank you,
Stivu.
[View Less]
Hello there!
I'm in the process of setting my first kamailio server and run into dead
end. I was following your instructions very closely at
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
I'm using Centos 5.5 i386. Everything vent pretty much fine until step 7
were I had to create MySQL database. When I run
/usr/local/kamailio-3.1/etc/kamailio/kamctlrc it gives me "Permission
denied" error.
I was able to access kamctlrc with a text editor and uncommented
…
[View More]DBENGINE=MYSQL. Now when I run /usr/local/kamailio-3.1/sbin/kamdbctl create
I have ERROR 2002.
Please take a look at the attachment.
Please help.
Roman
[View Less]
Hello,
I have a question about LCR which I have been unable to solve. I have 4
upstream carrier gateways owned by 2 carriers. Each carrier provides a
primary and secondary gateway for load balancing purposes. On a 5XX error I
am trying to send the same call to the other carrier. If both carriers
reject the call with 5XX, I allow the response to go downstream to my
asterisk server. The issue I am running into is that in a scenario where
both my carriers respond with a 5XX, I end up …
[View More]presenting the same call to
all 4 gateways. I would like to present the call to one gateway on each
carrier and not try the same carriers second gateway for the same call.
Here is what is happening now:
ASTERISK --> INVITE --> KAMAILIO
INVITE --> CARRIER A/GATEWAY 1 <-- 5XX Error
INVITE --> CARRIER A/GATEWAY 2 <-- 5XX Error
INVITE --> CARRIER B/GATEWAY 1 <-- 5XX Error
INVITE --> CARRIER B/GATEWAY 2 <-- 5XX Error
KAMAILIO --> 5XX Error --> ASTERISK
OR any combination of the above... i.e.
ASTERISK --> INVITE --> KAMAILIO
INVITE --> CARRIER A/GATEWAY 1 <-- 5XX Error
INVITE --> CARRIER B/GATEWAY 2 <-- 5XX Error
INVITE --> CARRIER B/GATEWAY 1 <-- 5XX Error
INVITE --> CARRIER A/GATEWAY 2 <-- 5XX Error
KAMAILIO --> 5XX Error --> ASTERISK
What I want to happen is:
ASTERISK --> INVITE --> KAMAILIO
INVITE --> CARRIER A/GATEWAY 1 or 2 <-- 5XX Error
INVITE --> CARRIER B/GATEWAY 1 or 2 <-- 5XX Error
KAMAILIO --> 5XX Error --> ASTERISK
I tried dealing with the issue using some flags on the gateway, but i
couldn't get the logic to work properly. Here is the path I was heading
down, but my plan fell apart after some testing.
CARRIER A has a gateway flag of "1"
CARRIER B has a gateway flag of "2"
failure_route[1]{
$var(gw_flag) = $avp(i:712);
while(next_gw()){
if($var(gw_flag) != $avp(i:712)){
xlog("L_INFO","Found an LCR destination which is different
than current, routing. ($ci)");
t_on_reply("1");
t_on_failure("1");
t_relay();
exit;
}else{
xlog("L_INFO","The next destination in LCR has the same AVP
flag, skipping. ($ci)");
}
}
# let the reply go upstram - it is the default action
xlog("L_ERR", "No Next Gateway - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");
exit;
}
Any help would be greatly appreciated.
Thanks,
Geoff
[View Less]
Hello there!
I'm in the process of setting my first kamailio server and run into dead
end. I was following your instructions very closely at
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
I'm using Centos 5.5 i386. Everything vent pretty much fine until step 7
were I had to create MySQL database. When I run
/usr/local/kamailio-3.1/etc/kamailio/kamctlrc it gives me "Permission
denied" error.
I was able to access kamctlrc with a text editor and uncommented
…
[View More]DBENGINE=MYSQL. Now when I run /usr/local/kamailio-3.1/sbin/kamdbctl create
I have ERROR 2002.
Please take a look at the attachment.
Please help.
Roman
[View Less]