[asterisk-bugs] [JIRA] (ASTERISK-26318) Dial with M(macro-name) needs an optional media bridge but don't answer

Private Name (JIRA) noreply at issues.asterisk.org
Tue Aug 30 21:05:01 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232098#comment-232098 ] 

Private Name commented on ASTERISK-26318:
-----------------------------------------

The gosub and the macro are both the same, when related to this problem. The issue is that in a postdial handler, like U() or M(), the media bridge is not there while either the gosub or the macro executes. It should left to the coder to decide if he needs the mediapath open or not. An there is a way to do it now, using the application Bridge(), it works, I tested it. But, but, it also answers the call, which it should not. Answering the is a business decision, not a technical one. The Bridge() command should not automatically answer the call. In this case, I want to delay XX seconds the 200 OK, but let them talk.
So the solution would be to change the Bridge() command to do what it does and nothing more. Think there is no need for a trace, since we all know what the Bridge() command does by looking at the code.
 

> Dial with M(macro-name) needs an optional media bridge but don't answer
> -----------------------------------------------------------------------
>
>                 Key: ASTERISK-26318
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26318
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Applications/app_dial
>    Affects Versions: 13.10.0
>         Environment: Linux
>            Reporter: Private Name
>            Assignee: Private Name
>
> {noformat}
> [inbound]
> exten => _X.,1,Dial(PJSIP/outbound/sip:${EXTEN}@XX.XX.XX.XX,,M(nobill^${CHANNEL(name)}))
> [macro-nobill]
> exten=> s,1,Wait(30)
> same=n,MacroExit()
> {noformat}
> Inside the macro nobill, we should set a variable that would indicate if media bridging is OK. I need to let the parties talk and wait a certain amount of seconds before I relay back the 200 OK to the caller. This is not possible now. I tried using {{Bridge($\{ARG1\})}} inside the macro above, but the call does get bridged and answered at the same time. Bridge should not answer the call, nobody asked to do so. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list