Issue with $rtpaudioqos in Conference call

I am getting issues with $rtpaudioqos log printing in Master.csv

Scenario 1 :

  1. Agent A started the conference
  2. Invited Agent B via call files
  3. Agent A and Agent B are in conference
    4. Agent A hangup conference (I have written Hangup handler to terminate conference)
    5. $rtpaudioqos is getting printed perfectly in log file

Scenario 2 : issue arises in this scenario

  1. Agent A started the conference
  2. Invited Agent B via call files
  3. Agent A and Agent B are in conference
    4. Agent B hangup conference
    5. $rtpaudioqos is not printed

I am using h extension as below for logging
exten => h,1,Set(CDR(userfield)= Quality:${RTPAUDIOQOS} R/W:${CHANNEL(audioreadformat)}/${CHANNEL(audiowriteformat)} N:${CHANNEL(audionativeformat)} Priority : ${PRIORITY})

I am curious to know that why $rtpaudioqos is not logged in Scenario 2 !!!

You haven’t shown the full dialplan or how you are originating. If the channel doesn’t go to the dialplan, for example, then the ‘h’ extension won’t work. This is why it’s better to use hangup handlers[1] since they follow the channel and will execute even if dialplan isn’t entered.

[1] Hangup Handlers - Asterisk Project - Asterisk Project Wiki

Hi , I am originating using call files as below
#To add 9003 into conference
Channel: SIP/9003
MaxRetries: 0
RetryTime: 30
WaitTime: 20

Context: DialOut
Extension: s
Priority: 1

Callerid: 1001
#Create hangupcause handler
Set: CHANNEL(hangup_handler_push)=ASC_HANGUP_CAUSE_HANDLER,s,1

h extension is getting executed but , there is no value from $rtpaudioqos. see below logs where I highlighted h extension log

== Conference terminate Subroutine
– Executing [s@CONFERENCE_TERMINATE:2] Set(“SIP/9003-00000001”, “GLOBAL(HANGUP_STATUS)=1”) in new stack
== Setting global variable ‘HANGUP_STATUS’ to ‘1’
– Remote UNIX connection
– Channel SIP/1001-00000000 left ‘softmix’ base-bridge <6ceb15a7-4a51-4903-a007-ec62642f907d>
– Stopped music on hold on SIP/1001-00000000
– <SIP/1001-00000000> Playing ‘conf-kicked.gsm’ (language ‘en’)
– Remote UNIX connection disconnected
– <CBAnn/1-00000000;1> Playing ‘confbridge-leave.gsm’ (language ‘en’)
– Executing [s@CONFERENCE_TERMINATE:3] Set(“SIP/9003-00000001”, "GLOBAL(WCD_DUMMY_VAR)=1
– ") in new stack
== Setting global variable ‘WCD_DUMMY_VAR’ to '1
== ’
– Executing [s@CONFERENCE_TERMINATE:4] Set(“SIP/9003-00000001”, “GLOBAL(WCD_DUMMY_VAR)=0”) in new stack
== Setting global variable ‘WCD_DUMMY_VAR’ to ‘0’
– Executing [s@CONFERENCE_TERMINATE:5] ExecIf(“SIP/9003-00000001”, “1?Gosub(HANGUP_ALL,s,1)”) in new stack
– Remote UNIX connection
– Channel CBAnn/1-00000000;2 left ‘softmix’ base-bridge <6ceb15a7-4a51-4903-a007-ec62642f907d>
– Remote UNIX connection disconnected
== Spawn extension (WCD-APP, 1111, 9) exited non-zero on ‘SIP/1001-00000000’
Executing [h@WCD-APP:1] Set(“SIP/1001-00000000”, “CDR(userfield)= Quality: R/W:alaw/gsm N:(alaw) Priority : 1”) in new stack

You’re using chan_sip so I don’t know, others may have input on it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.