[asterisk-users] Asterisk 16 PJSIP and set_var
Administrator TOOTAI
admin at tootai.net
Tue Nov 20 16:00:01 CST 2018
Le 20/11/2018 à 19:50, Administrator TOOTAI a écrit :
> Hi,
>
> I'm on the way to upgrade a dialplan from 1.8 to 16.0.1 and face a
> problem with user variable defined in sip.conf using setvar. It work
> like a charm -even on asterisk 13 version- but can't get it work in 16.
> The variables are defined in pjsip with set_var and a pjsip show
> endpoint <myEndpoint> does show them, like
>
> myMailMonitor :
> myOnNOANSWER : main
> myPrivateEnv : PPermis
> myPrivateVM : yes
> mySubscriptions : 10
>
> In dialplan -the same that 1.8- I have
>
> exten => _X.,n,Set(__DIAL_OPTIONS=rT)
> exten => _X.,n,Set(__PrivateEnv=${myPrivateEnv})
> exten => _X.,n,Set(__PrivateVM=${myPrivateVM})
> exten => _X.,n,Set(__OnNOANSWER=${myOnNOANSWER})
> exten => _X.,n,Set(__MailMonitor=${myMailMonitor})
>
> but variables are empty. Is there a new way to recover those values ?
Got it, problem is in set_var conf, it must not have any space between
variable name, equal sign and value
Working: set_var = myPrivateEnv=<value>
Not working: set_var = myPrivateEnv = <value>
--
Daniel
More information about the asterisk-users
mailing list