Hi All

When I dial a number it reaches the asterisk switch as [EMAIL PROTECTED]@123.com
what I need to do is to parse the abc and send it to my pstn gateway
as in

exten => _.,2,Dial(SIP/[EMAIL PROTECTED])

this does work but I do have a varying number of numbers before the @

exten => _.,1,Dial(SIP/${EXTEN:0:[EMAIL PROTECTED])

Well can I use some kind of regular expression to take all numbers
before the first @ and send them to the pstn

something like

exten => _.,1,Dial(SIP/${regexp(condition,Exten)[EMAIL PROTECTED])

thx

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to