Olivier CALVANO
2012-Apr-04 20:50 UTC
[asterisk-users] Change extension for international ?
Hi i am search a solution for "change" the number called. Sample: I have a Linksys SPA942 connected in SIP with my server. When this phone call a number: 043112xxxx automatiquely change in 3343112xxxx because my carrier want a number in international format. It's possible ? thanks Olivier
Danny Nicholas
2012-Apr-04 20:53 UTC
[asterisk-users] Change extension for international ?
Simple Exten => _043112.,1,Dial(SIP/blah,3343112${EXTEN:6}) -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier CALVANO Sent: Wednesday, April 04, 2012 3:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Change extension for international ? Hi i am search a solution for "change" the number called. Sample: I have a Linksys SPA942 connected in SIP with my server. When this phone call a number: 043112xxxx automatiquely change in 3343112xxxx because my carrier want a number in international format. It's possible ? thanks Olivier -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On 04/04/2012 04:50 PM, Olivier CALVANO wrote:> Hi > > i am search a solution for "change" the number called. > > Sample: > > I have a Linksys SPA942 connected in SIP with my server. > > When this phone call a number: 043112xxxx > automatiquely change in 3343112xxxx > > because my carrier want a number in international format. > > It's possible ? >Yes. You can use ${EXTEN:N} to strip the leading N digits off the dial extension. Probably something like: exten => 043122XXXX,1,Goto(33${EXTEN:1}) or exten => 043122XXXX,1,Dial(SIP/33${EXTEN:1}@your-provider)