[OpenSIPS-Users] OpenSips always returning cause code 503
Aman
goforaman at gmail.com
Mon Jun 6 11:15:43 CEST 2011
Thanks Mario for taking time to replay.
Its resolved now by using scripting variable return code '$rc', it is
returning the carrier release code to caller.
Now i am looking how can i display time in siptrace window of CDRTool ...
will you advice me about this.
--
*Cheers,
Amanpreet Singh
*
On Sun, Jun 5, 2011 at 3:30 PM, <users-request at lists.opensips.org> wrote:
> Send Users mailing list submissions to
> users at lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request at lists.opensips.org
>
> You can reach the person managing the list at
> users-owner at lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. Re: /etc/init.d/opensips restart returns OK when opensips is
> down... (Advantia VoIP Systems)
> 2. Re: OpenSips always returning cause code 503
> (Advantia VoIP Systems)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 4 Jun 2011 08:08:56 -0700
> From: Advantia VoIP Systems <info at advantia.ca>
> Subject: Re: [OpenSIPS-Users] /etc/init.d/opensips restart returns OK
> when opensips is down...
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Message-ID: <BANLkTik1pEhJ+wdNLMPYQ34mUGKh7H8S8A at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Toyima,
>
> The start-stop-daemon function of the init script returns successfully when
> launching OpenSIPS as long as your script is syntactically correct and a
> pidfile can be created. You likely have an external resource (database
> perhaps) that is required but not available (database credentials??)
> causing
> OpenSIPS to exit after the init script exits.
>
> Cheers,
>
> Mario
> http://advantia.ca
>
> On Fri, Jun 3, 2011 at 4:46 AM, Toyima Dias <toyimads at gmail.com> wrote:
>
> > Hello,
> >
> > I've a doubt regarding opensips.init script; it use to happend that
> > restarting opensips with:
> >
> > /etc/init.d/opensips restart
> >
> > It returns OK, but checking with ps -ef | grep opensips does not show
> > opensips running, by the way, checking the opensips.log shows many errors
> > for example that the DB does not exist or whatever the issue, my doubt is
> > not regarding why opensips is not able tu up for X reason, my doubt is
> why
> > /etc/init.d/opensips restart returns OK even if this is not true?
> >
> > Thanks in advance for any help!
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20110604/3f29b971/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 4 Jun 2011 08:39:16 -0700
> From: Advantia VoIP Systems <info at advantia.ca>
> Subject: Re: [OpenSIPS-Users] OpenSips always returning cause code 503
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Message-ID: <BANLkTi=WR9_4LYbpS-S56NUcngt8m8JucA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Amanpreet
> This may be because of where you are calling t_reply("code",
> "reason"); in your routing script. ?t_reply("code", "reason"); works
> if there is an established transaction to reply to. ?You may be at a
> point in your routing where sl_send_reply("code", "reason"); is more
> appropriate.
>
> Cheers,
>
> Mario
> http://advantia.ca
>
> On Thu, Jun 2, 2011 at 1:21 AM, Tushar Jain <tusshar.jain at gmail.com>
> wrote:
> >
> > Hi Duane,
> > We have "loadmodule "tm.so"" in our configuration
> but?t_reply("$T_reply_code"); is giving error.
> > Regards
> > Tushar
> > On Thu, Jun 2, 2011 at 2:03 AM, Duane Larson <duane.larson at gmail.com>
> wrote:
> >>
> >> In your config do you have the following
> >>
> >> loadmodule "tm.so"
> >>
> >>
> >>
> >> On Wed, Jun 1, 2011 at 9:20 AM, Aman <goforaman at gmail.com> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> I am facing some challenges in the testing of the OpenSIPs
> (V:1.6.2-tls), OpenSips always returning cause code '503 Service not
> available, no more gateways' to caller doesn't matter whatever it is getting
> from the carrier (Screenshot as below) ... i guess its happening due to
> following code in opensips.cfg,
> >>>
> >>>
> >>> ??????? else {
> >>> ??????????????? t_reply("503", "Service not available, no more
> gateways");
> >>> ??????????????? exit;
> >>> ??????????????? }
> >>>
> >>>
> >>> ?I looked into the forums and tried ?t_reply("$T_reply_code");, but its
> giving error,
> >>>
> >>> ??????????????????? unknown command <t_reply>, missing loadmodule?
> >>> ??????????????????? Jun? 1 12:59:46 [21787] ERROR:core:main: bad config
> file (1 errors)
> >>>
> >>>
> >>> One more thing, its not showing the time in the field 'Time', do i need
> to add some code to get the time print in the CDRToll SIP trace.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Any suggestions will really be helpful.
> >>>
> >>>
> >>> --
> >>> Cheers,
> >>> Amanpreet Singh
> >>>
> >>>
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at lists.opensips.org
> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>>
> >>
> >>
> >>
> >> --
> >> --
> >> *--*--*--*--*--*
> >> Duane
> >> *--*--*--*--*--*
> >> --
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>
> >
> >
> >
> > --
> > Regards
> >
> > Tushar Jain
> >
> >
> > "two roads diverged in a wood, and I - I took the one less traveled by,
> and that has made all the difference"
> >
> > --Robert Frost "
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> End of Users Digest, Vol 35, Issue 8
> ************************************
>
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110606/e8a0c6ea/attachment-0001.htm>
More information about the Users
mailing list