[Asterisk-Users] manipulating with numbers - StripMSD, Prefix

Dawid Mielnik D.Mielnik at elka.pw.edu.pl
Wed Jan 7 05:14:37 MST 2004


Hi again,

Sorry, completely forgot about setting the priorities - all is OK

Regards,

Dave

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Dawid Mielnik
Sent: Wednesday, January 07, 2004 1:06 PM
To: asterisk-users at 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 at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list