Question

I am trying to redirect a call using Asterisk.NET Library. But it doesn't work as I expected. For Eg: If A calls B and I transfer it to C, Source A will be disconnected, and B and C will be connected. This is my code snippet for transferring the call.

            RedirectAction ra = new RedirectAction(sip_channel_of_B, "internal", 1000 , 1);
            ManagerResponse rr = manager.SendAction(ra);
Was it helpful?

Solution

I solved it myself by changing the channel. RedirectAction expects the source channel; not the destination channel....

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top