Re: [asterisk-users] Sorcery with templates

2016-10-01 Thread Andrew Ivins
Thanks for confirming that Joshua. Thought that might be the case. I'll
look at a workaround.

Andrew

On 1 October 2016 at 20:20, Joshua Colp <jc...@digium.com> wrote:

> Andrew Ivins wrote:
>
>> Hi list.
>>
>> I use sorcery to configure an astdb backend to my pjsip endpoints.
>>
>> This works well, but it would be even better if I could set attribute
>> defaults for these endpoints in the config file. The way I do it now
>> forces me to store all endpoint attributes for each endpoint, even when
>> most of them are effectively defaults. If I need to change one, I need
>> to update each endpoint in the astdb.
>>
>>
>> Any suggestions?
>>
>
> There's no way to do this. Templates are purely a config file construct
> (in fact sorcery and other stuff has no idea you've used templates by the
> time it gets the data).
>
> Cheers,
>
> --
> Joshua Colp
> Digium, Inc. | Senior 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 --
>
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
>  http://www.asterisk.org/community/astricon-user-conference
>
> New to Asterisk? Start here:
>  https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
  http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Sorcery with templates

2016-10-01 Thread Andrew Ivins
Hi list.

I use sorcery to configure an astdb backend to my pjsip endpoints.

This works well, but it would be even better if I could set attribute
defaults for these endpoints in the config file. The way I do it now forces
me to store all endpoint attributes for each endpoint, even when most of
them are effectively defaults. If I need to change one, I need to update
each endpoint in the astdb.


Any suggestions?

Andrew
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
  http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk Radius CDR

2016-09-29 Thread Andrew Ivins
You won't see anything in the Asterisk logs because there's nothing to log.
The error happens in the freeradius-client library and returns an integer.
On 29 Sep 2016 17:44, "Willem Offermans" <wil...@offermans.rompen.nl> wrote:

Hello Andrew and asterisk friends,

I suspect that asterisk has problems to deal with the radiusclient in some
way. Therefore it cannot contact the radius server. There should be some
clue in the log files of asterisk, other than ``Unable to create RADIUS
record. CDR not recorded''

As a last resort, extra debug info from the source code can be invoked by
printf commands. But this involves some work.

On Thu, Sep 29, 2016 at 04:38:06PM +0800, Andrew Ivins wrote:
> You don't get anything in the Asterisk logs because freeradius-client
> (formerly radiusclient-ng) returns a single failure code for any failure
> when building a radius request.
>
> Andrew
>
> On 29 September 2016 at 15:55, Willy Offermans <
aster...@offermans.rompen.nl
> > wrote:
>
> > Hi Ahmed and asterisk friends,
> >
> > So asterisk cannot contact the radius server.
> >
> > The radiusclient __can__ contact the radius server.
> >
> > Check in the asterisk log files why asterisk cannot contact the radius
> > server! Be also aware of the user, who is running the daemons. This user
> > might need read access to certain configuration files.
> >
> > On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
> > > Hi Andrew and Willy,
> > >
> > > Thanks for sharing the info.
> > >
> > > As for enabling radius server debugging 'radiusd -X', made some test
> > calls
> > > don't see the radiusclient sending data to radius server. However,
using
> > > radtest or radiusclient testing, able to send data to radius server
> > (after
> > > enabling debug).
> > >
> > > For further testing, on my other server  using OpenSIPs, setup the
> > > radiusclient  and data was able to send over to radius server without
any
> > > issue i.e. using same radiusclient config that I'm using for Asterisk
> > > radiusclient.
> > >
> > > Btw, will try to work on Andrew advise and will update you if I make
any
> > > progress.
> > >
> > >
> > >
> > > Date: Wed, 28 Sep 2016 10:09:51 +0200
> > > > From: Willy Offermans <aster...@offermans.rompen.nl>
> > > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > > <asterisk-users@lists.digium.com>
> > > > Subject: Re: [asterisk-users] Asterisk Radius CDR
> > > > Message-ID: <20160928080951.ga4...@vpn.offrom.nl>
> > > > Content-Type: text/plain; charset=us-ascii
> > > >
> > > > Hello Ahmed, Andrew, and asterisk friends,
> > > >
> > > > Some time ago, I ran into similar problems as well :) I can confirm
the
> > > > statement of Andrew: Turn on the logging facilities and you will
find
> > your
> > > > issue most likely.  However, you need also a strategy. ``Radius
client
> > > > testing'' as you mentioned, can mean anything. The point is, can
> > asterisk
> > > > talk to the freeradius server via the client settings? To my
opinion,
> > this
> > > > is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log:
> > Unable
> > > > to create RADIUS record. CDR not recorded'' already implies that
this
> > is
> > > > not possible. I cannot judge it. You can by turning on radiusd -X
and
> > have
> > > > a close look to the output.
> > > >
> > > > On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
> > > > > Hi Ahmed,
> > > > >
> > > > > I ran into similar problems. freeradius-client returns the same
error
> > > > code
> > > > > for numerous failure cases, so Asterisk doesn't get an opportunity
> > to log
> > > > > anything useful. If you look here:
> > > > >
> > > > > https://github.com/FreeRADIUS/freeradius-client/blob/master/
> > > > lib/buildreq.c
> > > > >
> > > > > You'll see many instances where it returns ERROR_RC. You are
almost
> > > > > certainly running into one of these. I ended up putting in print
> > debug
> > > > into
> > > > > that file and recompiling. I think in my case it was as simple as
a
> > > > > hostname not resolving. Once you're not working blind, you'll find
> > what
> > > > is
> > > >

Re: [asterisk-users] Asterisk Radius CDR

2016-09-29 Thread Andrew Ivins
You don't get anything in the Asterisk logs because freeradius-client
(formerly radiusclient-ng) returns a single failure code for any failure
when building a radius request.

Andrew

On 29 September 2016 at 15:55, Willy Offermans <aster...@offermans.rompen.nl
> wrote:

> Hi Ahmed and asterisk friends,
>
> So asterisk cannot contact the radius server.
>
> The radiusclient __can__ contact the radius server.
>
> Check in the asterisk log files why asterisk cannot contact the radius
> server! Be also aware of the user, who is running the daemons. This user
> might need read access to certain configuration files.
>
> On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
> > Hi Andrew and Willy,
> >
> > Thanks for sharing the info.
> >
> > As for enabling radius server debugging 'radiusd -X', made some test
> calls
> > don't see the radiusclient sending data to radius server. However, using
> > radtest or radiusclient testing, able to send data to radius server
> (after
> > enabling debug).
> >
> > For further testing, on my other server  using OpenSIPs, setup the
> > radiusclient  and data was able to send over to radius server without any
> > issue i.e. using same radiusclient config that I'm using for Asterisk
> > radiusclient.
> >
> > Btw, will try to work on Andrew advise and will update you if I make any
> > progress.
> >
> >
> >
> > Date: Wed, 28 Sep 2016 10:09:51 +0200
> > > From: Willy Offermans <aster...@offermans.rompen.nl>
> > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > <asterisk-users@lists.digium.com>
> > > Subject: Re: [asterisk-users] Asterisk Radius CDR
> > > Message-ID: <20160928080951.ga4...@vpn.offrom.nl>
> > > Content-Type: text/plain; charset=us-ascii
> > >
> > > Hello Ahmed, Andrew, and asterisk friends,
> > >
> > > Some time ago, I ran into similar problems as well :) I can confirm the
> > > statement of Andrew: Turn on the logging facilities and you will find
> your
> > > issue most likely.  However, you need also a strategy. ``Radius client
> > > testing'' as you mentioned, can mean anything. The point is, can
> asterisk
> > > talk to the freeradius server via the client settings? To my opinion,
> this
> > > is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log:
> Unable
> > > to create RADIUS record. CDR not recorded'' already implies that this
> is
> > > not possible. I cannot judge it. You can by turning on radiusd -X and
> have
> > > a close look to the output.
> > >
> > > On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
> > > > Hi Ahmed,
> > > >
> > > > I ran into similar problems. freeradius-client returns the same error
> > > code
> > > > for numerous failure cases, so Asterisk doesn't get an opportunity
> to log
> > > > anything useful. If you look here:
> > > >
> > > > https://github.com/FreeRADIUS/freeradius-client/blob/master/
> > > lib/buildreq.c
> > > >
> > > > You'll see many instances where it returns ERROR_RC. You are almost
> > > > certainly running into one of these. I ended up putting in print
> debug
> > > into
> > > > that file and recompiling. I think in my case it was as simple as a
> > > > hostname not resolving. Once you're not working blind, you'll find
> what
> > > is
> > > > happening pretty quickly.
> > > >
> > > > Andrew
> > > >
> > > > On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir...@gmail.com>
> > > wrote:
> > > >
> > > > > I did radius client status testing with radius server, able to
> access
> > > the
> > > > > radius server. However, still getting radius CDR issue after
> setting
> > > debug
> > > > > level 8 even granting 666 access to radiusclient-ng config files.
> > > > >
> > > > > message: cdr_radius.c:208 radius_log: Unable to create RADIUS
> record.
> > > CDR
> > > > > not recorded!
> > > > >
> > > > > Please advise if I missed out anything.
> > > > >
> > > > >
> > > > > Date: Mon, 26 Sep 2016 12:09:34 +0200
> > > > >> From: Willy Offermans <aster...@offermans.rompen.nl>
> > > > >> To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > > >> <asteri

Re: [asterisk-users] Asterisk Radius CDR

2016-09-27 Thread Andrew Ivins
Hi Ahmed,

I ran into similar problems. freeradius-client returns the same error code
for numerous failure cases, so Asterisk doesn't get an opportunity to log
anything useful. If you look here:

https://github.com/FreeRADIUS/freeradius-client/blob/master/lib/buildreq.c

You'll see many instances where it returns ERROR_RC. You are almost
certainly running into one of these. I ended up putting in print debug into
that file and recompiling. I think in my case it was as simple as a
hostname not resolving. Once you're not working blind, you'll find what is
happening pretty quickly.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir  wrote:

> I did radius client status testing with radius server, able to access the
> radius server. However, still getting radius CDR issue after setting debug
> level 8 even granting 666 access to radiusclient-ng config files.
>
> message: cdr_radius.c:208 radius_log: Unable to create RADIUS record. CDR
> not recorded!
>
> Please advise if I missed out anything.
>
>
> Date: Mon, 26 Sep 2016 12:09:34 +0200
>> From: Willy Offermans 
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> 
>> Subject: Re: [asterisk-users] Asterisk Radius CDR
>> Message-ID: <20160926100934.gb4...@vpn.offrom.nl>
>> Content-Type: text/plain; charset=us-ascii
>>
>>
>> Hello Ahmed,
>>
>> On Fri, Sep 23, 2016 at 04:12:42PM -0400, Ahmed Munir wrote:
>> > Hi,
>> >
>> > I've recently setup Asterisk with Radius CDR by following the document:
>> > https://wiki.asterisk.org/wiki/display/AST/RADIUS+CDR+Backend.
>> >
>> > The issue currently I'm facing is after turning on the debug getting
>> > message: cdr_radius.c:208 radius_log: Unable to create RADIUS record.
>> CDR
>> > not recorded!
>> >
>> > I've checked and grant access 666 to radiusclient config files: servers
>> &
>> > dictionary.digium and 777 to '/var/run/radius.seq'. I've noticed that
>> > /var/run/radius.seq is not getting updated.
>> >
>> >
>> > Further added, in asterisk CLI while running command: cdr show status
>> > getting results below;
>> >
>> > Call Detail Record (CDR) settings
>> > --
>> >   Logging:Enabled
>> >   Mode:   Simple
>> >   Log unanswered calls:   No
>> >   Log congestion: No
>> >
>> > * Registered Backends
>> >   ---
>> > cdr-syslog
>> > Adaptive ODBC
>> > cdr-custom
>> > csv
>> > radius
>> >
>> >
>> > Please advise if I may missed any steps.
>> >
>> > --
>> > Regards,
>> >
>> > Ahmed Munir Chohan
>>
>> I cannot advice you about steps you might have missed, probably none. To
>> my
>> experience, the documentation is not sufficient.
>>
>> I can tell you that freeradius can be run in debug mode: radiusd -X Do
>> this
>> and have a close look to the output.
>>
>> If you cannot find any attempt to connect to the freeradius server you
>> need
>> to have a close look to the asterisk log files as well. Figure out what is
>> going wrong. There should be some clue.
>>
>> I don't understand the grant access settings. Figure out the user which is
>> running asterisk and set the setting appropriately! I remember that I
>> needed the following access setting:
>>
>> -rw-r-  1 root  asterisk  /usr/local/etc/radiusclient-ng/servers
>>
>> So read access for asterisk to the servers file. This was not documented
>> at
>> all, but somehow logical, if you figured it out.
>>
>> --
>> Met vriendelijke groeten,
>> With kind regards,
>> Mit freundlichen Gruessen,
>> De jrus wah,
>>
>> Wiel
>>
>> *
>>  W.K. Offermans
>>
>>Powered by 
>>
>> (__)
>>  \\\'',)
>>\/  \ ^
>>.\._/_)
>>
>>www.FreeBSD.org
>>
>>
>>
> --
> Regards,
>
> Ahmed Munir Chohan
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
>   http://www.asterisk.org/community/astricon-user-conference
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
  http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

Re: [asterisk-users] CALLERID on pjsip doesn't work?

2016-07-05 Thread Andrew Ivins
Thanks Joshua. That did the trick.

On 4 July 2016 at 19:18, Joshua Colp <jc...@digium.com> wrote:

> Andrew Ivins wrote:
>
>> On 1 July 2016 at 17:41, Joshua Colp <jc...@digium.com
>> <mailto:jc...@digium.com>> wrote:
>>
>>
>> exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>)
>> same => n,Dial(PJSIP/phone123, 30)
>>
>>
>> Your exten line has no priority, is that how it is in your dialplan?
>>
>>
>> Actually no, I stole that line from an earlier email to this list. Mine
>> has a priority.
>>
>> If not you can isolate things a bit further by trying the following:
>>
>> Set(CALLERID(all)=Jon Doe <+123456789>)
>>
>> Or individually:
>>
>> Set(CALLERID(name)=Jon Doe)
>> Set(CALLERID(num)=+123456789)
>>
>>
>> Tried many permutations of this, and the only thing I can get to happen
>> is to make the call present as Anonymous by changing the
>> pres-name/pres-num setting.
>>
>> It's not a production system, dialplan is pretty simple:
>>
>> same => _X.1,Set(CALLERID(name-pres)=allowed)
>> same => n,Set(CALLERID(num-pres)=allowed)
>> same => n,Set(CALLERID(name)=Fred)
>> same => n,Set(CALLERID(num)=6123)
>> same => n,Dial(PJSIP/DEADDEADBEEF, 30)
>> same => n,Hangup()
>>
>> DEADDEADBEEF is the name of the endpoint and the endpoint works. I use
>> MAC addresses and plan to dynamically map extensions to them later on
>> (kind of like user mode in freepbx).
>>
>> In the console, if I log the value of CALLERID, it is what I expect to
>> it to be.
>>
>>
> 
>
> You have from_user set which will override the user in the From header
> which is where callerid would be. You also don't have send_rpid or send_pai
> turned on so there would be no alternate way to send it. Try setting
> send_rpid or send_pai to yes and trying again.
>
>
> --
> Joshua Colp
> Digium, Inc. | Senior 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
>
-- 
_
-- 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

Re: [asterisk-users] CALLERID on pjsip doesn't work?

2016-07-03 Thread Andrew Ivins
On 1 July 2016 at 17:41, Joshua Colp  wrote:
>
>
>> exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>)
>> same => n,Dial(PJSIP/phone123, 30)
>>
>
> Your exten line has no priority, is that how it is in your dialplan?
>

Actually no, I stole that line from an earlier email to this list. Mine has
a priority.


> If not you can isolate things a bit further by trying the following:
>
> Set(CALLERID(all)=Jon Doe <+123456789>)
>
> Or individually:
>
> Set(CALLERID(name)=Jon Doe)
> Set(CALLERID(num)=+123456789)
>

Tried many permutations of this, and the only thing I can get to happen is
to make the call present as Anonymous by changing the pres-name/pres-num
setting.

It's not a production system, dialplan is pretty simple:

same => _X.1,Set(CALLERID(name-pres)=allowed)
same => n,Set(CALLERID(num-pres)=allowed)
same => n,Set(CALLERID(name)=Fred)
same => n,Set(CALLERID(num)=6123)
same => n,Dial(PJSIP/DEADDEADBEEF, 30)
same => n,Hangup()

DEADDEADBEEF is the name of the endpoint and the endpoint works. I use MAC
addresses and plan to dynamically map extensions to them later on (kind of
like user mode in freepbx).

In the console, if I log the value of CALLERID, it is what I expect to it
to be.

In the pjsip debug, the callerid I am trying to set doesn't appear anywhere.

I'm using your Sorcery stuff backing into astb for pjsip, but I've done a
little script to dump it back into text so I can override it in the config
file. Therefore it's a bit verbose. Thanks for looking.

[DEADDEADBEEF]
type=aor
support_path=true
default_expiration=3600
qualify_timeout=3.00
mailboxes=
minimum_expiration=60
outbound_proxy=
voicemail_extension=
maximum_expiration=7200
qualify_frequency=0
authenticate_qualify=false
contact=
max_contacts=1
remove_existing=true

[DEADDEADBEEF]
type=auth
md5_cred=
realm=
auth_type=userpass
password=4D7D9A7F1822
nonce_lifetime=32
username=507B495E565B

[DEADDEADBEEF]
type=endpoint
timers_sess_expires=1800
device_state_busy_at=0
dtls_cipher=
from_domain=
dtls_rekey=0
dtls_fingerprint=SHA-256
direct_media_method=invite
send_rpid=false
pickup_group=
sdp_session=Asterisk
dtls_verify=No
message_context=
mailboxes=
named_pickup_group=
record_on_feature=automixmon
dtls_private_key=
named_call_group=
t38_udptl_maxdatagram=0
media_encryption_optimistic=false
aors=DEADDEADBEEF
rpid_immediate=false
outbound_proxy=
identify_by=username
inband_progress=false
rtp_symmetric=false
transport=transport-udp
rtp_keepalive=0
t38_udptl_ec=none
fax_detect=false
t38_udptl_nat=false
allow_transfer=true
tos_video=0
srtp_tag_32=false
timers_min_se=90
call_group=
sub_min_expiry=0
100rel=yes
direct_media=true
rtp_timeout_hold=0
g726_non_standard=false
dtmf_mode=rfc4733
voicemail_extension=
rtp_timeout=0
dtls_cert_file=
media_encryption=no
media_use_received_transport=false
direct_media_glare_mitigation=none
trust_id_inbound=false
force_avp=false
record_off_feature=automixmon
send_diversion=true
language=
mwi_from_user=
rtp_ipv6=false
ice_support=false
callerid=unknown
aggregate_mwi=true
one_touch_recording=false
cos_video=0
accountcode=
allow=(g722|ulaw|alaw)
rewrite_contact=false
t38_udptl_ipv6=false
tone_zone=
user_eq_phone=false
allow_subscribe=true
rtp_engine=asterisk
auth=DEADDEADBEEF
from_user=DEADDEADBEEF
bind_rtp_to_media_address=false
disable_direct_media_on_nat=false
set_var=
use_ptime=false
outbound_auth=
media_address=
tos_audio=0
dtls_ca_path=
dtls_setup=active
force_rport=false
connected_line_method=invite
callerid_tag=
timers=yes
sdp_owner=-
trust_id_outbound=false
use_avpf=false
context=default
moh_suggest=default
send_pai=false
t38_udptl=false
dtls_ca_file=
callerid_privacy=allowed_not_screened
mwi_subscribe_replaces_unsolicited=false
cos_audio=0
-- 
_
-- 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

[asterisk-users] CALLERID on pjsip doesn't work?

2016-07-01 Thread Andrew Ivins
Asterisk 13.8

Is CALLERID(all) supposed to wok for pjsip? When I do this:

exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>)
same => n,Dial(PJSIP/phone123, 30)

I expect the callerid to be as set, but is always seems to be "phone123",
the name of the endpoint.

Andrew
-- 
_
-- 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

[asterisk-users] ARI Push Configuration and duplicate objects

2016-04-19 Thread Andrew Ivins
Hi,

Asterisk 13.8.0. Can anybody explain why I get two objects whenever I use
ARI Push? (https://wiki.asterisk.org/wiki/display/AST/ARI+Push+Configuration
)

Below is what I see using the auth push example from the wiki, but I get
the same thing for endpoints and aors too.

root@vagrant-ubuntu-wily-64:~# asterisk -r -x "pjsip show auths"
No objects found.

root@vagrant-ubuntu-wily-64:~# curl -X PUT -H "Content-Type:
application/json" -u asterisk:asterisk -d '{"fields": [ { "attribute":
"auth_type", "value": "userpass"}, {"attribute": "username", "value":
"alice"}, {"attribute": "password", "value": "secret" } ] }'
http://localhost:8088/ari/asterisk/config/dynamic/res_pjsip/auth/alice
[
  {
"attribute": "md5_cred",
"value": ""


root@vagrant-ubuntu-wily-64:~#asterisk -r -x "pjsip show auths"
  I/OAuth:
 
 
=

 Auth:  alice/alice
 Auth:  alice/alice
-- 
_
-- 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