In article <[EMAIL PROTECTED]>,
barney <[EMAIL PROTECTED]> wrote:
>
> I`m trying to add some prefix before my local extensions, when my calls are
> routed to ZAP trunk.
>
> (i.e.: my local extension is 3333, and i would like to send request to my
> telco provider
> with source phone number 5555553333)
>
> Is there any way to do this ? I just know to add prefix (via prefix
> application) to the
> called number (but not calling).
I haven't tried this, but the first thing I would try is this (replace
xxxx with the extension pattern you are using):
exten => xxxx,1,SetCIDNum(${PREFIX}${CALLERIDNUM})
exten => xxxx,2,Dial(.....)
where PREFIX is a global variable containing the prefix you want to prepend.
See http://www.voip-info.org/wiki-Asterisk+cmd+SetCIDNum
You may need the 'a' flag to SetCIDNum too, depending on your application.
> PS: sorry for my poor english
It's much better than my non-existent Slovakian!
Cheers
Tony
--
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users