Dawid Mielnik
2004-Jan-07 05:06 UTC
[Asterisk-Users] manipulating with numbers - StripMSD, Prefix
Hello, I can not seem to be able to get StripMSD and Prefix to work for me in extensions.conf. This is an example of what I have: exten => _050.,1,StripMSD,1 exten => _50.,Prefix,01051 exten => _001051.,1,Dial(${TRUNK2}/${EXTEN}) exten => _001051.,2,Busy exten => _001051.,102,Busy What I want to achieve is to call 001051501657887 on TRUNK2 when dialing 0501657887. dialing 0501657887: -- Executing StripMSD("SIP/3267915-7e9a", "1") in new stack ...this is the only thing I get on the console, stuck ? dialing 501657887: -- Executing StripMSD("SIP/3267915-7e9a", "1") in new stack -- Executing StripMSD("SIP/3267915-4297", "1") in new stack -- Executing Prefix("SIP/3267915-285a", "001051") in new stack -- Prepended prefix, new extension is 001051501657887 -- Executing Busy("SIP/3267915-285a", "") in new stack == Spawn extension (demo, 001051501657887, 2) exited non-zero on 'SIP/3267915-285a' ...the call fails dialing 0010515016571887: -- Executing Dial("SIP/3267915-43af", "Zap/g2/001051501657887") in new stack -- Called g2/001051501657887 -- Zap/32-1 is making progress passing it to SIP/3267915-43af -- Hungup 'Zap/32-1' - the call gets through. My question, how to manipulate with 05016576887 to obtain 001051657887 ? - seems like very trivial but doesent want to work for me. Thanks Dave
Dawid Mielnik
2004-Jan-07 05:14 UTC
[Asterisk-Users] manipulating with numbers - StripMSD, Prefix
Hi again, Sorry, completely forgot about setting the priorities - all is OK Regards, Dave -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Dawid Mielnik Sent: Wednesday, January 07, 2004 1:06 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] manipulating with numbers - StripMSD, Prefix Hello, I can not seem to be able to get StripMSD and Prefix to work for me in extensions.conf. This is an example of what I have: exten => _050.,1,StripMSD,1 exten => _50.,Prefix,01051 exten => _001051.,1,Dial(${TRUNK2}/${EXTEN}) exten => _001051.,2,Busy exten => _001051.,102,Busy What I want to achieve is to call 001051501657887 on TRUNK2 when dialing 0501657887. dialing 0501657887: -- Executing StripMSD("SIP/3267915-7e9a", "1") in new stack ...this is the only thing I get on the console, stuck ? dialing 501657887: -- Executing StripMSD("SIP/3267915-7e9a", "1") in new stack -- Executing StripMSD("SIP/3267915-4297", "1") in new stack -- Executing Prefix("SIP/3267915-285a", "001051") in new stack -- Prepended prefix, new extension is 001051501657887 -- Executing Busy("SIP/3267915-285a", "") in new stack == Spawn extension (demo, 001051501657887, 2) exited non-zero on 'SIP/3267915-285a' ...the call fails dialing 0010515016571887: -- Executing Dial("SIP/3267915-43af", "Zap/g2/001051501657887") in new stack -- Called g2/001051501657887 -- Zap/32-1 is making progress passing it to SIP/3267915-43af -- Hungup 'Zap/32-1' - the call gets through. My question, how to manipulate with 05016576887 to obtain 001051657887 ? - seems like very trivial but doesent want to work for me. Thanks Dave _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
Tilghman Lesher
2004-Jan-07 09:26 UTC
[Asterisk-Users] manipulating with numbers - StripMSD, Prefix
On Wednesday 07 January 2004 06:06, Dawid Mielnik wrote:> Hello, > > I can not seem to be able to get StripMSD and Prefix to work for me > in extensions.conf. This is an example of what I have: > > exten => _050.,1,StripMSD,1 > exten => _50.,Prefix,01051 > > exten => _001051.,1,Dial(${TRUNK2}/${EXTEN}) > exten => _001051.,2,Busy > exten => _001051.,102,Busy > > What I want to achieve is to call 001051501657887 on TRUNK2 when > dialing 0501657887.Here's an idea - don't use StripMSD and Prefix anymore, as there are better options now: exten => _050.,1,Dial(${TRUNK2}/001051${EXTEN:1}) exten => _050.,2,Busy -Tilghman
Looks like you are shy a zero Try exten => _50.,Prefix,001051 At 12:06 07/01/04, you wrote:>Hello, > >I can not seem to be able to get StripMSD and Prefix to work for me in >extensions.conf. This is an example of what I have: > >exten => _050.,1,StripMSD,1 >exten => _50.,Prefix,01051 > >exten => _001051.,1,Dial(${TRUNK2}/${EXTEN}) >exten => _001051.,2,Busy >exten => _001051.,102,Busy > >What I want to achieve is to call 001051501657887 on TRUNK2 when dialing >0501657887.