Hi, Works like a charm. Anyway I will keep Testing and hopefully won't have any issue with it working intermittently. Regards, Girish On 7/28/09, Domjan Attila <adomjan at tvnet.hu> wrote: > > Hi, > try a Wait(0.2) in the dialplan in the 1st priority, after it check the > variable > > Attila > > On Tue, 2009-07-28 at 11:41 -0400, Girish Agarwal wrote: > > Joseph, > > I tried your suggestion of displaying the Channel > > Variables while on call, SS7_ORIG_CALLED_NUM is populated correctly > > for extensions and is not set when the Voicemail Pilot Number > > 9549776740 is dialed:- > > My Challenge is what do I do to invoke VoicemailMain if > > Pilot Number is Dialed and VoiceMail when the Extension is dialed. > > In the GotoIf I just need to check if the > > SS7_ORIG_CALLED_NUM exists in the call. If it Exists then extension > > was dialed and if it does not exist thatn pilot number was dialed. > > > > exten => _19549776740,1,GotoIf(${SS7_ORIG_CALLED_NUM}?vm:vmm) > > exten => _19549776740,n(vmm),VoicemailMain(${CALLERID(num)}@default) > > exten => _19549776740,n,Hangup() > > exten => _19549776740,n(vm),VoiceMail(${SS7_ORIG_CALLED_NUM}@default) > > exten => _19549776740,n,Hangup() > > > > I have tried the above but it does not work. Please advise. > > > > Regards, > > Girish > > > > On 7/27/09, Girish Agarwal <girish74 at gmail.com> wrote: > > Thanks Joseph, I think there was a typo in my earlier > > attempts, but this is how it is working:- > > > > exten => _19549776740,1,GotoIf($["${SS7_ORIG_CALLED_NUM}" = > > ""]?vmm:vm) > > exten => > > _19549776740,n(vmm),VoicemailMain(${CALLERID(num)}@default) > > exten => _19549776740,n,Hangup() > > exten => > > _19549776740,n(vm),VoiceMail(${SS7_ORIG_CALLED_NUM}@default) > > exten => _19549776740,n,Hangup() > > > > Regards, > > Girish > > > > On 7/27/09, Joseph <tech at ekn.com> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > To see all the variables on a channel, do this while > > the call is up: > > > > # core show channel DAHDI/ <--channel number here, > > hit tab to get * > > to complete one for you. > > > > > > On Jul 22, 2009, at 3:50 PM, Girish Agarwal wrote: > > > > > Can anyone please provide a working example of > > how to use the > > > above mentioned libss7 variable in extensions.conf. > > My setup is > > > I dial 9549993738 which rings on nortel switch. > > If the phone is > > > not picked up then it comes to voicemail number > > 19549996740 which is > > > programmed on asterisk. I have seen the whole > > execution of the call > > > on the asterisk side and it works perfectly ( with > > the reason for > > > call diversion, original caller and called numbers, > > everything > > > intact ). > > > > > > The problem I am facing is VoiceMail is called as > > > 19549996740 at default and I need it to be > > 19549993738 at default so that > > > it leaves the message for 9549993738 and not > > 9549996740 > > > > > > Here is my relevant extensions.conf and so far > > what I have tried:- > > > > > > ;exten > > > => _19549776740,1,VoiceMail(${SS7_ORIG_CALLED_NUM}@default) > > > ----> empty > > > exten > > => _19549776740,1,VoiceMail(${CALLERID(dnid)}@default) > ---- > > > >value 19549996740 > > > ;exten = > > _19549993738,1,VoiceMail(${CALLERID(num)}@default) ---- > > > >value 19549996740 > > > ;exten = > > _19549776740,1,VoiceMailMain(${CALLERID(num)}@default) > > ---- > > > >value 19549996740 > > > > > > I am using libss7=1.0.1 with asterisk 1.6.0.9. > > > > > > > - -- > > regards, Joseph > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.9 (Darwin) > > > > > iEYEARECAAYFAkptuYkACgkQ5CyZqOno04y5HACfb15GCVmiVzfNTagvR+5IP6A/ > > tLMAn1ZyAF4+qSjumxfvcHEe7M2WlNed > > =GvJ/ > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > --Bandwidth and Colocation Provided by > > http://www.api-digital.com-- > > > > asterisk-ss7 mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-ss7 > > > > > > > > _______________________________________________ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > > > asterisk-ss7 mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-ss7 > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-ss7 mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-ss7 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20090728/9bbabf6c/attachment.htm