Hi there, whenever I use a macro to dial out I see only "s" recorded in the dst field of the CDR. Is there anyway to get around that problem except for not using a macro? Example: [default] exten => 1234,1,macro(dial-out) [macro-dial-out] exten => s,1,Dial(SIP/test,30,r) Now, I can probably catch the "unavailable" and the "busy" case using the MACRO_OFFSET variable, but what do I do if the caller hangs up himself? The Dial option 'g' won't help, and I always end up in default,s (although that is not even defined) and here's my ugly 's' that shows in the dst field... :-( Cheers, Philipp
Philipp von Klitzing wrote:> Hi there, > > whenever I use a macro to dial out I see only "s" recorded in the dst > field of the CDR. Is there anyway to get around that problem except for > not using a macro? > > Example: > ) > >Try to match every extension before dialing out instead, using "s" is a bad thing for CDRs. > [default] > exten => 1234,1,macro(dial-out) > [macro-dial-out] > exten => s,1,Dial(SIP/test,30,r) [default] exten => 1234,1,macro(dial-out,${EXTEN}) [macro-dial-out] exten => s,1,goto(dial-out2,${ARGV1}) [dial-out2] exten => _X.,1,Dial(SIP/test,30,r) Of course, you could to a goto instead of macro in the first place, but there might be another reason that you want to use a macro... Now, the last extension used is "1234" instead of "s". /O
Seemingly Similar Threads
- regexten & regcontext broken for SIP?
- [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros
- [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros
- [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros
- [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros