If the diversion takes place in asterisk then the dialplan can set a variable before it diverts and then use that variable at the destination of the diversion. -- Jim Dickenson mailto:[email protected]
CfMC http://www.cfmc.com/ > From: Julian Lyndon-Smith <[email protected]> > Reply-To: <[email protected]>, Asterisk Users Mailing List - Non-Commercial > Discussion <[email protected]> > Date: Wed, 17 Dec 2008 11:07:05 +0000 > To: Asterisk Users Mailing List - Non-Commercial Discussion > <[email protected]> > Subject: Re: [asterisk-users] RDNIS and asterisk > > No, ${exten} is the final destination number > > myphone calls 123456, which is diverted to 22334455 would givc an > ${exten} of 22334455, but I wanted to know the 123456. > > Julian > Andrew Thomas wrote: >> Isn't that the ${exten} number? In other words, the number called. >> >> >> >> -->> -----Original Message----- >> -->> From: [email protected] >> [mailto:asterisk-users- >> -->> [email protected]] On Behalf Of Tony Mountifield >> -->> Sent: 17 December 2008 10:17 >> -->> To: [email protected] >> -->> Subject: Re: [asterisk-users] RDNIS and asterisk >> -->> >> -->> In article <[email protected]>, >> -->> Julian Lyndon-Smith <[email protected]> wrote: >> -->> > I have a couple of numbers that are diverted to a number that is >> -->> > conected to an isdn30 card, running asterisk 1.4. >> -->> > >> -->> > eg. >> -->> > >> -->> > 123456 => 22334455 >> -->> > 654321 => 22334455 >> -->> > >> -->> > What I would like to know is the number of the orginal number >> -->> dialled >> -->> > (123456 or 654321). I thought that RDNIS was the answer, but it >> is >> -->> > always coming up blank. >> -->> > >> -->> > When I did a debug on the pri span, I saw the following message >> -->> > >> -->> > Unable to handle ROSE operation 15 >> -->> > >> -->> > is this the cause of my problem ? >> -->> >> -->> Don't know about that error, but in the pri debug output, did you >> see >> -->> any mention of the originally dialled number, or only the >> translated >> -->> number? >> -->> >> -->> If the originally dialled number is not presented in an >> information >> -->> element somewhere, then it would be a bit of a challenge for >> Asterisk >> -->> to infer it! :-) >> -->> >> -->> Just found this message, which seems to refer to the same issue: >> -->> >> http://lists.digium.com/pipermail/asterisk-users/2007-July/191858.html >> -->> >> -->> If your original number does appear in a ROSE IE simlar to that >> shown >> -->> in >> -->> the above message, then it may be that libpri needs updating to >> handle >> -->> it. >> -->> >> -->> Can you get a second destination number on the same ISDN30 and >> then >> -->> divert one of the original numbers to that instead? >> -->> >> -->> Cheers >> -->> Tony >> -->> -- >> -->> Tony Mountifield >> -->> Work: [email protected] - http://www.softins.co.uk >> -->> Play: [email protected] - http://tony.mountifield.org >> -->> >> -->> _______________________________________________ >> -->> -- 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 >> >> _______________________________________________ >> -- 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 >> >> > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________ > -- 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 _______________________________________________ -- 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
