Asterisk 16 PJSIP And Set_var

Home » Asterisk Users » Asterisk 16 PJSIP And Set_var
Asterisk Users 1 Comment

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 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 ?

Thanks for any hint

Regards


Daniel

One thought on - Asterisk 16 PJSIP And Set_var

  • Le 20/11/2018 à 19:50, Administrator TOOTAI a écrit :

    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=
    Not working: set_var = myPrivateEnv =


    Daniel