[asterisk-dev] Patch: Manager api, Posibility to send two channels in different direcitons

Olle E. Johansson oej at edvina.net
Tue Sep 8 09:45:22 CDT 2009


8 sep 2009 kl. 15.59 skrev Håkon Nessjøen:

> Hi,
>
> I've just made a patch for manager.c. This patch gives the user the  
> posibility to send two connected channels in two different  
> directions with AMI.
>
> Example:
>
> User1 calls user2.
>
> Web interface wants to put user1 in a parking extension, and user2  
> in a dial extension.
>
> Web interface can with this patch issue the follwing manager api  
> request:
>
> Action: Redirect
> Channel: SIP/user1-chan
> Context: parkinglot
> Extension: 123
> Priority: 1
> ExtraChannel: SIP/user2-chan
> ExtraContext: dialout
> ExtraExtension: 12345678
> ExtraPriority: 1
>
> In before the patch, you had ExtraChannel, but it transfered both  
> channels to the same context/extension. Sometimes this is not what  
> you want.
>
> If anyone could help me test this, and or give me feedback, please do!


Before that, please help us by follow the routine we have for  
submitting patches to Asterisk:

1. Register an account on issues.digium.com
2. Follow the instruction to sign the Digium license agreement
3. Open an issue for your patch, upload your patch

Then we'll be happy to look at it and discuss it. Due to licensing  
requirements, we can't really accept or look at source contributed via  
the mailing list.

Looking forward to seeing your patch in the bug tracker. If you have  
any problems, ask here on the list or find us in #asterisk-dev or  
#asterisk-bugs on IRC.

Thanks for supporting Asterisk development!

/Olle






More information about the asterisk-dev mailing list