[Asterisk-Dev] Loss of functionality with depreciation of DBGet/Put?

Brian West brian.west at mac.com
Tue May 17 09:27:14 MST 2005


ok this madness works:

exten => 566,1,Dial(${IF(${EXISTS(${DB(CF/${CALLERIDNUM})})}?Zap/g1/$ 
{DB(CF/${CALLERIDNUM})}:SIP/10)})

The parser needs to be more sane with spaces.. but that works.

/b

On May 17, 2005, at 10:17 AM, Brian West wrote:

>>
>> exten => 100,1,Set(temp=${DB(CFIM/200)})
>> exten => 100,n,GotoIF(${temp} = "" ? novalue)
>> exten => 100,n,...
>> exten => 100,n(novalue),...
>>
>
>
>
> exten => 100,1,Set(temp=${IF(${DB(CFIM/200)} = ${DB(CFIM/200)} ?  
> novalue )})
>
> Not sure if that is 100% correct but give it a go it should work...  
> then maybe we need a GOTO function to operate similar?
>
> exten => 100,1,Dial(${IF(${DB(CFIM/200)} = ${DB(CFIM/200)} ? "SIP/ 
> default" )})
>
> The set app is not a requirement to use the return value of the  
> function (or shouldn't be)
>
> /b
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list