<span style="font-family: verdana,sans-serif;">Hi Guys,</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 &#39;<span style="color: rgb(204, 0, 0);">$rc</span>&#39;, its returning the carrier release code to caller. Changes done are as below,</span><br style="font-family: verdana,sans-serif;">
<br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);">        else {</span><br style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);"><span style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);">                t_reply(&quot;$rc&quot;, &quot;&quot;);</span><br style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);">
<span style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);">                exit;</span><br style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);"><span style="font-family: verdana,sans-serif; color: rgb(204, 0, 0);">                }</span><br style="font-family: verdana,sans-serif;">
<br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">Thanks.</span><br style="font-family: verdana,sans-serif;"><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 style="font-family: verdana,sans-serif;"><br></font></b></font><br><div class="gmail_quote">On Thu, Jun 2, 2011 at 3:30 PM,  <span dir="ltr">&lt;<a href="mailto:users-request@lists.opensips.org">users-request@lists.opensips.org</a>&gt;</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 &#39;help&#39; 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 &quot;Re: Contents of Users digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. OpenSIPs always returning cause code 503 (Aman)<br>
   2. Re: ERROR:core:parse_uri: bad uri, state 0 parsed (Vlad Paiu)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 2 Jun 2011 13:55:41 +0530<br>
From: Aman &lt;<a href="mailto:goforaman@gmail.com">goforaman@gmail.com</a>&gt;<br>
Subject: [OpenSIPS-Users] OpenSIPs always returning cause code 503<br>
To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Message-ID: &lt;BANLkTi==eN7Vr2h=bbzB=<a href="mailto:1kQ_sCAw4biVQ@mail.gmail.com">1kQ_sCAw4biVQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi All,<br>
<br>
 I am facing some challenges in the testing of the OpenSIPs<br>
(V:1.6.2-tls),OpenSips<br>
always returning cause code &#39;503 Service not available, no more gateways&#39; to<br>
caller doesn&#39;t matter whatever it is getting from the carrier ... i guess<br>
its happening due to following code in opensips.cfg,<br>
<br>
        else {<br>
                t_reply(&quot;503&quot;, &quot;Service not available, no more gateways&quot;);<br>
                exit;<br>
                }<br>
<br>
<br>
  I looked into the forums and tried  t_reply(&quot;$T_reply_code&quot;);, but<br>
itsgiving error,<br>
<br>
                    unknown command &lt;t_reply&gt;, missing loadmodule?<br>
                    Jun  1 12:59:46 [21787] ERROR:core:main: bad<br>
config file(1 errors)<br>
<br>
<br>
<br>
----------------------------------------------------------------------------------------------------------------------------------------------------<br>
CALLER<br>
OpenSIPs                                                        CARRIER<br>
----------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
 -------------------------- Invite --------------------------------&gt;<br>
<br>
<br>
------------------------------- Invite --------------------------------&gt;<br>
<br>
<br>
&lt;-------------------------- Trying 100 ------------------------------<br>
<br>
<br>
&lt;-------------------------- Busy 486 -------------------------------<br>
<br>
 &lt;-------------------------- 503 -----------------------------------<br>
  (Service not available, no more gateways)<br>
<br>
  -------------------------- ACK<br>
--------------------------------&gt;<br>
<br>
<br>
----------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
<br>
 One more thing, its not showing the time in the field &#39;Time&#39;, do i<br>
need toadd some<br>
code to get the time print in the CDRToll SIP trace.<br>
<br>
 Any suggestions will really be helpful.<br>
<br>
--<br>
*Cheers,<br>
Amanpreet Singh *<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.opensips.org/pipermail/users/attachments/20110602/3a63eb18/attachment.html" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20110602/3a63eb18/attachment.html</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 02 Jun 2011 12:08:16 +0300<br>
From: Vlad Paiu &lt;<a href="mailto:vladpaiu@opensips.org">vladpaiu@opensips.org</a>&gt;<br>
Subject: Re: [OpenSIPS-Users] ERROR:core:parse_uri: bad uri, state 0<br>
        parsed<br>
To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Message-ID: &lt;<a href="mailto:4DE75300.7080904@opensips.org">4DE75300.7080904@opensips.org</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;; Format=&quot;flowed&quot;<br>
<br>
Hello Nick,<br>
<br>
Your problem is that your From and To header fields do not contain valid<br>
SIP uris, in the sense that the &quot;sip:&quot; part from the beginning is<br>
missing ( <a href="mailto:useras@example.com">useras@example.com</a> should be <a href="mailto:sip%3Auseras@example.com">sip:useras@example.com</a>, like in<br>
the R-URI ) , which makes OpenSIPS throw all those errors.<br>
<br>
Check which is the source of this. Maybe you are not properly altering<br>
the messages, or you are dealing with broken UAs.<br>
<br>
<br>
Regards,<br>
<br>
--<br>
Vlad Paiu<br>
OpenSIPS Developer<br>
<br>
<br>
<br>
<br>
On 06/02/2011 09:57 AM, <a href="mailto:nick@uni-petrol.com">nick@uni-petrol.com</a> wrote:<br>
&gt;<br>
&gt; Dear All!<br>
&gt;<br>
&gt; opensips: opensips_trunk rev 7915<br>
&gt;<br>
&gt; I have errors:<br>
&gt;<br>
&gt; Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:parse_uri: bad uri,  state 0 parsed:&lt;user&gt;  (4) /&lt;<a href="mailto:useras@example.com">useras@example.com</a>&gt;  (28)<br>
&gt; Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:pv_get_acc_username: bad From URI<br>
&gt; Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: no value in right expression<br>
&gt; Jun  2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: error at line: 551<br>
&gt;<br>
&gt; SUBSCRIBE <a href="mailto:sip%3Auseras@example.com">sip:useras@example.com</a> SIP/2.0<br>
&gt; Via: SIP/2.0/UDP 10.211.55.2:5070;rport;branch=z9hG4bK4288<br>
&gt; To: <a href="mailto:useras@example.com">useras@example.com</a><br>
&gt; From: <a href="mailto:useras@example.com">useras@example.com</a>;tag=8932<br>
&gt; Call-ID: <a href="mailto:1306927858-288-MacBook-Pro.@10.211.55.2">1306927858-288-MacBook-Pro.@10.211.55.2</a><br>
&gt; CSeq: 116 SUBSCRIBE<br>
&gt; Max-Forwards: 20<br>
&gt; User-Agent: NCH Software Express Talk 4.04<br>
&gt; Contact:&lt;<a href="http://sip:useras@10.211.55.2:5070" target="_blank">sip:useras@10.211.55.2:5070</a>&gt;<br>
&gt; Expires: 86400<br>
&gt; Event: message-summary<br>
&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO, REFER, NOTIFY<br>
&gt; Supported: replaces<br>
&gt; Content-Length: 0<br>
&gt;<br>
&gt;<br>
&gt; SIP/2.0 501 Method Not Supported Here<br>
&gt; Via: SIP/2.0/UDP 10.211.55.2:5070;rport=5070;branch=z9hG4bK4288;received=85.235.185.170<br>
&gt; To: <a href="mailto:useras@example.com">useras@example.com</a>;tag=f2775ec65578db2ba978e4353ce87342.dbdb<br>
&gt; From: <a href="mailto:useras@example.com">useras@example.com</a>;tag=8932<br>
&gt; Call-ID: <a href="mailto:1306927858-288-MacBook-Pro.@10.211.55.2">1306927858-288-MacBook-Pro.@10.211.55.2</a><br>
&gt; CSeq: 116 SUBSCRIBE<br>
&gt; Server: SIP Gateway<br>
&gt; Content-Length: 0<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.opensips.org/pipermail/users/attachments/20110602/fbfa169b/attachment-0001.htm" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20110602/fbfa169b/attachment-0001.htm</a>&gt;<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 5<br>
************************************<br>
</blockquote></div><br>