Re: [asterisk-users] linphone calls not missed due to cause not 487

2020-10-16 Thread Michael Maier
On 16.10.20 at 11:07 sergio wrote:
> On 16/10/2020 10:11, Michael Maier wrote:
>>> Sometimes, linphone shows missed calls as missed.
>> You could try to reproduce it
> 
> I can't reproduce it, it happens less than once a month.

Then you should enable the tracing as I wrote in the previous post.

Regards
Michael

-- 
_
-- 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] Parallel dialing / running dialplan process in background

2020-10-16 Thread Peter van Haaften
Hi Dovid, thanks for that, it works! :)

[from-internal]
exten = 514316,1,Answer()
same => n,Dial(LOCAL/100@extensions&LOCAL/101@background)

[extensions]
exten => 100,1,Playback(hello)
same => n,JACK([i(SuperCollider:in_1), o(SuperCollider:out_1)])
same => n,Hangup()

[background]
Exten => 101,1,Congestion
Exten => h,1,AGI(test.py)

On Thu, Oct 15, 2020 at 5:16 PM Dovid Bender  wrote:

> Asterisk will try calling both at once. As soon as one is answered it
> cancels the call to the other. What you can do is for extension 101 to put
> it in it's own context and then call the agi from the h extension. So
> something like this:
> [from-internal]
> exten = 514316,1,Answer()
> same => n,Playback(hello)
> same => n,Dial(LOCAL/100@extensions&LOCAL/101@extensions)
> [extensions]
> exten => 100,1,JACK([i(SuperCollider:in_1), o(SuperCollider:out_1)])
> same => n,Hangup()
> [our_agi]
> Exten => 101,1,Congestion
> Exten => h,1,AGI(test.py)
>
>
>
>
>
>
> On Thu, Oct 15, 2020 at 12:35 PM Peter van Haaften 
> wrote:
>
>> Hi,
>>
>> I am trying to write a dialplan that will use Dial() to call two local
>> extensions. One extension will run an AGI script (a continuous background
>> process, running until hangup), the other will connect the active channel
>> to Jack() (also running as continuous process, until hangup).
>>
>> This is my current dialplan attempt:
>>
>> -
>> [from-internal]
>> exten = 514316,1,Answer()
>> same => n,Playback(hello)
>> same => n,Dial(LOCAL/100@extensions&LOCAL/101@extensions)
>> [extensions]
>> exten => 100,1,JACK([i(SuperCollider:in_1), o(SuperCollider:out_1)])
>> same => n,Hangup()
>> exten => 101,1,AGI(test.py)
>> -
>>
>> Currently, this will start my python script via AGI & run it as blocking,
>> stopping extension 100 from connecting.
>>
>> I’ve also tried the following alternative syntax’s with Dial, with
>> varying results but no solution yet:
>>
>> -
>> same => n,Dial(LOCAL/100@extensions,,&LOCAL/101@extensions
>> ,,G(extensions,101,1))
>> same => n,Dial(LOCAL/100@extensions,,g&LOCAL/101@extensions,,g)
>> same => n,Dial(LOCAL/100@extensions,,G(extensions,101,1))
>> -
>>
>> From my readings of other related issues, I think I’m very close but have
>> just minimally messed up the syntax. I know trying to force two running
>> processes on the dialplan is not generally recommended, but I have a
>> specific use-case, and my Asterisk server will only be handling a small
>> number of concurrent callers.
>>
>> I can provide more detail on my python script process, my need for Jack,
>> etc. My need for parallel running processes on the dialplan was spurned by
>> issues I’ve had with JACK_HOOK, which are detailed here:
>> https://community.asterisk.org/t/jack-hook-issue-and-finding-working-alternative/86039
>>
>> Thanks in advance for any help or suggestions!
>> --
>> _
>> -- 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
>
> --
> _
> -- 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
-- 
_
-- 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] linphone calls not missed due to cause not 487

2020-10-16 Thread Michael Maier
Hi Sergio



On 16.10.20 at 07:54 sergio wrote:

> Sometimes, linphone shows missed calls as missed. Look like asterisk

> replies with cause=487 that time, but I can't understand why.

>

> Grandstream always shows calls as missed ones.

>

> How should I investigate this?

You could try to reproduce it while activating pcap traces and analyze
it afterwards - or you could enable pcap traces on asterisk[1] itself
and just wait for the different issues and compare them.





Regards

Michael



[1] activating pcap traces on asterisk / pjsip

pjsip set logger on

pjsip set logger verbose off

pjsip set logger pcap trace.pcap

You can find the trace.pcap in /var/lib/asterisk/trace.pcap (maybe it's
elsewhere on your installation)

-- 
_
-- 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] linphone calls not missed due to cause not 487

2020-10-16 Thread sergio

On 16/10/2020 10:11, Michael Maier wrote:



Sometimes, linphone shows missed calls as missed.



You could try to reproduce it


I can't reproduce it, it happens less than once a month.


--
sergio.

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