Hi @ all,
I wanted to use the LCR module with OpenSER 1.2.
My tables look like this:
Lcr:
PREFIX | FROM_URI | GRP_ID | PRIORITY | ------------------------------------------------------------------------ ------------------------------------------------------------- | | 1 | 1 |
Gw:
GW_NAME | GRP_ID | IP_ADDR | PORT | URI_SCHEME | TRANSPORT | STRIP | PREFIX ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------- Gw 1 xxx.xx.xxx.xx 5060
Gw_grp:
GRP_ID GRP_NAME ---------- ---------------------------------------------------------------- 1 VIH
I always get the following error: CALL: Call to international number sip:0004312345586@server.com from sip:1004@server.com 0(23072) LCR: no gateways found m=INVITE ruri=sip:0004312345586@server.com f=sip:1004@server.com t=sip:0004312345586@server.com ip=xxx.xx.xxx.xxx
Does anybody can help me?
Thanks
Martin
Hi Martin,
You probably should include the relevant openser.cfg code that attempts to use the LCR module so that others can review it.
Regards, Norm
Martin.Gruber1@infineon.com wrote:
Hi @ all,
I wanted to use the LCR module with OpenSER 1.2.
My tables look like this:
Lcr:
PREFIX | FROM_URI | GRP_ID | PRIORITY |
| | 1 |
1 |
Gw:
GW_NAME | GRP_ID | IP_ADDR | PORT | URI_SCHEME | TRANSPORT | STRIP | PREFIX
Gw 1 xxx.xx.xxx.xx 5060
Gw_grp:
GRP_ID GRP_NAME
1 VIH
I always get the following error: CALL: Call to international number sip:0004312345586@server.com from sip:1004@server.com 0(23072) LCR: no gateways found m=INVITE ruri=sip:0004312345586@server.com f=sip:1004@server.com t=sip:0004312345586@server.com ip=xxx.xx.xxx.xxx
Does anybody can help me?
Thanks
Martin
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi,
Sorry, I forgot to add it! This is the part, where I execute LCR!
if (uri=~"sip:0[0-9]+@.*") { #authorize if a call is going to PSTN if(!proxy_authorize("", "subscriber")) { proxy_challenge("", "0"); return; }; xlog("L_INFO", "CALL: Call to international number <$ru> from <$fu>\n");
perl_exec("dialnr");
if(!load_gws()) { sl_send_reply("500", "Internal server error, unable to load phone gateways"); xlog("L_Info", "LCR: unable to load gateways\n"); exit; }
if(!next_gw()) { sl_send_reply("503", "Service not available, no gateways found"); xlog("L_Info", "LCR: no gateways found m=$rm ruri=$ru f=$fu t=$tu ip=$si id=$ci\n"); exit; };
Thanks!
-----Original Message----- From: Norman Brandinger [mailto:norm@goes.com] Sent: Tuesday, August 21, 2007 4:19 PM To: Gruber Martin (IFKL IT OS NV) Cc: users@openser.org Subject: Re: [OpenSER-Users] LCR not running
Hi Martin,
You probably should include the relevant openser.cfg code that attempts to use the LCR module so that others can review it.
Regards, Norm
Martin.Gruber1@infineon.com wrote:
Hi @ all,
I wanted to use the LCR module with OpenSER 1.2.
My tables look like this:
Lcr:
PREFIX | FROM_URI | GRP_ID
|
PRIORITY |
--
| | 1 |
1 |
Gw:
GW_NAME | GRP_ID | IP_ADDR | PORT | URI_SCHEME | TRANSPORT | STRIP | PREFIX
--
--
--
Gw 1 xxx.xx.xxx.xx 5060
Gw_grp:
GRP_ID GRP_NAME
1 VIH
I always get the following error: CALL: Call to international number sip:0004312345586@server.com from
sip:1004@server.com 0(23072) LCR: no gateways found m=INVITE ruri=sip:0004312345586@server.com f=sip:1004@server.com t=sip:0004312345586@server.com ip=xxx.xx.xxx.xxx
Does anybody can help me?
Thanks
Martin
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users