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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20090727/71be12e6/attachment.htm
![]() |