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