[sr-dev] Fwd: Create multiple profiles using dialog module

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 9 17:57:58 CEST 2014


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:*sr-dev-bounces at lists.sip-router.org 
> [mailto:sr-dev-bounces at lists.sip-router.org] *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 
> <miconda at gmail.com <mailto:miconda at gmail.com>> 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 <rahul.ultimate at gmail.com 
> <mailto:rahul.ultimate at gmail.com>> 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
> sr-dev at lists.sip-router.org
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140609/45472b59/attachment-0001.html>


More information about the sr-dev mailing list