[OpenSIPS-Users] Special If condition

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Dec 3 14:50:24 CET 2008


Hi Ali,

better use $Rp (reference to the port where the message was received) as 
the dst_port will become obsolete.

Also you can directly check the protocol :
$pr or $proto ****- protocol of received message (UDP, TCP, TLS, SCTP)

Regards,
Bogdan


Ali Jawad wrote:
>
> I should have checked the cookbook first
>
>  
>
> if(dst_port==5060)
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* users-bounces at lists.opensips.org 
> [mailto:users-bounces at lists.opensips.org] *On Behalf Of *Ali Jawad
> *Sent:* 2008-12-03 15:40
> *To:* users at lists.opensips.org
> *Subject:* [OpenSIPS-Users] Special If condition
>
>  
>
> Hi All
>
> I do have openser listening on tls port and udp port, the udp port is 
> 5060, I want to apply a special condition if the user is using udp/5060.
>
>  
>
> I.e something like
>
>  
>
> If(user is coming in on port5060)
>
>  
>
> Or
>
>  
>
> If(user is using udp )
>
>  
>
> Any help please ?
>
>  
>
> Regards
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list