Hi ALL,
I have a problem to configure LCR module to work properly (kamailio rel. 1.5)
The task in my case is to handle:
1) All calls coming with CLD number prefix 482223344 from my MGW
(77.77.77.77) towards kamilio and direct them to sip world
(88.88.88.88)
2) Calls with CLD starting with 48 coming from SIP world towards
kamailio and direct them to my MGWs. Additionaly i need to route it on
the basis of CLI number.
So MGWs <---> Kamailio <---> SIPProxies (88.88.88.88)
In db:
+----+-----------+----------------+--------+----------+
| id | prefix | from_uri | grp_id | priority |
+----+-----------+----------------+--------+----------+
| 1 | 48 | 48 | 1 | 1 |
| 2 | 48 | 49 | 2 | 1 |
| 3 | 482223344 | 77.77.77.77 | 3 | 1 |
+----+-----------+----------------+--------+----------+
gw,
+----+--------------+--------+----------------+----------+------+------------+-----------+-------+------+--------+------+-------+
| id | gw_name | grp_id | ip_addr | hostname | port |
uri_scheme | transport | strip | tag | weight | ping | flags |
+----+--------------+--------+----------------+----------+------+------------+-----------+-------+------+--------+------+-------+
| 1 | CLI48 | 1 | 77.77.77.70 | NULL | 5060 | NULL |
NULL | NULL | NULL | 150 | 0 | 0 |
| 2 | CLI48backup | 1 | 77.77.77.71 | NULL | 5060 |
NULL | NULL | NULL | NULL | 150 | 0 | 0 |
| 3 | CLI49 | 2 | 77.77.77.75 | NULL | 5060 | NULL |
NULL | NULL | NULL | 15 | 0 | 0 |
| 4 | CLI49backup | 2 | 77.77.77.76 | NULL | 5060 |
NULL | NULL | NULL | NULL | 15 | 0 | 0 |
| 5 | SIPWORLD | 3 | 88.88.88.88 | NULL | 5060 |
NULL | NULL | NULL | NULL | 250 | 0 | 0 |
+----+--------------+--------+----------------+----------+------+------------+-----------+-------+------+--------+------+-------+
Unfortunately:
- call is originated on 77.77.77.77 with CLD 48222334455 number and
kamailio forward this call to grp_id=3 SIPWORLD which is okay. The
problem is that if the call fail, kamailio will try to use 77.77.77.70
and 77.77.77.71 from grp_id=1 which is wrong. I have no idea how to
provide a kind of huntstop in grp_id=3.
I've been trying with
+----+-----------+----------------+--------+----------+
| id | prefix | from_uri | grp_id | priority |
+----+-----------+----------------+--------+----------+
| 1 | 48 | 88.88.88.88 | 1 | 1 |
| 2 | 48 | 88.88.88.88 | 2 | 1 |
| 3 | 482223344 | 77.77.77.77 | 3 | 1 |
+----+-----------+----------------+--------+----------+
but in this case i am unable to provide kamailio with CLI number routing.
Here is a part of my config file...
if (!load_gws()) {
sl_send_reply("503", "Unable to load gateways");
exit;
}
if (!next_gw()) {
sl_send_reply("503", "Unable to find a
gateway");
exit;
}
route(1);
exit;
and failover for route(1)...
failure_route[11] {
# In case of failure, send it to an alternative route:
if (t_check_status("408|404|5[0-9][0-9]")) {
if (!next_gw()) {
t_reply("503", "Service not available, no more
gateways");
exit;
}
else {
t_on_failure("11");
t_relay();
}
exit;
}
}
Anybody could help my to get out of that?
Thx,
Maciej.
I'm attempting to run an existing SER config file under a recent build of sip-router. I get a syntax error on the t_on_failure("noroute") call that exists in my config file. The specific error is "bad expression: type mismatch (str instead of int)". I presume this means sip-router does not support named failure route labels. Is that correct?
Thanks,Steve
---
ISC Networking & Telecommunications
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104
215-573-8396
215-898-9348 (fax)
Hello,
next Wednesday (June 2, 2010), at 18:00UTC, I will participate to
FreeSWITCH weekly conference call, talking about using Kamailio and
FreeSWITCH together.
The draft of agenda is:
* Goals of Kamailio, how it differentiates from FreeSWITCH and why
using them together creates a very powerful framework to build large
VoIP systems.
* Kamailio for sip routing and FreeSWITCH as media server
(conferencing, voicemail, IVR, announcements)
* FreeSWITCH as a B2BUA for Kamailio (topology hiding, transcoding,
call interrupt detection)
* FreeSWITCH as prepaid engine for Kamailio
* Load balancing FreeSWITCH servers with Kamailio
Is an open debate, join and ask your questions. You can dial in via SIP,
Skype, PSTN, see access details at:
http://wiki.freeswitch.org/wiki/FS_weekly_2010_06_02
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/
Hello,
several days ago, I published a new tutorial about Kamailio and Asterisk
realtime integration, using a different approach than in the previous
tutorials on this topic I wrote. Specifically, this time the Asterisk
database structure is used. You can find it at:
http://kb.asipto.com/asterisk:realtime:kamailio-3.0.x-asterisk-1.6.2-astdb
Hope is useful for some of you,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/
Hello,
next weekend (June 4-6, 2010) in Rosotck, Germany, takes place 2010
edition of Amoocon.
http://www.amoocon.com
I will give two talks about Kamailio - SIP Router:
- Asynchronous SIP Routing
- Develop Your SIP Routing in Lua
More details are posted on news section of the web sites:
http://www.kamailio.org/w/2010/05/kamailio-at-amoocon-2010/
If you are around and want to meet, drop me an email.
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/
Hello,
please use the sr-users(a)lists.sip-router.org to post questions about ser
or kamailio - apart of first one, most private messages are discarded.
There are many people that can answer, faster and better.
In this particular case, seems you haven't loaded pv module (located in
modules_k).
Cheers,
Daniel
On 5/30/10 9:50 AM, Dmitry Kirillov wrote:
> Hi
>
> i tried to start SIP-Router (ser-3.0.2_src_2010-05-29) by including
> dialplan.so in the list of loaded
> modules and empty dialplan modparam. when i start sip-router, i get
>
> 0(23147) ERROR: <core> [pvapi.c:501]: error searching pvar "ruri.user"
> 0(23147) ERROR: <core> [pvapi.c:705]: wrong char [r/114] in
> [$ruri.user] at [9 (0)]
> 0(23147) ERROR: dialplan [dialplan.c:163]: input pv is invalid
> 0(23147) ERROR: <core> [sr_module.c:874]: init_mod(): Error while
> initializing module dialplan
> ERROR: error while initializing modules
>
> With modparam("dialplan", "attrs_pvar", "$avp(s:dest)"):
>
> 0(23158) ERROR: <core> [pvapi.c:501]: error searching pvar "avp"
> 0(23158) ERROR: <core> [pvapi.c:705]: wrong char [s/115] in
> [$avp(s:dest)] at [5 (5)]
> 0(23158) ERROR: dialplan [dialplan.c:149]: invalid pvar name
> 0(23158) ERROR: <core> [sr_module.c:874]: init_mod(): Error while
> initializing module dialplan
> ERROR: error while initializing modules
>
> there is no dialplan function call in ser.cfg.
>
> Please, help
>
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/