[OpenSIPS-Users] OpenSips always returning cause code 503

Advantia VoIP Systems info at advantia.ca
Sat Jun 4 17:39:16 CEST 2011


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
>



More information about the Users mailing list