I have 3 SIP clients (3001, 3002, 3003).
-- Suppose, 3001 is the user, and 3002 & 3003 are the operators. When 3001 dials 9801, the conversation between the user and operator has to be recorded ( which it records properly ). The problem in my prototype is,,,
So, what I need is to make my prototype to disconnect the call from operator side as well and not include the ringback tone while recording the call conversation between user and operator. The call needs to be recorded only after the operator picks up the call. Kindly, please help me in this!! You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
You should provide code and logs to support your report such that we might make informed and precise suggestions. On Mon, 17 Oct 2016 at 09:40 Manjil shrestha <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Note also that the logs should be at TRACE level and your code should have any non-essential pieces removed so that it is clear. On Mon, 17 Oct 2016 at 10:18 Ben Langfeld <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
These are the trace level logs I receive while disconnecting from operator side:
Event: SoftHangupRequest Privilege: call,all Channel: SIP/3001-00000005 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: SIP/3002 CallerIDName: unknown ConnectedLineNum: 3002 ConnectedLineName: <unknown> Language: en AccountCode: Context: adhearsion-redirect Exten: 1 Priority: 1 Uniqueid: 1476766302.10 Linkedid: 1476766285.9 Cause: 16 Event: Hangup Privilege: call,all Channel: SIP/3001-00000005 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: SIP/3002 CallerIDName: unknown ConnectedLineNum: 3002 ConnectedLineName: <unknown> Language: en AccountCode: Context: adhearsion-redirect Exten: 1 Priority: 1 Uniqueid: 1476766302.10 Linkedid: 1476766285.9 Cause: 16 Cause-txt: Normal Clearing These are the trace level logs I receive when I disconnect from user side, after already disconnecting from operator: Event: VarSet Privilege: dialplan,all Channel: SIP/3002-00000004 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 3002 CallerIDName: <unknown> ConnectedLineNum: SIP/3002 ConnectedLineName: unknown Language: en AccountCode: Context: adhearsion-redirect Exten: 1 Priority: 1 Uniqueid: 1476766285.9 Linkedid: 1476766285.9 Variable: AGISTATUS Value: HANGUP Event: SoftHangupRequest Privilege: call,all Channel: SIP/3002-00000004 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 3002 CallerIDName: <unknown> ConnectedLineNum: SIP/3002 ConnectedLineName: unknown Language: en AccountCode: Context: adhearsion-redirect Exten: 1 Priority: 1 Uniqueid: 1476766285.9 Linkedid: 1476766285.9 Cause: 16 On Monday, 17 October 2016 18:04:07 UTC+5:45, Ben Langfeld wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
You have trimmed these logs. Please don't do that. Please provide full Adhearsion TRACE logs without editing. Enviado do meu iPhone -- You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Here is the full trace level log. Please have a look..
-- http://pastebin.com/y4uXY6wf On Tuesday, 18 October 2016 17:40:24 UTC+5:45, Ben Langfeld wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
You still havn't provided your code, but from the log I suspect your usage of record is incorrect and you're actually doing something like this: dial "foo" record Here you are not recording after connection, you are recording after the joined calls are hung up. You would have to do an async recording, perhaps in a pre_join callback on your dial. On Wed, 19 Oct 2016 at 02:45 Manjil shrestha <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
def dial_op(num)
This is the part of code tha I used to dial and record only when the call is answered. The call goes well but the record does not operate. On Thursday, 20 October 2016 04:12:59 UTC+5:45, Ben Langfeld wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Async #dial is not a thing. My previous explanation holds. http://www.rubydoc.info/github/adhearsion/adhearsion/Adhearsion/CallController/Dial On Thu, 20 Oct 2016 at 01:17 Manjil shrestha <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Manjil shrestha
What Ben Langfeld is trying to explain to you is that you can’t do the record after the dial, because the dial doesn’t return until the call disconnects. You’re effectively trying to record *after* the call has hung up.
Try something like this: record :async => true do |event| # This code will execute when the recording is complete (when the call ends) logger.info “Your recording is at #{event.recording,uri}” end dial “SIP/#{@dial_num}” Let us know if that helps. /BAK/ -- Ben Klang Principal/Technology Strategist, Mojo Lingo +1.404.475.4841 Mojo Lingo -- Voice applications that work like magic Twitter: @MojoLingo
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Yes, Thank You,, it does the recording but still it records the ringback tone too which I don't want to !! Any help on this!!
-- On Thursday, 20 October 2016 22:58:07 UTC+5:45, Ben Klang wrote:
You received this message because you are subscribed to the Google Groups "Adhearsion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |