Kim Hendrikse
2004-Jan-20 06:41 UTC
[Asterisk-Users] Broken macros during transferring call
Hi, I have some issues with the use of macros when dialling. I use a macro, similar to the stdexten macro to dial extensions. When I use the astman program to transfer the recipient of a call made via the macro to meetme for example it appears as if control is transferred into the start state in the context of the caller. Hence the the extension that you are trying to transfer to is lost and the transfer fails. Well.. actually, it's failing today like that when transferring a call made to an iaxclient located at a foreign iax server. Yesterday when I was testing to sip clients located at a foreign iax server it appears as if control was passed to state "2" with the extention in the context of the caller. The second case I was able to work around, the first case is not easy as I seem to loose the extension that one is trying to transfer to. Any clues as to the correct approach to solve this? Yesterday I solved it by making sure that all calls are made by macros or gotos that never return and then adding exten => _.,2,Goto(${CONTEXT},${EXTEN},1) into the default context, however if it returns into the default context with the start state like it does when I transfer a call made to a foreign iaxclient I am unable to fix this. - Kim Hendrikse