Re: [asterisk-dev] Dialplan pre-bridge handlers

2020-07-18 Thread Nikša Baldun
sk, that's really only going to happen if you're willing to fund the development, or you can convince Sangoma there's a business case. On Fri, Jul 17, 2020 at 8:17 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Hello Jim, thanks for the reply. Consider the following scena

Re: [asterisk-dev] Dialplan pre-bridge handlers

2020-07-21 Thread Nikša Baldun
h limited documentation, but this looks an order of magnitude more difficult. On 21. 07. 2020. 10:58, Joshua C. Colp wrote: On Tue, Jul 21, 2020 at 3:52 AM Nikša Baldun mailto:i...@voxdiversa.hr>> wrote: Thanks for the reply, Joshua. It would definitely be useful.

[asterisk-dev] Dialplan pre-bridge handlers

2020-07-17 Thread Nikša Baldun
Hello, I have been using Asterisk for years, and the one thing that I believe is sorely missing, but I can't find any mention of it on the Internet, and that is pushable pre-bridge handlers. In current setup, there are following limitations: 1. Pre-bridge handler can only be attached to the

Re: [asterisk-dev] Dialplan pre-bridge handlers

2020-07-17 Thread Nikša Baldun
logic. In fact I'm pretty sure we do that in our Local/ channel handler for queue agents. On Fri, Jul 17, 2020 at 5:04 AM Nikša Baldun http://lists.digium.com/mailman/listinfo/asterisk-dev>> wrote: >/Hello, />//>/I have been using Asterisk for years, and the one thing that I belie

Re: [asterisk-dev] Dialplan pre-bridge handlers

2020-07-21 Thread Nikša Baldun
up. I am thinking, pre-bridge handlers already exist, and methodology for pushing handlers onto a channel already exists. So one could figure it out with some effort. Or am I being naive? On 20. 07. 2020. 16:29, Joshua C. Colp wrote: On Fri, Jul 17, 2020 at 6:04 AM Nikša Baldun <mailt

Re: [asterisk-dev] Dialplan pre-bridge handlers

2020-07-21 Thread Nikša Baldun
difficult. On 21. 07. 2020. 10:58, Joshua C. Colp wrote: On Tue, Jul 21, 2020 at 3:52 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Thanks for the reply, Joshua. It would definitely be useful. I took a look at FreePBX code to see how they handle call recordings in m

Re: [asterisk-dev] Missing queue dialplan functions

2021-02-14 Thread Nikša Baldun
How would AGI help one to get this information, apart from parsing text output and log files? On 14. 02. 2021. 07:52, JP Loh wrote: Is AGI not an option? On Sun, Feb 14, 2021 at 1:44 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Hello, there is currently no way (AFAI

Re: [asterisk-dev] Missing queue dialplan functions

2021-02-21 Thread Nikša Baldun
Not having received any input on this, and being pressed for time, I went for the simplest route and modified QUEUE_MEMBER. I'll submit the patch when I find the time. Meanwhile, it is available on request. Nik On 14. 02. 2021. 09:16, Nikša Baldun wrote: How would AGI help one to get

[asterisk-dev] Missing queue dialplan functions

2021-02-13 Thread Nikša Baldun
Hello, there is currently no way (AFAIK) to get a list of all queues from dialplan, and also no way to get a pause reason for a member. I am going to add a couple of dialplan functions for that. The first one should obviously be called QUEUE_LIST and accept no parameters. For the second one,

Re: [asterisk-dev] ODBC and commas

2021-08-15 Thread Nikša Baldun
Tried QUOTE() where? I don't see where it can be applied. On 15. 08. 2021. 09:29, Dennis Buteyn wrote: On 8/13/21 9:51 AM, Nikša Baldun wrote: Hello, does anyone know, what is the recommended way to handle commas with func_odbc? There is a parameter “escapecommas” in func_odbc.conf

[asterisk-dev] ODBC and commas

2021-08-13 Thread Nikša Baldun
Hello, does anyone know, what is the recommended way to handle commas with func_odbc? There is a parameter “escapecommas” in func_odbc.conf, but regardless of its value, having a comma in DB field breaks ODBC_FETCH function. The text after the comma is assigned to the next field instead of

Re: [asterisk-dev] Detecting B-leg channels

2021-08-24 Thread Nikša Baldun
Hello, I am using chan_pjsip. On 24. 08. 2021. 18:55, George Joseph wrote: On Mon, Aug 23, 2021 at 4:29 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Hello, I am trying to modify bridge.c (function ast_bridge_transfer_attended) in order to send channels

Re: [asterisk-dev] Detecting B-leg channels

2021-08-24 Thread Nikša Baldun
Aug 24, 2021 at 11:22 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Hello, I am using chan_pjsip. Check res_pjsip_refer.c  you may be able to intercept both channels there. On 24. 08. 2021. 18:55, George Joseph wrote: On Mon, Aug 23, 2021 at 4:29 AM

Re: [asterisk-dev] Detecting B-leg channels

2021-08-24 Thread Nikša Baldun
Yes, I suspected as much. I've seen that app_dial keeps a list of outbound channels, but doesn't store it anywhere. So that's a dead end, pretty much. On 24. 08. 2021. 20:45, George Joseph wrote: On Tue, Aug 24, 2021 at 12:20 PM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote:

Re: [asterisk-dev] Detecting B-leg channels

2021-08-24 Thread Nikša Baldun
 could handle, or even straight dialplan using a combination of app_dial, pre-dial handlers, and such. On Mon, Aug 23, 2021 at 5:29 AM Nikša Baldun <mailto:i...@voxdiversa.hr>> wrote: Hello, I am trying to modify bridge.c (function ast_bridge_transfer_attended)

[asterisk-dev] Detecting B-leg channels

2021-08-23 Thread Nikša Baldun
Hello, I am trying to modify bridge.c (function ast_bridge_transfer_attended) in order to send channels involved in SIP attended transfer to the dialplan. If both transferee and transfer target are bridged, that is relatively easy. However, if transfer target is ringing, I don't know how to

Re: [asterisk-dev] ODBC and commas

2021-08-16 Thread Nikša Baldun
It seems that AEL native syntax can't be used with ODBC_FETCH. Perhaps this helps someone in the future. On 15. 08. 2021. 16:06, Nikša Baldun wrote: Tried QUOTE() where? I don't see where it can be applied. On 15. 08. 2021. 09:29, Dennis Buteyn wrote: On 8/13/21 9:51 AM, Nikša Baldun wrote: He

[asterisk-dev] A question about attended transfers

2021-10-15 Thread Nikša Baldun
Hello, I am writing a patch which allows running channels involved in attended transfer through dialplan. (transferee) <-> (to_transferee)(to_transfer_target) <-> (transfer_target(s)) Am I correct in the following assumptions: - When attended transfer is executed, "to_transferee" channel

[asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread Nikša Baldun
Hello, I see the following in res_pjsip_pubsub.c:    if (expires_header->ivalue == 0) {        ast_debug(1, "Subscription request from endpoint %s rejected. Expiration of 0 is invalid\n",            ast_sorcery_object_get_id(endpoint));

Re: [asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread Nikša Baldun
bscription with expire:0 should get at least ONE notify, right? I’ve just that to check the status without setting up a dialog. It is not invalid. Report this as a bug. /O 25 okt. 2021 kl. 09:22 skrev Nikša Baldun : Hello, I see the following in res_pjsip_pubsub.c:    if (expires_header-&g

Re: [asterisk-dev] Running channels through dialplan on attended transfer

2023-03-02 Thread Nikša Baldun
already been completed (and, based on your input, autoservice should be used). This is trickier to implement, but I'll try. Best regards, On Tuesday, 28. February 2023. 14:44:25 (+01:00), Joshua C. Colp wrote: On Tue, Feb 28, 2023 at 9:35 AM Nikša Baldun wrote: Hello, information available

Re: [asterisk-dev] Running channels through dialplan on attended transfer

2023-03-02 Thread Nikša Baldun
wrote: On Thu, Mar 2, 2023 at 5:50 AM Nikša Baldun wrote: Hi Joshua, thanks for the answer. Meanwhile, I've found that the debug message about competing threads happens because I am using Fast AGI, and two threads call AGI from the same channel. I assume this could potentially be resolved if I

[asterisk-dev] Test

2023-02-28 Thread Nikša Baldun
Sorry for spamming, but my messages are not getting through to the list so I am testing with a simple email. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE

[asterisk-dev] Running channels through dialplan on attended transfer

2023-02-28 Thread Nikša Baldun
NULL, b_channel, "attended_target_connect,s,1", 0); ast_channel_unref(b_channel); } } } } return 0; } -- Nikša Baldun -- __

[asterisk-dev] Running channels through dialplan on attended transfer

2023-02-28 Thread Nikša Baldun
", 0);                ast_channel_unref(b_channel);            }        }    }     }     return 0; } -- Nikša Baldun -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev

[asterisk-dev] Running channels through dialplan on attended transfer

2023-02-28 Thread Nikša Baldun
NULL, b_channel, "attended_target_connect,s,1", 1); ast_channel_unref(b_channel); } } } } return 0; } -- Nikša Baldun Vox Diversa Sjedište: IX Trokut 1 10020 Zagreb Ured: Ilica