Good spot, $var(x) is implicit 0 (when it is not set).

Cheers,
Daniel

On 09/06/14 17:53, Waite, Hugh wrote:

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?

Hugh

*From:*[email protected] [mailto:[email protected]] *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 <[email protected] <mailto:[email protected]>> wrote:

Hello,

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.

Cheers,
Daniel




/. /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.

Regards,

Carlos

On Mon, Jun 9, 2014 at 6:55 AM, Rahul MathuR <[email protected] <mailto:[email protected]>> wrote:

Hello Carlos,

Were you able to look at my configuration file ?

Carlos

http://caruizdiaz.com

http://ngvoice.com

+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.



_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to