Hi, How can I have A*k convert a call from +441793xxxxxx to Dial 00441793xxxxxx instead? With the "_+." Below I can "catch" the call, but EXTEN doesn't get set as expected.. and then I need to figure out how to pass the call onto the outgoing-pstn context. Not sure if a Goto would work here... [outgoing-pstn-international] exten => _+.,1,Set(EXTEN=00${EXTEN:+1}) exten => _+.,2,NoOp(test line: ${EXTEN}) [outgoing-pstn] exten => _0.,1,ExecIF($["${RECORDOUTBOUND}"="TRUE"],Monitor,wav|${TIMESTAMP}-${CA LLERID(num)}-${EXTEN}-${UNIQUEID}.WAV) ;exten => _0.,2,Set(CALLERID(number)=${PSTN_GLOBAL}${CALLERID(num):-2}) exten => _0.,2,ExecIF($[${LEN(${CALLERID(num)})}=4],Set,CALLERID(number)=${PSTN_G LOBAL}${CALLERID(num):-2}) exten => _0.,3,Dial(${TRUNK}/${EXTEN},,W) exten => _0.,4,Congestion exten => _0.,5,Goto(outgoing-zen-out-0,${EXTEN},1) exten => _0.,103,Busy exten => _0.,104,Goto(outgoing-zen-out-0,${EXTEN},1) Adrian Marsh
On 8/30/07, Adrian Marsh <Adrian.Marsh at ubiquisys.com> wrote:> [outgoing-pstn-international] > exten => _+.,1,Set(EXTEN=00${EXTEN:+1}) > exten => _+.,2,NoOp(test line: ${EXTEN})Setting ${EXTEN} won't work, but Goto(context,00${EXTEN:1},priority) will: [foo] exten => 7997,1,Answer exten => 7997,n,Set(FOO=+1441793xxxxxx) exten => 7997,n,Goto(foo,00${FOO:1},1) exten => 7997,n,Hangup exten => _0.,1,NoOp(${EXTEN}) exten => _0.,n,Hangup -- Executing [7997 at from-internal-admin:1] Answer("SIP/427-9dd49740", "") in new stack -- Executing [7997 at from-internal-admin:2] Set("SIP/427-9dd49740", "FOO=+1441793xxxxxx") in new stack -- Executing [7997 at from-internal-admin:3] Goto("SIP/427-9dd49740", "foo|001441793xxxxxx|1") in new stack -- Goto (foo,001441793xxxxxx,1) -- Executing [001441793xxxxxx at foo:1] NoOp("SIP/427-9dd49740", "001441793xxxxxx") in new stack -- Executing [001441793xxxxxx at foo:2] Hangup("SIP/427-9dd49740", "") in new stack -- j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070830/0cead1ce/attachment.htm
----- Original Message ----- From: "Adrian Marsh" <Adrian.Marsh at ubiquisys.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Thursday, August 30, 2007 2:34 PM Subject: [asterisk-users] How to handle "+" prefix> Hi, > > How can I have A*k convert a call from +441793xxxxxx to Dial > 00441793xxxxxx instead? > With the "_+." Below I can "catch" the call, but EXTEN doesn't get set > as expected.. and then I need to figure out how to pass the call onto > the outgoing-pstn context. Not sure if a Goto would work here... > > > [outgoing-pstn-international] > exten => _+.,1,Set(EXTEN=00${EXTEN:+1}) > exten => _+.,2,NoOp(test line: ${EXTEN}) > > [outgoing-pstn] > exten => > _0.,1,ExecIF($["${RECORDOUTBOUND}"="TRUE"],Monitor,wav|${TIMESTAMP}-${CA > LLERID(num)}-${EXTEN}-${UNIQUEID}.WAV) > ;exten => _0.,2,Set(CALLERID(number)=${PSTN_GLOBAL}${CALLERID(num):-2}) > exten => > _0.,2,ExecIF($[${LEN(${CALLERID(num)})}=4],Set,CALLERID(number)=${PSTN_G > LOBAL}${CALLERID(num):-2}) > exten => _0.,3,Dial(${TRUNK}/${EXTEN},,W) > exten => _0.,4,Congestion > exten => _0.,5,Goto(outgoing-zen-out-0,${EXTEN},1) > exten => _0.,103,Busy > exten => _0.,104,Goto(outgoing-zen-out-0,${EXTEN},1) > > Adrian MarshWhy not just use Exten => _+.,1,Goto(011${EXTEN:1}) Exten => _011.,1,Dial(......
Not being concerned does not == ignorant.4 Benny Amorsen wrote:>>>>>> "AF" == Anthony Francis <anthonyf at rockynet.com> writes: >>>>>> > > AF> I knew that was true about GSM networks outside of the US, but to > AF> be honest, I am not concerned with those networks ^^. > > >>> On 8/31/07, Anthony Francis <anthonyf at rockynet.com> wrote: >>> > > >>>> Mindfully wanting to use a + instead of knowing the international >>>> access code seems like willful ignorance to me. >>>> > > Now who is being willfully ignorant? > > > /Benny > > > > _______________________________________________ > --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 >-- Thank you and have a wonderful day, Anthony Francis Rockynet VOIP (303) 444-7052 opt 2 voip at rockynet.com
nope! ^^ I have never been to Europe. Dovid B wrote:> <snip> > >> How then does a users phone dials this. I have never seen a phone with + >> on the keypad, nor have I ever seen dail plan logic in a phone that >> could correctly handle the variable length issue of international >> numbers in order to do a rewrite and send the + in front. >> > </snip> > > Then you must have never been to Ireland ;) > > > _______________________________________________ > --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 >-- Thank you and have a wonderful day, Anthony Francis Rockynet VOIP (303) 444-7052 opt 2 voip at rockynet.com