[asterisk-users] asterisk 16 manager --END COMMAND--

2018-10-11 Thread Dmitry Melekhov

Hello!

Just upgraded asterisk from 13 to 16 and found that php-agi library is 
not compatible.


It waits for --END COMMAND--

after command is completed,

but, as I see from tcpdump, now asterisk does not send such string after 
command is completed.



Could you tell me, is it possible to get previous behaviour ?

Or what now manager sends as command completed ?


Thank you!



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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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-11 Thread Antony Stone
On Thursday 11 October 2018 at 22:11:10, Ivan Demkovitch wrote:

> Abdul,
> Added code like you proposed, I see it in logs but still don't see caller
> ID coming in:
> -- Goto (internal,101,1)
> -- Executing [101@internal:1] NoOp("SIP/callcentric13-06d1", "Call
> ID: "DEMKOVITCH,IVAN" <155>") in new stack
> -- Executing [101@internal:2] Dial("SIP/callcentric13-06d1",
> "SIP/649EF375,30") in new stack

So, assuming 155 is the Caller ID you would *like* to see on the 
mobile, but in fact you see the number associated with your Callcentric trunk, 
I think Abdul has pinpointed the problem:

> Also what Caller ID is set on outgoing trunk? Is that enforced in trunk
> configuration?  --
> regards,
> abdul basit

By "trunk configuration" he means the trunk setup with Callcentric, not your 
Asterisk server.

It is most likely that Callcentric do not allow you to set arbitrary caller ID 
on outgoing calls made through that connection.  You could pretend to be 
anybody, and they don't permit that.


Regards,


Antony.

-- 
Because it messes up the order in which people normally read text.
> Why is top-posting such a bad thing?
> > Top-posting.
> > > What is the most annoying way of replying to e-mail?

   Please reply to the list;
 please *don't* CC me.

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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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-11 Thread Ivan Demkovitch
Abdul,
Added code like you proposed, I see it in logs but still don't see caller ID 
coming in:
 -- Goto (internal,101,1)
    -- Executing [101@internal:1] NoOp("SIP/callcentric13-06d1", "Call ID: 
"DEMKOVITCH,IVAN" <155>") in new stack
    -- Executing [101@internal:2] Dial("SIP/callcentric13-06d1", 
"SIP/649EF375,30") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/649EF375
    -- SIP/649EF375-06d2 is ringing
    -- Nobody picked up in 3 ms
    -- Executing [101@internal:3] Dial("SIP/callcentric13-06d1", 
"SIP/166@callcentric,20") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/166@callcentric
    -- SIP/callcentric-06d3 is making progress passing it to 
SIP/callcentric13-06d1
   > 0x7f3b3801c800 -- Probation passed - setting RTP source address to 
222.11.192.162:56680
    -- SIP/callcentric-06d3 is ringing
    -- SIP/callcentric-06d3 is making progress passing it to 
SIP/callcentric13-06d1
    -- SIP/callcentric-06d3 is ringing
    -- SIP/callcentric-06d3 is making progress passing it to 
SIP/callcentric13-06d1
    -- SIP/callcentric-06d3 is ringing
    -- SIP/callcentric-06d3 is making progress passing it to 
SIP/callcentric13-06d1
    -- SIP/callcentric-06d3 is ringing
    -- SIP/callcentric-06d3 is making progress passing it to 
SIP/callcentric13-06d1
  == Spawn extension (internal, 101, 3) exited non-zero on 
'SIP/callcentric13-06d1'




  From: Abdul Basit 
 To: idemkovi...@yahoo.com; Asterisk Users Mailing List - Non-Commercial 
Discussion  
 Sent: Thursday, October 11, 2018 12:42 PM
 Subject: Re: [asterisk-users] Is there any way to pass caller id to cell phone?
   
Hi Ivan,
Check whats CallerID you are getting before initiating dial command.
;Eric on extension 105
exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
  same => n,VoiceMail(105@default,u)

Also what Caller ID is set on outgoing trunk? Is that enforced in trunk 
configuration? 
--
regards,
abdul basit

On Thu, 11 Oct 2018 at 22:19, Ivan Demkovitch  wrote:


We have following problem. On some of the extentions I call cell phone after 10 
seconds or so.Or, like this one below- we call cell and office phone at the 
same time
;Eric on extension 105
exten => 105,1,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
    same => n,VoiceMail(105@default,u)
Where problem comes in - if person not at the desk - his cell phone shows call 
from OFFICE number and there is no way to tell who is really calling.
We use Callcentric as a trunk if it makes any difference.
I'd like to add info about caller when passing to cell phone if possible. Is 
there any way to do that?
Thank you,Ivan
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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


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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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-11 Thread Ivan Demkovitch
Abdul,
What is the point of chacking caller id? Does it "make" Asterisk forward it 
later on?
Here is outgoing trunk sip.config. Don't know much about it, pretty much 
copy/paste from their instructions.
register => dsfsadfa...@callcentric.com[callcentric]
type=peer
context=from-callcentric
host=callcentric.com
fromdomain=callcentric.com
defaultuser=1777555
fromuser=1777555
secret=abcd1234
insecure=port,invite
disallowed_methods=UPDATE
directmedia=no
videosupport=no
disallow=all
allow=ulaw[callcentric1](callcentric);
host=alpha1.callcentric.com[callcentric2](callcentric);
host=alpha2.callcentric.com[callcentric3](callcentric);
host=alpha3.callcentric.com[callcentric4](callcentric);
host=alpha4.callcentric.com[callcentric5](callcentric);
host=alpha5.callcentric.com

Thank you,Ivan
  From: Abdul Basit 
 To: idemkovi...@yahoo.com; Asterisk Users Mailing List - Non-Commercial 
Discussion  
 Sent: Thursday, October 11, 2018 12:42 PM
 Subject: Re: [asterisk-users] Is there any way to pass caller id to cell phone?
   
Hi Ivan,
Check whats CallerID you are getting before initiating dial command.
;Eric on extension 105
exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
  same => n,VoiceMail(105@default,u)

Also what Caller ID is set on outgoing trunk? Is that enforced in trunk 
configuration? 
--
regards,
abdul basit

On Thu, 11 Oct 2018 at 22:19, Ivan Demkovitch  wrote:


We have following problem. On some of the extentions I call cell phone after 10 
seconds or so.Or, like this one below- we call cell and office phone at the 
same time
;Eric on extension 105
exten => 105,1,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
    same => n,VoiceMail(105@default,u)
Where problem comes in - if person not at the desk - his cell phone shows call 
from OFFICE number and there is no way to tell who is really calling.
We use Callcentric as a trunk if it makes any difference.
I'd like to add info about caller when passing to cell phone if possible. Is 
there any way to do that?
Thank you,Ivan
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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


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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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

[asterisk-users] Forward call to another device or etxtension

2018-10-11 Thread Administrator TOOTAI

Hi list,

I have a queue in which I add a member located outside the company and 
connected to an outside asterisk. Let's say peername is ABCD123. In the 
queue I gave SIP/ABCD123 as interface which is not existing on the local 
asterisk.


Is there a way to connect a member from a queue which is not known from 
asterisk (eg when queue call SIP/ABCD123 a forwarding feature send it to 
an extension or other device) ?


In my case, an extension 123@oneContext call the outside device so I 
found a solution by using dynamic agent like 
AddQueueMember(myqueue,Local/123@oneContext). But for my knowledge still 
would know if my request is possible and has some sense :) Would the 
atsdb have some feature I could use ?


Thanks for any hint.

Daniel

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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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-11 Thread Abdul Basit
Hi Ivan,

Check whats CallerID you are getting before initiating dial command.

;Eric on extension 105
exten => 105,1,NoOp( Call ID: ${CALLERID(all)} )
exten => 105,n,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
  same => n,VoiceMail(105@default,u)

Also what Caller ID is set on outgoing trunk? Is that enforced in trunk
configuration?

--
regards,

abdul basit


On Thu, 11 Oct 2018 at 22:19, Ivan Demkovitch  wrote:

>
> We have following problem. On some of the extentions I call cell phone
> after 10 seconds or so.
> Or, like this one below- we call cell and office phone at the same time
>
> ;Eric on extension 105
> exten => 105,1,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
> same => n,VoiceMail(105@default,u)
>
> Where problem comes in - if person not at the desk - his cell phone shows
> call from OFFICE number and there is no way to tell who is really calling.
>
> We use Callcentric as a trunk if it makes any difference.
>
> I'd like to add info about caller when passing to cell phone if possible.
> Is there any way to do that?
>
> Thank you,
> Ivan
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Astricon is coming up October 9-11!  Signup is available at:
> https://www.asterisk.org/community/astricon-user-conference
>
> 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
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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

[asterisk-users] Is there any way to pass caller id to cell phone?

2018-10-11 Thread Ivan Demkovitch

We have following problem. On some of the extentions I call cell phone after 10 
seconds or so.Or, like this one below- we call cell and office phone at the 
same time
;Eric on extension 105
exten => 105,1,Dial(${ERIC_CELL}&${ERIC_OFFICE},30)
    same => n,VoiceMail(105@default,u)
Where problem comes in - if person not at the desk - his cell phone shows call 
from OFFICE number and there is no way to tell who is really calling.
We use Callcentric as a trunk if it makes any difference.
I'd like to add info about caller when passing to cell phone if possible. Is 
there any way to do that?
Thank you,Ivan
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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

[asterisk-users] What's the best way of extracting call data which has been written to flat files?

2018-10-11 Thread Jonathan H
I'm dealing with a blind charity phone information system which writes
its logs to two flat csv files
(Although the log COULD actually now be written to dynamoDB or
sqlite3, too if needed).

The first file contains basic call information, one line per call and
a unique call ID (distinct from "caller ID"!)
The second file relates the call ID to more information about what
happened during that call.

I'd really just like to extract info like: What was the most popular
caller region? Time of day? Item in the menu?
What did people listen to most or skip or hang up during? What
percentage were mobiles?

The information is all there, but I have NO idea how to extract it,
nor the skills to do so myself without a steer in the right direction.

So my question is really: What now? I've written this, and some
example log entries, to

https://gist.github.com/lardconcepts/c3595db7a8bae54110f36dcbdd0c8c2c

If I don't get any luck here, I'll try asterisk-biz later.
Alternatively, where to find help?
PeoplePerHour? Or some other web-worker site? What should I look to
pay? What is this kind of data-wrangling even called?

Basically, I'm hoping that either someone will know of something that
exists already which is very cost-effective and I could learn in a day
or two.
Or, know of someone who could write something for me, for a reasonable amount.

I have an idea that the answer lies in something like Dynamo/MongoDB,
but need some pointers.

(But what's not going to be possible is someone offering to do it for
"just" 4 days at $1200 per day plus tax!)

Thanks.

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

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

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