[asterisk-bugs] [JIRA] (ASTERISK-21722) chan motif behaves wrong

Private Name (JIRA) noreply at issues.asterisk.org
Sat May 18 18:08:01 CDT 2013


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

Private Name commented on ASTERISK-21722:
-----------------------------------------

Kindly look at my entire dialplan below. How can I put the hangup handler somewhere else? It does execute when the Motif call is still on. 

GLOBAL DATA
data=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28


[onsite]
exten => _X.,1,Set(CHANNEL(hangup_handler_push)=hdlr1,s,1(args))
exten => _X.,n(door),GotoIf($[${LOCK(mutexa)}=1]?:salida)
exten => _X.,n(popping),Set(var=${POP(GLOBAL(data))})
exten => _X.,n,Set(gskip=${MYSQL_GSKIP(${var})})
exten => _X.,n,GotoIf($["${gskip}" > "0"]?popping)
exten => _X.,n,GotoIf($["${var}" = ""]?salida)
exten => _X.,n,Set(R=${UNLOCK(mutexa)})
exten => _X.,n,Set(Target=Motif/google${var}/${EXTEN:-11}@voice.google.com)
exten => _X.,n,Verbose(0,Channel Using ${Target})
exten => _X.,n,Dial(${Target},,D(wwwABCD#)r)
exten => _X.,n,Verbose(0,Channel Using ${Target} ${DIALSTATUS})
exten => _X.,n(salida),Hangup()


[hdlr1]
exten => s,1,GotoIf($["${REGEX("[1-9]" ${var:0})}" = "0"]?salida)
exten => s,n,Set(R=${LOCK(mutexa)})
exten => s,n,Set(GLOBAL(data)=${var},${GLOBAL(data)})
exten => s,n,Set(R=${UNLOCK(mutexa)})
exten => s,n,Verbose(0,My channels was ${var} for ${CDR(DST)})
exten => s,n(salida),Return()


                
> chan motif behaves wrong
> ------------------------
>
>                 Key: ASTERISK-21722
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21722
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_motif
>    Affects Versions: 11.3.0
>         Environment: linux 6.1 redhat
>            Reporter: Private Name
>         Attachments: asterisk.txt
>
>
> I am uploading a debug trace. Basically, when my dialer places a call with originate, using chan_local, and then Motif,the channel "thinks" the calls if finished and executes the hangup handler. But the calls is live and well and it can last for hours.
> I know it is weird, but I have the trace and I can reproduce it. 
> The dialer sees the call as Answered on the far end (Motif) and then dials another leg via the same "Local" channel, and I play music on hold.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list