[asterisk-users] ARI strange bug on version 13.29.2

2019-12-16 Thread Daniel Friedman
Hello,

I am using an ARI dialer for my applications and since my last upgrade
to Ver. 13.29.2 from 13.23.1 I am getting this strange bug from the ARI 
debugger:

Debugging on all applications enabled
<--- ARI request received from: x.x.x.x:63036 --->
HOST: x.x.x.x:8088
content-type: application/json
authorization: Basic 
content-length: 265
body:
{
  "context": "from-itc-dialer",
  "extension": "secondleg",
  "priority": 1,
  "timeout": 60,
  "endpoint": "Local/firstleg@from-itc-dialer/n",
  "variables": {
"AGENT": "506655579",
"DESTINATION": "1866222",
"CLI": "442031502032"
  }
}

[2019-12-17 02:10:06] ERROR[24851]: json.c:870 ast_json_vpack: Error building 
JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Expected format 's', got '?'.
[2019-12-17 02:10:06] NOTICE[24853][C-208b]: Ext. firstleg:5 @ 
from-itc-dialer: The group channel is: itc-ebay and the group count is: 1 out 
of max 14
[2019-12-17 02:10:06] ERROR[24851]:   Got 16 backtrace records
# 0: asterisk ast_json_vpack()
# 1: asterisk ast_json_pack()
# 2: asterisk ast_json_dialplan_cep_app()
# 3: asterisk ast_channel_snapshot_to_json()
# 4: res_ari_channels.so ()
# 5: res_ari_channels.so ()
# 6: res_ari_channels.so ()
# 7: [0x7f71a7385098] res_ari.so :0 ast_ari_invoke()
# 8: [0x7f71a73865e1] res_ari.so :0 ast_ari_json_format()
# 9: asterisk ()
#10: asterisk ()
#11: asterisk ()
#12: asterisk ()
#13: asterisk ()
#14: [0x7f71e489caa1] libpthread.so.0 :0 pthread_create()
#15: [0x7f71e3c2493d] libc.so.6 :0 __clone()

<--- Sending ARI response to x.x.x.x:63036 --->
200 OK

The calls are getting through and the Asterisk is not crashing.
I looked at the source code and it seems that I am sending all the right 
parameters with a valid JSON format.

Anyone has an idea what has been change in the Asterisk code and how can I 
adopt my code to the this version?


Regards,

Daniel Friedman
Trixton LTD.

Tel: 972.72.2557000
Mobile: 972.50.6655579

Email: d...@3xton.com<mailto:d...@3xton.com>
Website: http://www.3xton.com

[LOGO trans- 3xton-01]


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

Check out the new Asterisk community forum at: https://community.asterisk.org/

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] Is there any way to pass caller id to cell phone

2018-10-16 Thread Daniel Friedman
Hello,

You can ask your provider to accept PAI headers that you 
Would add to your SIP Invite request.

Usually, this is what you do when you want to block
Your caller id from showing it to the callee.
The only way that the provider can identify you (for billing and legal purposes)
Is by RPID or the PAI headers.

Regards,

Daniel Friedman
Trixton LTD.

Tel: 972.72.2557000
Mobile: 972.50.6655579

Email: d...@3xton.com
Website: http://www.3xton.com





-Original Message-
From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of asterisk-users-requ...@lists.digium.com
Sent: Monday, October 15, 2018 8:00 PM
To: asterisk-users@lists.digium.com
Subject: asterisk-users Digest, Vol 170, Issue 17

Send asterisk-users mailing list submissions to
asterisk-users@lists.digium.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.digium.com/mailman/listinfo/asterisk-users
or, via email, send a message with subject or body 'help' to
asterisk-users-requ...@lists.digium.com

You can reach the person managing the list at
asterisk-users-ow...@lists.digium.com

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of asterisk-users digest..."


Today's Topics:

   1. Re: asterisk 16 manager --END COMMAND-- (Jacek Konieczny)
   2. Re: Is there any way to pass caller id to cellphone? (Eric Klein)


--

Message: 1
Date: Mon, 15 Oct 2018 08:36:23 +0200
From: Jacek Konieczny 
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] asterisk 16 manager --END COMMAND--
Message-ID: <44e25e43-e845-92f6-4e56-8e67f8643...@jajcus.net>
Content-Type: text/plain; charset=utf-8

On 2018-10-12 12:22, Dmitry Melekhov wrote:

>> AMI:
>>   - The Command action now sends the output from the CLI command as a 
>> series
>>     of Output headers for each line instead of as a block of text 
>> with the
>>     --END COMMAND-- delimiter to match the output from other actions.
>>
>>     Commands that fail to execute (no such command, invalid syntax
>> etc.) now
>>     return an Error response instead of Success.
>>
> Very pity that you break compatibility...

The old AMI protocol was so broken, so it was hardly possible to make any 
compatible client implementation. Whatever you do, it would break on some 
corner cases. This change fixed a little bit of this mess.

And if some client library is not properly updated for major Asterisk releases, 
then that is not Asterisk to blame.

Jacek



--

Message: 2
Date: Mon, 15 Oct 2018 11:12:09 +0300
From: Eric Klein 
To: asterisk-users 
Subject: Re: [asterisk-users] Is there any way to pass caller id to
cellphone?
Message-ID:

Content-Type: text/plain; charset="utf-8"

Ivan,

Be aware that what you are asking may cause problems with making the call to 
the cell phone.
Think of it this way, you are taking an inbound call and then sending it out 
over your regular operator. They may object to accepting a call with a CLID 
that does not match your account and could block it.
It is worth testing if they will allow any outbound CLID or need it to match 
the account. The problem will get worse when SHAKEN'STIR comes into effect and 
they need to certify that the call came from your office.
The reason they would block it is to prevent both spam calls and fraud.

Eric Klein
COO
Greenfield
Main US +1 805 410 1010
Main UK +44 203 746 6000
Main Il+972  73 255 7799
Mobile+972 54 666 0933

*Email *e...@greenfield.tech
Skype: EricLKlein
Web: www.greenfield.tech
 www.cloudonix.io


*Disclaimer:*
This e-mail is intended solely for the person to whom it is addressed and may 
contain confidential or legally privileged information. Access to this e-mail 
by anyone else is unauthorized. If an addressing or transmission error has 
misdirected this e-mail, please notify the author by replying to this e-mail 
and destroy this e-mail and any attachments.
E-mail may be susceptible to data corruption, interception, unauthorized 
amendment, viruses and delays or the consequences thereof. If you are not the 
intended recipient, be advised that you have received this email in error and 
that any use, dissemination, forwarding, printing or copying of this email is 
strictly prohibited.


> Date: Thu, 11 Oct 2018 17:18:24 + (UTC)
> From: Ivan Demkovitch 
> To: "asterisk-users@lists.digium.com"
> 
> Subject: [asterisk-users] Is there any way to pass caller id to cell
> phone?
> Message-ID: <1490413779.8332018.1539278304...@mail.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
>
> We have following problem. On some of the extentions I call cell phone 
> after 10 seconds o