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