Presumably in recent versions (since the comparison fix), $var(…) cannot be compared with $null.

Should this be comparing with an empty string instead or using a pv type that can be null?




From: [] On Behalf Of Carlos Ruiz Díaz
Sent: 09 June 2014 16:27
To: Daniel-Constantin Mierla; Kamailio (SER) - Development Mailing List
Subject: Re: [sr-dev] Fwd: Create multiple profiles using dialog module


Yes, copy/paste error, sorry. I meant to say !=$null.


Thank you for noticing Daniel.


On Mon, Jun 9, 2014 at 10:13 AM, Daniel-Constantin Mierla <> wrote:



On 09/06/14 16:54, Carlos Ruiz Díaz wrote:

Hi Rahul,


if($var(client1)!="null") should be if($var(client1)!="$null")

even in the last IF, the double-quotes have to be removed around "$null" -- just compare with $null, because doublequotes there enforces a static string.

. You are doing a string comparison with the string value "null".


Also make sure the dialog matching is correct: append these event routes to your config file:


event_route[dialog:start] {

        xlog("Dialog started");



event_route[dialog:end] {

        xlog("Dialog ended");



event_route[dialog:failed] {

        xlog("Dialog failed");



You should see a "dialog started" and "dialog ended" for every successful call.


Please do those modifications and see what happens.







On Mon, Jun 9, 2014 at 6:55 AM, Rahul MathuR <> wrote:

Hello Carlos,


Were you able to look at my configuration file ?





+52 55 3048 3303

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.