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

Carlos Ruiz Díaz carlos.ruizdiaz at gmail.com
Mon Jun 9 17:26:54 CEST 2014


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
> 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>
> wrote:
>
>>  Hello Carlos,
>>
>> Were you able to look at my configuration file ?
>>
>>
>>
>> Carlos
http://caruizdiaz.com
http://ngvoice.com
+52 55 3048 3303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140609/88d407f5/attachment.html>


More information about the sr-dev mailing list