[OpenSIPS-Users] OpenSIPs always returning cause code 503

Aman goforaman at gmail.com
Sat Jun 4 10:09:32 CEST 2011


Hi Guys,

Its resolved now by using scripting variable return code '$rc', its
returning the carrier release code to caller. Changes done are as below,

        else {
                t_reply("$rc", "");
                exit;
                }

Thanks.



-- 
*Cheers,
Amanpreet Singh

*
On Thu, Jun 2, 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. OpenSIPs always returning cause code 503 (Aman)
>   2. Re: ERROR:core:parse_uri: bad uri, state 0 parsed (Vlad Paiu)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 2 Jun 2011 13:55:41 +0530
> From: Aman <goforaman at gmail.com>
> Subject: [OpenSIPS-Users] OpenSIPs always returning cause code 503
> To: users at lists.opensips.org
> Message-ID: <BANLkTi==eN7Vr2h=bbzB=1kQ_sCAw4biVQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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 ... 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
> itsgiving error,
>
>                    unknown command <t_reply>, missing loadmodule?
>                    Jun  1 12:59:46 [21787] ERROR:core:main: bad
> config file(1 errors)
>
>
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> CALLER
> OpenSIPs                                                        CARRIER
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>  -------------------------- Invite -------------------------------->
>
>
> ------------------------------- Invite -------------------------------->
>
>
> <-------------------------- Trying 100 ------------------------------
>
>
> <-------------------------- Busy 486 -------------------------------
>
>  <-------------------------- 503 -----------------------------------
>  (Service not available, no more gateways)
>
>  -------------------------- ACK
> -------------------------------->
>
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>  One more thing, its not showing the time in the field 'Time', do i
> need toadd some
> code to get the time print in the CDRToll SIP trace.
>
>  Any suggestions will really be helpful.
>
> --
> *Cheers,
> Amanpreet Singh *
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20110602/3a63eb18/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 02 Jun 2011 12:08:16 +0300
> From: Vlad Paiu <vladpaiu at opensips.org>
> Subject: Re: [OpenSIPS-Users] ERROR:core:parse_uri: bad uri, state 0
>        parsed
> To: users at lists.opensips.org
> Message-ID: <4DE75300.7080904 at opensips.org>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello Nick,
>
> Your problem is that your From and To header fields do not contain valid
> SIP uris, in the sense that the "sip:" part from the beginning is
> missing ( useras at example.com should be sip:useras at example.com, like in
> the R-URI ) , which makes OpenSIPS throw all those errors.
>
> Check which is the source of this. Maybe you are not properly altering
> the messages, or you are dealing with broken UAs.
>
>
> Regards,
>
> --
> Vlad Paiu
> OpenSIPS Developer
>
>
>
>
> On 06/02/2011 09:57 AM, nick at uni-petrol.com wrote:
> >
> > Dear All!
> >
> > opensips: opensips_trunk rev 7915
> >
> > I have errors:
> >
> > Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:parse_uri: bad uri,
>  state 0 parsed:<user>  (4) /<useras at example.com>  (28)
> > Jun  2 10:47:27 /usr/sbin/opensips[30111]:
> ERROR:core:pv_get_acc_username: bad From URI
> > Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: no value
> in right expression
> > Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: error at
> line: 551
> >
> > SUBSCRIBE sip:useras at example.com SIP/2.0
> > Via: SIP/2.0/UDP 10.211.55.2:5070;rport;branch=z9hG4bK4288
> > To: useras at example.com
> > From: useras at example.com;tag=8932
> > Call-ID: 1306927858-288-MacBook-Pro. at 10.211.55.2
> > CSeq: 116 SUBSCRIBE
> > Max-Forwards: 20
> > User-Agent: NCH Software Express Talk 4.04
> > Contact:<sip:useras at 10.211.55.2:5070>
> > Expires: 86400
> > Event: message-summary
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO, REFER, NOTIFY
> > Supported: replaces
> > Content-Length: 0
> >
> >
> > SIP/2.0 501 Method Not Supported Here
> > Via: SIP/2.0/UDP 10.211.55.2:5070
> ;rport=5070;branch=z9hG4bK4288;received=85.235.185.170
> > To: useras at example.com;tag=f2775ec65578db2ba978e4353ce87342.dbdb
> > From: useras at example.com;tag=8932
> > Call-ID: 1306927858-288-MacBook-Pro. at 10.211.55.2
> > CSeq: 116 SUBSCRIBE
> > Server: SIP Gateway
> > Content-Length: 0
> >
> >
> >
> >
> > _______________________________________________
> > 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/20110602/fbfa169b/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> End of Users Digest, Vol 35, Issue 5
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110604/8fb2abf9/attachment-0001.htm>


More information about the Users mailing list