[asterisk-users] Asterisk 16 PJSIP and set_var

Administrator TOOTAI admin at tootai.net
Tue Nov 20 12:50:55 CST 2018


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 ?

Thanks for any hint

Regards

-- 
Daniel



More information about the asterisk-users mailing list