Why can't I do " $fd == myslef" ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Why can't I do " $fd == myslef" ?

Iñaki Baz Castillo
Hi, I can do:
 if from_uri == myself

but I can't do:
  if $fd == myslef
  if $fu == myslef
since I get:
  CRITICAL:core:comp_scriptvar: invalid operation 20/11
  WARNING:core:do_action: error in expression (l=179)

Why?

--
Iñaki Baz Castillo

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I do " $fd == myslef" ?

Jesus Rodriguez

Hola Iñaki,


> Hi, I can do:
> if from_uri == myself
>
> but I can't do:
>  if $fd == myslef
>  if $fu == myslef
> since I get:
>  CRITICAL:core:comp_scriptvar: invalid operation 20/11
>  WARNING:core:do_action: error in expression (l=179)
>
> Why?


I think it's just a typo but... "myslef != myself" :-)



Saludos
JesusR.

------------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
[hidden email]
http://www.voztele.com
Tel. 902360305
-------------------------------------





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I do " $fd == myslef" ?

Iñaki Baz Castillo
El Sábado, 8 de Noviembre de 2008, Jesus Rodriguez escribió:

> Hola Iñaki,
>
> > Hi, I can do:
> > if from_uri == myself
> >
> > but I can't do:
> >  if $fd == myslef
> >  if $fu == myslef
> > since I get:
> >  CRITICAL:core:comp_scriptvar: invalid operation 20/11
> >  WARNING:core:do_action: error in expression (l=179)
> >
> > Why?
>
> I think it's just a typo but... "myslef != myself" :-)

Yes, just a typo, in the config file I wrote it ok XD

PD: It's like when I write "grpe" instead of "grep" XDD

--
Iñaki Baz Castillo

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I do " $fd == myslef" ?

Bogdan-Andrei Iancu
Hi Inaki,

This works for me :

    if ($fu==myself) {
        drop();
    }

Regards,
Bogdan

Iñaki Baz Castillo wrote:

> El Sábado, 8 de Noviembre de 2008, Jesus Rodriguez escribió:
>  
>> Hola Iñaki,
>>
>>    
>>> Hi, I can do:
>>> if from_uri == myself
>>>
>>> but I can't do:
>>>  if $fd == myslef
>>>  if $fu == myslef
>>> since I get:
>>>  CRITICAL:core:comp_scriptvar: invalid operation 20/11
>>>  WARNING:core:do_action: error in expression (l=179)
>>>
>>> Why?
>>>      
>> I think it's just a typo but... "myslef != myself" :-)
>>    
>
> Yes, just a typo, in the config file I wrote it ok XD
>
> PD: It's like when I write "grpe" instead of "grep" XDD
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I do " $fd == myslef" ?

Iñaki Baz Castillo
2008/11/11 Bogdan-Andrei Iancu <[hidden email]>:
> Hi Inaki,
>
> This works for me :
>
>   if ($fu==myself) {
>       drop();
>   }

Well, most probably I wrote "myslef" XD
Thanks a lot.



--
Iñaki Baz Castillo
<[hidden email]>
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users