Receiving error on (no value in right expression)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Receiving error on (no value in right expression)

mcintire5150
Hello,
I'm receiving an error on our opensips. Anybody have any ideas what could be causing this? it's not stopping our opensips from running, just filling up logs.

Dec 21 18:42:48 atfsbc0 /usr/sbin/opensips[4992]: WARNING:core:do_assign: no value in right expression on line 209
Dec 21 18:42:48 atfsbc0 /usr/sbin/opensips[4991]: WARNING:core:do_assign: no value in right expression on line 209

Here's line 209 from opensips.cfg.
======================
 $avp(orig_dnis) = $rU;

        # Validate actual phone number
        if (is_method("INVITE") ) {
                create_dialog();
                setflag(ACC_DO);
                setflag(22);
                sip_trace();
                $avp(orig_dnis_clean) = $avp(orig_dnis);
                if($avp(orig_dnis_clean) =~ "^\+[1-9][2-9][0-9]+") {
                        $avp(orig_dnis_clean) = $(avp(orig_dnis){s.substr,1,0});
                }

                #in the US , dialing 1NPANXXXXXX  11 digits
                if($avp(orig_dnis_clean) =~ "^1[2-9][0-9]{9}") {
                        #do nothing
                }
                #in the US, dialing NPANXXXXXX 10 digits
                else if($avp(orig_dnis_clean) =~ "^[2-9][0-9]{9}") {
                        $avp(orig_dnis_clean) = "1" + $avp(orig_dnis);
                }
                #911 is handled by E911 service provider
                else {
                        sl_send_reply("404", "Invalid destination");
                        exit;
                }
        }
==================

Any ideas?
Thanks so much.