No subject
Wed Jun 9 21:11:47 CEST 2010
callee from the DB. I wonder how it can be done at opensips.
If you could help me in briefing more on "lookup(location) to send the call
to the callee device" from opensips. I appreciate.
Thanks,
Prem
On Fri, Jun 11, 2010 at 2:26 PM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:
> Hi Prem,
>
> Once asterisk did the IVR based auth, I suggest that asterisk should
> route the SIP call back to OpenSIPS - and OpenSIPS will do the
> lookup(location) to send the call to the callee device.
>
> In OpenSIPS, based on source Ip, you can have 2 routing logics - if call
> comes from Asterisk -> outbound routing ; if not from asterisk ->
> inbound logic.
>
> Regards,
> Bogdan
>
> Premalatha Kuppan wrote:
> > Yes, i have checked all these options. Everything is in correct status.
> >
> > I doubt, connecting between vmware and with 64 bit RHEL. My set is
> > running on vmware image. When i ping on from vmware where
> > opensips+asterisk is running to the MySQL server vmware image, i see
> > this problem. But when i set MySQL server on non-vmware, it works
> > perferctly fine.
> >
> > i 'll update once i figure out the reason.
> >
> > Between, to route a call from OPENSIP to the destination. I need to
> > fetch the destination details IP from MySQL DB.
> > Meaning,
> >
> > User -------->
> >
> OPENSIPS(1)--------->ASTERISK(IVR)-------------->OPENSIPS(1)----------------->Destination
> >
> > Here, for authentication user enters the PIn and extension to access,
> > if the extension is present in the DB, Asterisk(IVR) will allow the
> > user to access it. From this from asterisk, i can make query to DB and
> > fetch the neccessary details. Likewise is it possible to fetch the
> > details(IP where the extension is connected and to be routed) from DB
> > from opensips.cfg to route the call to requested destination.
> >
> > Thanks,
> > Prem
> >
> > On Thu, Jun 10, 2010 at 3:01 PM, Bogdan-Andrei Iancu
> > <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
> >
> > Are you sure the DB conn params are correct (like address of myql
> > server) ?
> >
> > Also are you sure the mysql server is remotely reachable (it
> > listens on
> > routable IP and there is no firewall in front)
> >
> > Have you tried to connect to mysql by using directly the mysql
> > client -
> > just to see if it works?
> >
> > Regards,
> > Bogdan
> >
> > Premalatha Kuppan wrote:
> > > Iam facing one more problem.
> > >
> > > Iam running my set up on 64bit processor. Opensips and asterisk
> > on one
> > > PC and Mysql server on seperate PC.
> > >
> > > Iam running on RHEL enterprise version.
> > >
> > > Problem is that, its taking more than 2 mins to connect to MySQL
> > > server when i start Opensips. Also user is not getting
> > registered. of
> > > 10 attmept, only 1 is getting successful. But even this is not
> > consistent.
> > >
> > > I have increased connection_timeout in /etc/my.cnf also. But still
> > > facing the same problem.
> > >
> > > Any insight ?
> > >
> > >
> > > Jun 9 03:36:03 204548-4 /usr/local/sbin/opensips[7575]:
> > > DBG:db_mysql:db_mysql_connect: opening connection:
> > > mysql://xxxx:xxxx@MySQLserver/opensips
> > > Jun 9 03:36:03 204548-4 /usr/local/sbin/opensips[7576]:
> > > DBG:core:init_mod_child: type=PROC_TCP_MAIN, rank=-4, module=acc
> > > Jun 9 03:36:03 204548-4 /usr/local/sbin/opensips[7576]:
> > > DBG:core:init_mod_child: type=PROC_TCP_MAIN, rank=-4,
> module=auth_db
> > > Jun 9 03:36:03 204548-4 /usr/local/sbin/opensips[7576]:
> > > DBG:core:db_do_init: connection 0x79e858 not found in pool
> > > Jun 9 03:36:03 204548-4 /usr/local/sbin/opensips[7576]:
> > > DBG:db_mysql:db_mysql_connect: opening connection:
> > > mysql://xxxx:xxxx@MySQLserver/opensips
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:db_mysql:db_mysql_connect: driver error(2003): Can't
> > connect to
> > > MySQL server on 'MySQLserver' (110)
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:core:db_do_init: could not add connection to the pool
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:auth_db:child_init: unable to connect to the database
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:core:init_mod_child: failed to initializing module
> > auth_db, rank 3
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7567]:
> > > ERROR:core:main_loop: init_child failed for UDP listener
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:db_mysql:db_mysql_connect: driver error(2003): Can't
> > connect to
> > > MySQL server on 'MySQL server' (110)
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:db_mysql:db_mysql_new_connection: initial connect failed
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:core:db_do_init: could not add connection to the pool
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:usrloc:child_init: child(0): failed to connect to database
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:core:init_mod_child: failed to initializing module usrloc,
> > rank 0
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > ERROR:core:main_loop: error in init_child for PROC_MAIN
> > > Jun 9 03:39:12 204548-4 /usr/local/sbin/opensips[7341]:
> > > DBG:xlog:destroy: destroy module...
> > >
> > > On Wed, Jun 9, 2010 at 1:04 PM, ram <talk2ram at gmail.com
> > <mailto:talk2ram at gmail.com>
> > > <mailto:talk2ram at gmail.com <mailto:talk2ram at gmail.com>>> wrote:
> > >
> > > depends on the design
> > >
> > > you can have one point of authenticaion and transaction
> > >
> > > Ram
> > >
> > >
> > >
> > > On Tue, Jun 8, 2010 at 10:59 PM, Premalatha Kuppan
> > > <premalatha at ngintech.com <mailto:premalatha at ngintech.com>
> > <mailto:premalatha at ngintech.com <mailto:premalatha at ngintech.com>>>
> > wrote:
> > >
> > > Thanks a lot.
> > >
> > > I have one question. If i route the call to asterisk for
> > IVR (
> > > in my case ivr is to authenticate the user to access the
> > > system), who will have the control, meaning who will
> > maintian
> > > all the transactions and dailog. Is it opensips/Asterisk ?
> > >
> > > Thanks,
> > > Prem
> > >
> > > On Tue, Jun 8, 2010 at 9:50 AM, Gabriel Bermudez
> > > <elgabo81 at gmail.com <mailto:elgabo81 at gmail.com>
> > <mailto:elgabo81 at gmail.com <mailto:elgabo81 at gmail.com>>> wrote:
> > >
> > > Hi,
> > >
> > > I basically use the load_balancer module to dispatch to
> > > different
> > > asterisk servers
> > >
> > > on the main route block after handling auth,
> > > registrations, etc
> > >
> > > if(db_is_user_in("Request-URI", "ccivr")) {
> > > xlog("The call will be redirect to calling
> card
> > > server");
> > > route(3);
> > > }
> > >
> > > # route for call handled by calling card servers
> > > route[3] {
> > > # for INVITEs enable some additional helper
> > routes
> > > if (is_method("INVITE")) {
> > > t_on_branch("2");
> > > t_on_reply("2");
> > > t_on_failure("1");
> > > if(client_nat_test("15")) {
> > > nat_keepalive();
> > > }
> > > }
> > >
> > > # prepare the message for the IVR
> > >
> > > # select less loaded IVR
> > > if(!load_balance("1", "ccivr")) {
> > > xlog("No IVR available !!!");
> > > sl_send_reply("503", "Service
> > Unavailable");
> > > exit;
> > > };
> > >
> > > if(!t_relay()) {
> > > sl_reply_error();
> > > exit;
> > > }
> > >
> > > exit;
> > >
> > > }
> > >
> > >
> > > Hope it helps
> > >
> > > Regards,
> > >
> > > 2010/6/8 ram <talk2ram at gmail.com
> > <mailto:talk2ram at gmail.com> <mailto:talk2ram at gmail.com
> > <mailto:talk2ram at gmail.com>>>:
> > > > I forgot the link
> > > >
> > > > i did this work some time back
> > > >
> > > > Lost the link, google it
> > > >
> > > > Opensips+asterisk+a2b
> > > >
> > > > Ram
> > > >
> > > > On Mon, Jun 7, 2010 at 4:07 PM, Premalatha Kuppan
> > > <premalatha at ngintech.com
> > <mailto:premalatha at ngintech.com> <mailto:premalatha at ngintech.com
> > <mailto:premalatha at ngintech.com>>>
> > > > wrote:
> > > >>
> > > >> Can you pleae guide me how to do this ?
> > > >>
> > > >> On Mon, Jun 7, 2010 at 4:04 PM, Douglas Lane
> > > <doug at wd.co.za <mailto:doug at wd.co.za>
> > <mailto:doug at wd.co.za <mailto:doug at wd.co.za>>> wrote:
> > > >>>
> > > >>> Hi Premalatha,
> > > >>>
> > > >>> Perhaps have a look at SEMS for this.
> > > >>>
> > > >>> Thanks
> > > >>> Doug
> > > >>>
> > > >>>
> > > >>> On 2010/06/07 12:30 PM, Premalatha Kuppan wrote:
> > > >>>
> > > >>> Thanks Sebastian.
> > > >>>
> > > >>> I have followed up this link and tried extending
> the
> > > opensips.cfg file to
> > > >>> route call to Asterisk.
> > > >>>
> > > >>> I doubt/not clear that after IVR (meaning when the
> > > user is authenticated
> > > >>> through IVR) who will handle all the
> > transactions and
> > > dialog (OPENSIPS or
> > > >>> Asterisk ) ?
> > > >>>
> > > >>> I want Opensips to handle all the transactions.
> > > >>>
> > > >>> Any insight on this ?
> > > >>>
> > > >>> Thanks,
> > > >>> Prem
> > > >>>
> > > >>> On Mon, Jun 7, 2010 at 3:15 PM, Schumann Sebastian
> > > >>> <Sebastian.Schumann at t-com.sk
> > <mailto:Sebastian.Schumann at t-com.sk>
> > > <mailto:Sebastian.Schumann at t-com.sk
> > <mailto:Sebastian.Schumann at t-com.sk>>> wrote:
> > > >>>>
> > > >>>> Hi Prem
> > > >>>>
> > > >>>> There is a good tutorial at
> > > >>>>
> > http://www.opensips.org/Resources/DocsTutAsterisk It
> > > does exactly what you
> > > >>>> need I assume.
> > > >>>>
> > > >>>> For details in writing and extending basic
> > > configuration, you can find
> > > >>>> also the linked documentation there.
> > > >>>>
> > > >>>> Best regards
> > > >>>> Sebastian
> > > >>>>
> > > >>>> > -----Original Message-----
> > > >>>> > From: users-bounces at lists.opensips.org
> > <mailto:users-bounces at lists.opensips.org>
> > > <mailto:users-bounces at lists.opensips.org
> > <mailto:users-bounces at lists.opensips.org>> [mailto:users-
> > <mailto:users->
> > > <mailto:users- <mailto:users->>
> > > >>>> > bounces at lists.opensips.org
> > <mailto:bounces at lists.opensips.org>
> > > <mailto:bounces at lists.opensips.org
> > <mailto:bounces at lists.opensips.org>>] On Behalf Of
> > > Premalatha Kuppan
> > > >>>> > Sent: Monday, 07. June 2010 11:35
> > > >>>> > To: OpenSIPS users mailling list
> > > >>>> > Subject: [OpenSIPS-Users] OPENSIPS+ASTERISK
> > Integration
> > > >>>> >
> > > >>>> > Hi,
> > > >>>> >
> > > >>>> > Can anyone guide me in building the Opensips and
> > > Asterisk Integration.
> > > >>>> >
> > > >>>> > I want to Use OpenSIPS as SIP PROXY (i.e all
> > > transactions and dialogs
> > > >>>> > should be
> > > >>>> > handled by Opensips) and Asterisk to do only IVR
> > > functionality.
> > > >>>> >
> > > >>>> > I appreciate if anyone can guide me in writing a
> > > routing logic from
> > > >>>> > Opensips to
> > > >>>> > Asterisk for IVR and futher call flow OPENSIPS
> to
> > > handle.
> > > >>>> >
> > > >>>> > Thanks,
> > > >>>> > Prem
> > > >>>> >
> > > >>>>
> > > >>>>
> > > >>>> _______________________________________________
> >
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--0016e64dd4e41464270488be1abe
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Bogdan,<br><br>Thanks for yor reply. <br><br>Can you brief me about the =
"lookup(location) to send the call to the callee device."<br><br>=
Here, during the IVR the user will sent the callee #, i have to fetch the c=
orresponding IP addr of that callee from the database to route the call. Fr=
om asterisk, i can do that by connecting to mysql and fetch the IP of that =
callee from the DB. I wonder how it can be done at opensips.<br>
<br>If you could help me in briefing more on "lookup(location) to send=
the call to the callee device" from opensips. I appreciate.<br><br>Th=
anks,<br>Prem<br><br><br><div class=3D"gmail_quote">On Fri, Jun 11, 2010 at=
2:26 PM, Bogdan-Andrei Iancu <span dir=3D"ltr"><<a href=3D"mailto:bogda=
n at voice-system.ro">bogdan at voice-system.ro</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Prem,<br>
<br>
Once asterisk did the IVR based auth, I suggest that asterisk should<br>
route the SIP call back to OpenSIPS - and OpenSIPS will do the<br>
lookup(location) to send the call to the callee device.<br>
<br>
In OpenSIPS, based on source Ip, you can have 2 routing logics - if call<br=
>
comes from Asterisk -> outbound routing ; if not from asterisk -><br>
inbound logic.<br>
<div class=3D"im"><br>
Regards,<br>
Bogdan<br>
<br>
Premalatha Kuppan wrote:<br>
</div><div class=3D"im">> Yes, i have checked all these options. Everyth=
ing is in correct status.<br>
><br>
> I doubt, connecting between vmware and with 64 bit RHEL. My set is<br>
> running on vmware image. When i ping on from vmware where<br>
> opensips+asterisk is running to the MySQL server vmware image, i see<b=
r>
> this problem. But when i set MySQL server on non-vmware, it works<br>
> perferctly fine.<br>
><br>
> i 'll update once i figure out the reason.<br>
><br>
> Between, to route a call from OPENSIP to the destination. I need to<br=
>
> fetch the destination details IP from MySQL DB.<br>
> Meaning,<br>
><br>
> User --------><br>
> OPENSIPS(1)--------->ASTERISK(IVR)-------------->OPENSIPS(1)----=
------------->Destination<br>
><br>
> Here, for authentication user enters the PIn and extension to access,<=
br>
> if the extension is present in the DB, Asterisk(IVR) will allow the<br=
>
> user to access it. From this from asterisk, i can make query to DB and=
<br>
> fetch the neccessary details. Likewise is it possible to fetch the<br>
> details(IP where the extension is connected and to be routed) from DB<=
br>
> from opensips.cfg to route the call to requested destination.<br>
><br>
> Thanks,<br>
> Prem<br>
><br>
> On Thu, Jun 10, 2010 at 3:01 PM, Bogdan-Andrei Iancu<br>
</div><div><div></div><div class=3D"h5">> <<a href=3D"mailto:bogdan at v=
oice-system.ro">bogdan at voice-system.ro</a> <mailto:<a href=3D"mailto:bog=
dan at voice-system.ro">bogdan at voice-system.ro</a>>> wrote:<br>
><br>
> =A0 =A0 Are you sure the DB conn params are correct (like address of m=
yql<br>
> =A0 =A0 server) ?<br>
><br>
> =A0 =A0 Also are you sure the mysql server is remotely reachable (it<b=
r>
> =A0 =A0 listens on<br>
> =A0 =A0 routable IP and there is no firewall in front)<br>
><br>
> =A0 =A0 Have you tried to connect to mysql by using directly the mysql=
<br>
> =A0 =A0 client -<br>
> =A0 =A0 just to see if it works?<br>
><br>
> =A0 =A0 Regards,<br>
> =A0 =A0 Bogdan<br>
><br>
> =A0 =A0 Premalatha Kuppan wrote:<br>
> =A0 =A0 > Iam facing one more problem.<br>
> =A0 =A0 ><br>
> =A0 =A0 > Iam running my set up on 64bit processor. Opensips and as=
terisk<br>
> =A0 =A0 on one<br>
> =A0 =A0 > PC and Mysql server on seperate PC.<br>
> =A0 =A0 ><br>
> =A0 =A0 > Iam running on RHEL enterprise version.<br>
> =A0 =A0 ><br>
> =A0 =A0 > Problem is that, its taking more than 2 mins to connect t=
o MySQL<br>
> =A0 =A0 > server when i start Opensips. Also user is not getting<br=
>
> =A0 =A0 registered. of<br>
> =A0 =A0 > 10 attmept, only 1 is getting successful. But even this i=
s not<br>
> =A0 =A0 consistent.<br>
> =A0 =A0 ><br>
> =A0 =A0 > I have increased connection_timeout in /etc/my.cnf also. =
But still<br>
> =A0 =A0 > facing the same problem.<br>
> =A0 =A0 ><br>
> =A0 =A0 > Any insight ?<br>
> =A0 =A0 ><br>
> =A0 =A0 ><br>
> =A0 =A0 > Jun =A09 03:36:03 204548-4 /usr/local/sbin/opensips[7575]=
:<br>
> =A0 =A0 > DBG:db_mysql:db_mysql_connect: opening connection:<br>
> =A0 =A0 > mysql://xxxx:xxxx@MySQLserver/opensips<br>
> =A0 =A0 > Jun =A09 03:36:03 204548-4 /usr/local/sbin/opensips[7576]=
:<br>
> =A0 =A0 > DBG:core:init_mod_child: type=3DPROC_TCP_MAIN, rank=3D-4,=
module=3Dacc<br>
> =A0 =A0 > Jun =A09 03:36:03 204548-4 /usr/local/sbin/opensips[7576]=
:<br>
> =A0 =A0 > DBG:core:init_mod_child: type=3DPROC_TCP_MAIN, rank=3D-4,=
module=3Dauth_db<br>
> =A0 =A0 > Jun =A09 03:36:03 204548-4 /usr/local/sbin/opensips[7576]=
:<br>
> =A0 =A0 > DBG:core:db_do_init: connection 0x79e858 not found in poo=
l<br>
> =A0 =A0 > Jun =A09 03:36:03 204548-4 /usr/local/sbin/opensips[7576]=
:<br>
> =A0 =A0 > DBG:db_mysql:db_mysql_connect: opening connection:<br>
> =A0 =A0 > mysql://xxxx:xxxx@MySQLserver/opensips<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:db_mysql:db_mysql_connect: driver error(2003): Can&=
#39;t<br>
> =A0 =A0 connect to<br>
> =A0 =A0 > MySQL server on 'MySQLserver' (110)<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:db_mysql:db_mysql_new_connection: initial connect f=
ailed<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:core:db_do_init: could not add connection to the po=
ol<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:auth_db:child_init: unable to connect to the databa=
se<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:core:init_mod_child: failed to initializing module<=
br>
> =A0 =A0 auth_db, rank 3<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7567]=
:<br>
> =A0 =A0 > ERROR:core:main_loop: init_child failed for UDP listener<=
br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:db_mysql:db_mysql_connect: driver error(2003): Can&=
#39;t<br>
> =A0 =A0 connect to<br>
> =A0 =A0 > MySQL server on 'MySQL server' (110)<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:db_mysql:db_mysql_new_connection: initial connect f=
ailed<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:core:db_do_init: could not add connection to the po=
ol<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:usrloc:child_init: child(0): failed to connect to d=
atabase<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:core:init_mod_child: failed to initializing module =
usrloc,<br>
> =A0 =A0 rank 0<br>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > ERROR:core:main_loop: error in init_child for PROC_MAIN<b=
r>
> =A0 =A0 > Jun =A09 03:39:12 204548-4 /usr/local/sbin/opensips[7341]=
:<br>
> =A0 =A0 > DBG:xlog:destroy: destroy module...<br>
> =A0 =A0 ><br>
> =A0 =A0 > On Wed, Jun 9, 2010 at 1:04 PM, ram <<a href=3D"mailto=
:talk2ram at gmail.com">talk2ram at gmail.com</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:talk2ram at gmail.com">talk2ram at gmai=
l.com</a>><br>
</div></div><div class=3D"im">> =A0 =A0 > <mailto:<a href=3D"mailt=
o:talk2ram at gmail.com">talk2ram at gmail.com</a> <mailto:<a href=3D"mailto:t=
alk2ram at gmail.com">talk2ram at gmail.com</a>>>> wrote:<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 depends on the design<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 you can have one point of authenticaion and trans=
action<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 Ram<br>
> =A0 =A0 ><br>
> =A0 =A0 ><br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 On Tue, Jun 8, 2010 at 10:59 PM, Premalatha Kuppa=
n<br>
> =A0 =A0 > =A0 =A0 <<a href=3D"mailto:premalatha at ngintech.com">pr=
emalatha at ngintech.com</a> <mailto:<a href=3D"mailto:premalatha at ngintech.=
com">premalatha at ngintech.com</a>><br>
</div>> =A0 =A0 <mailto:<a href=3D"mailto:premalatha at ngintech.com">pr=
emalatha at ngintech.com</a> <mailto:<a href=3D"mailto:premalatha at ngintech.=
com">premalatha at ngintech.com</a>>>><br>
<div class=3D"im">> =A0 =A0 wrote:<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 Thanks a lot.<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 I have one question. If i route the call =
to asterisk for<br>
> =A0 =A0 IVR (<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 in my case ivr is to authenticate the use=
r to access the<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 system), who will have the control, meani=
ng who will<br>
> =A0 =A0 maintian<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 all the transactions and dailog. Is it op=
ensips/Asterisk ?<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 Thanks,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 Prem<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 On Tue, Jun 8, 2010 at 9:50 AM, Gabriel B=
ermudez<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 <<a href=3D"mailto:elgabo81 at gmail.com"=
>elgabo81 at gmail.com</a> <mailto:<a href=3D"mailto:elgabo81 at gmail.com">el=
gabo81 at gmail.com</a>><br>
</div><div><div></div><div class=3D"h5">> =A0 =A0 <mailto:<a href=3D"=
mailto:elgabo81 at gmail.com">elgabo81 at gmail.com</a> <mailto:<a href=3D"mai=
lto:elgabo81 at gmail.com">elgabo81 at gmail.com</a>>>> wrote:<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 Hi,<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 I basically use the load_balancer=
module to dispatch to<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 different<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 asterisk servers<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 on the main route block after han=
dling auth,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 registrations, etc<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 if(db_is_user_in("Request-UR=
I", "ccivr")) {<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0xlog("The=
call will be redirect to calling card<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 server");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0route(3);<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 }<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 # route for call handled by calli=
ng card servers<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 route[3] {<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# for INVITEs enab=
le some additional helper<br>
> =A0 =A0 routes<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (is_method(&quo=
t;INVITE")) {<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0t_=
on_branch("2");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0t_=
on_reply("2");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0t_=
on_failure("1");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if=
(client_nat_test("15")) {<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0nat_keepalive();<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}<=
br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# prepare the mess=
age for the IVR<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# select less load=
ed IVR<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if(!load_balance(&=
quot;1", "ccivr")) {<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0xl=
og("No IVR available !!!");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sl=
_send_reply("503", "Service<br>
> =A0 =A0 Unavailable");<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ex=
it;<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0};<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if(!t_relay()) {<b=
r>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sl=
_reply_error();<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ex=
it;<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0exit;<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 }<br>
> =A0 =A0 ><br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 Hope it helps<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 Regards,<br>
> =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 2010/6/8 ram <<a href=3D"mailt=
o:talk2ram at gmail.com">talk2ram at gmail.com</a><br>
</div></div>> =A0 =A0 <mailto:<a href=3D"mailto:talk2ram at gmail.com">t=
alk2ram at gmail.com</a>> <mailto:<a href=3D"mailto:talk2ram at gmail.com">=
talk2ram at gmail.com</a><br>
<div class=3D"im">> =A0 =A0 <mailto:<a href=3D"mailto:talk2ram at gmail.=
com">talk2ram at gmail.com</a>>>>:<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > I forgot the link<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > i did this work some time ba=
ck<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > Lost the link, google it<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > Opensips+asterisk+a2b<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > Ram<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > On Mon, Jun 7, 2010 at 4:07 =
PM, Premalatha Kuppan<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 <<a href=3D"mailto:premalatha@=
ngintech.com">premalatha at ngintech.com</a><br>
</div>> =A0 =A0 <mailto:<a href=3D"mailto:premalatha at ngintech.com">pr=
emalatha at ngintech.com</a>> <mailto:<a href=3D"mailto:premalatha at ngint=
ech.com">premalatha at ngintech.com</a><br>
<div class=3D"im">> =A0 =A0 <mailto:<a href=3D"mailto:premalatha at ngin=
tech.com">premalatha at ngintech.com</a>>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > wrote:<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >> Can you pleae guide me h=
ow to do this ?<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >> On Mon, Jun 7, 2010 at 4=
:04 PM, Douglas Lane<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 <<a href=3D"mailto:doug at wd.co.=
za">doug at wd.co.za</a> <mailto:<a href=3D"mailto:doug at wd.co.za">doug at wd.c=
o.za</a>><br>
</div><div><div></div><div class=3D"h5">> =A0 =A0 <mailto:<a href=3D"=
mailto:doug at wd.co.za">doug at wd.co.za</a> <mailto:<a href=3D"mailto:doug at w=
d.co.za">doug at wd.co.za</a>>>> wrote:<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Hi Premalatha,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Perhaps have a look =
at SEMS for this.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Thanks<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Doug<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> On 2010/06/07 12:30 =
PM, Premalatha Kuppan wrote:<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Thanks Sebastian.<br=
>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> I have followed up t=
his link and tried extending the<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 opensips.cfg file to<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> route call to Asteri=
sk.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> I doubt/not clear th=
at after IVR (meaning when the<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 user is authenticated<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> through IVR) who wil=
l handle all the<br>
> =A0 =A0 transactions and<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 dialog (OPENSIPS or<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Asterisk ) ?<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> I want Opensips to h=
andle all the transactions.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Any insight on this =
?<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Thanks,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> Prem<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> On Mon, Jun 7, 2010 =
at 3:15 PM, Schumann Sebastian<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>> <<a href=3D"mailt=
o:Sebastian.Schumann at t-com.sk">Sebastian.Schumann at t-com.sk</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:Sebastian.Schumann at t-com.sk">Seba=
stian.Schumann at t-com.sk</a>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 <mailto:<a href=3D"mailto:Seba=
stian.Schumann at t-com.sk">Sebastian.Schumann at t-com.sk</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:Sebastian.Schumann at t-com.sk">Seba=
stian.Schumann at t-com.sk</a>>>> wrote:<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> Hi Prem<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> There is a good =
tutorial at<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 <a href=3D"http://www.opensips.org/Resources/DocsTutAsterisk" =
target=3D"_blank">http://www.opensips.org/Resources/DocsTutAsterisk</a> It<=
br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 does exactly what you<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> need I assume.<b=
r>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> For details in w=
riting and extending basic<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 configuration, you can find<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> also the linked =
documentation there.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> Best regards<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> Sebastian<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > -----Origin=
al Message-----<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > From: <a hr=
ef=3D"mailto:users-bounces at lists.opensips.org">users-bounces at lists.opensips=
.org</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:users-bounces at lists.opensips.org"=
>users-bounces at lists.opensips.org</a>><br>
</div></div><div><div></div><div class=3D"h5">> =A0 =A0 > =A0 =A0 =A0=
=A0 =A0 =A0 <mailto:<a href=3D"mailto:users-bounces at lists.opensips.org"=
>users-bounces at lists.opensips.org</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:users-bounces at lists.opensips.org"=
>users-bounces at lists.opensips.org</a>>> [mailto:<a href=3D"mailto:use=
rs-">users-</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:users-">users-</a>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 <mailto:<a href=3D"mailto:user=
s-">users-</a> <mailto:<a href=3D"mailto:users-">users-</a>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > <a href=3D"=
mailto:bounces at lists.opensips.org">bounces at lists.opensips.org</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:bounces at lists.opensips.org">bounc=
es at lists.opensips.org</a>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 <mailto:<a href=3D"mailto:boun=
ces at lists.opensips.org">bounces at lists.opensips.org</a><br>
> =A0 =A0 <mailto:<a href=3D"mailto:bounces at lists.opensips.org">bounc=
es at lists.opensips.org</a>>>] On Behalf Of<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 Premalatha Kuppan<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Sent: Monda=
y, 07. June 2010 11:35<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > To: OpenSIP=
S users mailling list<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Subject: [O=
penSIPS-Users] OPENSIPS+ASTERISK<br>
> =A0 =A0 Integration<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Hi,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Can anyone =
guide me in building the Opensips and<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 Asterisk Integration.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > I want to U=
se OpenSIPS as SIP PROXY (i.e all<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 transactions and dialogs<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > should be<b=
r>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > handled by =
Opensips) and Asterisk to do only IVR<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 functionality.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > I appreciat=
e if anyone can guide me in writing a<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 routing logic from<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Opensips to=
<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Asterisk fo=
r IVR and futher call flow OPENSIPS to<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 handle.<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Thanks,<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> > Prem<br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>><br>
> =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 >>>> ________________=
_______________________________<br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class=3D"h5">Bogdan-Andrei Iancu<br>
<a href=3D"http://www.voice-system.ro" target=3D"_blank">www.voice-system.r=
o</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href=3D"mailto:Users at lists.opensips.org">Users at lists.opensips.org</a><br=
>
<a href=3D"http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target=
=3D"_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br=
>
</div></div></blockquote></div><br>
--0016e64dd4e41464270488be1abe--
More information about the Users
mailing list