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