VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
oza.4h07 at gmail.com Guest
|
Posted: Mon Apr 25, 2016 10:30 am Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
Regards |
|
Back to top |
|
|
gjoseph at digium.com Guest
|
Posted: Mon Apr 25, 2016 11:04 am Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org |
|
Back to top |
|
|
gjoseph at digium.com Guest
|
Posted: Mon Apr 25, 2016 11:15 am Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph@digium.com (gjoseph@digium.com)> wrote:
Quote: |
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
|
It's working for me...
[1000]
type = wizard
endpoint/set_var = xxxxx=ttttttttt
Quote: | pjsip show endpoint 1000
| ...
trust_id_outbound : true
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
xxxxx : ttttttttt
Quote: |
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
|
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Mon Apr 25, 2016 12:12 pm Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph@digium.com (gjoseph@digium.com)> wrote:
Quote: |
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
|
It's working for me...
[1000]
type = wizard
endpoint/set_var = xxxxx=ttttttttt
Quote: | pjsip show endpoint 1000
| ...
trust_id_outbound : true
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
xxxxx : ttttttttt
|
I was looking for a set_var=xxxxx setting while I should have looked for a xxxxx setting.
Thanks for correcting me !
Anyway, using this set_var capability, how do I access xxxxx's value in the dialplan ?
Using lines bellow doesn't produce anything useful:
same = n,Verbose(0,xxxxx is ${xxxxx})
same = n,Verbose(0,CHANNEL(xxxxx) is ${CHANNEL(xxxxx)})
same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)}
PS: In the above example, 1000 is the name of the PJSIP endpoint (as displayed with pjsip show endpoint 1000)
|
|
Back to top |
|
|
gjoseph at digium.com Guest
|
Posted: Mon Apr 25, 2016 2:33 pm Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
On Mon, Apr 25, 2016 at 11:11 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: |
2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph@digium.com (gjoseph@digium.com)> wrote:
Quote: |
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
|
It's working for me...
[1000]
type = wizard
endpoint/set_var = xxxxx=ttttttttt
Quote: | pjsip show endpoint 1000
| ...
trust_id_outbound : true
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
xxxxx : ttttttttt
|
I was looking for a set_var=xxxxx setting while I should have looked for a xxxxx setting.
Thanks for correcting me !
Anyway, using this set_var capability, how do I access xxxxx's value in the dialplan ?
Using lines bellow doesn't produce anything useful:
same = n,Verbose(0,xxxxx is ${xxxxx})
same = n,Verbose(0,CHANNEL(xxxxx) is ${CHANNEL(xxxxx)})
same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)}
|
I don't think you can do it with channel but I actually don't remember (but I'll check).
"same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)})" works for me but the final ')' is missing in you example, maybe just a cut and paste error though.
There's also an alternate way to specify arbitrary variables...
[myendpoint]
@myvariable = myvalue
You can then retrieve it with ${PJSIP_ENDPOINT(1000,@myvariable)}
The '@' tells the config to just treat is as an opaque extended variable.
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Mon Apr 25, 2016 2:50 pm Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
2016-04-25 21:16 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 11:11 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: |
2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph@digium.com (gjoseph@digium.com)> wrote:
Quote: |
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
|
It's working for me...
[1000]
type = wizard
endpoint/set_var = xxxxx=ttttttttt
Quote: | pjsip show endpoint 1000
| ...
trust_id_outbound : true
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
xxxxx : ttttttttt
|
I was looking for a set_var=xxxxx setting while I should have looked for a xxxxx setting.
Thanks for correcting me !
Anyway, using this set_var capability, how do I access xxxxx's value in the dialplan ?
Using lines bellow doesn't produce anything useful:
same = n,Verbose(0,xxxxx is ${xxxxx})
same = n,Verbose(0,CHANNEL(xxxxx) is ${CHANNEL(xxxxx)})
same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)}
|
I don't think you can do it with channel but I actually don't remember (but I'll check).
"same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)})" works for me but the final ')' is missing in you example, maybe just a cut and paste error though.
|
Yes it was a cut and paste error.
I've found the reason why ${PJSIP_ENDPOINT(1000,xxxxx)} didn't work for me earlier:
my pjsip_woizard.conf file included a line such as:
endpoint/set_var = xxxxx =ttttttttt
Changing it to the one bellow (trailing space), made everything work.
endpoint/set_var = xxxxx=ttttttttt
Originally, my goal was to set something equivalent to (see [1])
setvar=FAXOPT(gateway)=yes,10
Is it supported (with PJSIP and PJSIP wizard) ?
Quote: |
There's also an alternate way to specify arbitrary variables...
[myendpoint]
@myvariable = myvalue
You can then retrieve it with ${PJSIP_ENDPOINT(1000,@myvariable)}
The '@' tells the config to just treat is as an opaque extended variable.
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
gjoseph at digium.com Guest
|
Posted: Mon Apr 25, 2016 3:07 pm Post subject: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? |
|
|
On Mon, Apr 25, 2016 at 1:49 PM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: |
2016-04-25 21:16 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 11:11 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: |
2016-04-25 18:14 GMT+02:00 George Joseph <gjoseph@digium.com (gjoseph@digium.com)>:
Quote: |
On Mon, Apr 25, 2016 at 10:00 AM, George Joseph <gjoseph@digium.com (gjoseph@digium.com)> wrote:
Quote: |
On Mon, Apr 25, 2016 at 9:29 AM, Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)> wrote:
Quote: | Hello,
I've just discovered PJSIP 's support of set_var setting in pjsip.conf.
Is this setting also supported in pjsip_wizard.conf ?
On a fresh 13.8.2, it doesn't seem but I may have missed somthing.
|
I thought it did. Let me check.
|
It's working for me...
[1000]
type = wizard
endpoint/set_var = xxxxx=ttttttttt
Quote: | pjsip show endpoint 1000
| ...
trust_id_outbound : true
use_avpf : false
use_ptime : false
user_eq_phone : false
voicemail_extension :
xxxxx : ttttttttt
|
I was looking for a set_var=xxxxx setting while I should have looked for a xxxxx setting.
Thanks for correcting me !
Anyway, using this set_var capability, how do I access xxxxx's value in the dialplan ?
Using lines bellow doesn't produce anything useful:
same = n,Verbose(0,xxxxx is ${xxxxx})
same = n,Verbose(0,CHANNEL(xxxxx) is ${CHANNEL(xxxxx)})
same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)}
|
I don't think you can do it with channel but I actually don't remember (but I'll check).
"same = n,Verbose(0,${PJSIP_ENDPOINT(1000,xxxxx)})" works for me but the final ')' is missing in you example, maybe just a cut and paste error though.
|
Yes it was a cut and paste error.
I've found the reason why ${PJSIP_ENDPOINT(1000,xxxxx)} didn't work for me earlier:
my pjsip_woizard.conf file included a line such as:
endpoint/set_var = xxxxx =ttttttttt
Changing it to the one bellow (trailing space), made everything work.
endpoint/set_var = xxxxx=ttttttttt
Originally, my goal was to set something equivalent to (see [1])
setvar=FAXOPT(gateway)=yes,10
Is it supported (with PJSIP and PJSIP wizard) ?
|
Ah, yes. Setting existing channel variables that way should work. We even have a test that sets CALLERID that way...
"set_var=CALLERID(name)=foo"
--
George JosephDigium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|