<div>Hi,</div>
<div>     When I do a dahdi show version this is what I get:-</div>
<div>     DAHDI Version: SVN-trunk-r6844 Echo Canceller:</div>
<div> </div>
<div>     I will try Joseph&#39;s suggestion, of displaying the channel variables and see what I get for various calls. Like I mentioned, it works sometimes and other times I don&#39;t see the expected behaviour. Let me know if this information is sufficient or you want o run some other command.</div>

<div> </div>
<div>Regards,</div>
<div>Girish <br><br> </div>
<div><span class="gmail_quote">On 7/27/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">btw which version of chan_dahdi are you using?<br>The original version start_pbx, after set up the variables, this cause<br>
tha variables may not set up yet the begining of the dialplan execution<br><br>On Mon, 2009-07-27 at 17:28 -0400, Girish Agarwal wrote:<br>&gt; Actually,<br>&gt;               I take that back.<br>&gt;               It works sometimes and it does not work sometimes i.e.<br>
&gt; SS7_ORIG_CALLED_NUM does not capture the Value.<br>&gt;               The only consistency I have seen is that with a debug<br>&gt; everytime I get the IAM message correct. Here is the relevant<br>&gt; portion:-<br>&gt;<br>
&gt;   [Jul 27 17:20:55] VERBOSE[2857] logger.c:               [ 01 00 ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Message Type:<br>&gt; IAM<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               [ 01 ]<br>
&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               --FIXED LENGTH<br>&gt; PARMS[3]--<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Nature of<br>&gt; Connection Indicator:<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Satellites in connection: 0<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Continuity Check: Check not required (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Outgoing half echo control device: included (1)<br>
&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       [ 10 ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Forward Call<br>&gt; Indicators:<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Nat/Intl Call Ind: call to be treated as a national call (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       End to<br>&gt; End Method Ind: no end-to-end method(s) available (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Interworking Ind: no interworking encountered (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       End to<br>&gt; End Info Ind: no end-to-end information available (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       ISDN<br>
&gt; User Part Ind: ISDN user part used all the way (1)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       ISDN<br>&gt; User Part Pref Ind: ISDN user part preferred all the way (0)[Jul 27<br>&gt; 17:20:55] VERBOSE[2857] logger.c:                       ISDN Access<br>
&gt; Ind: originating access ISDN (1)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       SCCP<br>&gt; Method Ind: no indication (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       [ 20<br>
&gt; 01 ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Calling<br>&gt; Party&#39;s Category:<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Category: Ordinary calling subscriber (10)[Jul 27 17:20:55]<br>
&gt; VERBOSE[2857] logger.c:                       [ 0a ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               --VARIABLE<br>&gt; LENGTH PARMS[2]--<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               User Service<br>
&gt; Information:[Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; [ 03 80 90 a2 ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Called Party<br>&gt; Number:<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       Nature<br>
&gt; of address: 3<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       NI: 0<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Numbering plan: 1<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Address signals: 9549776740<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               --OPTIONAL<br>&gt; PARMS--<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Calling Party<br>&gt; Number:<br>
&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       Nature<br>&gt; of address: 3<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       NI: 0<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Numbering plan: 1<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Presentation: 0<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Screening: 3<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Address signals: 9548003292<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       [ 0a<br>&gt; 07 03 13 59 84 00 23 29 ]<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Original<br>&gt; called number:<br>
&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       Nature<br>&gt; of address: 3<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Numbering plan: 1<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Presentation: 1<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Address signals: 9549993738<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:               Redirection<br>&gt; Information:<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Redirecting indicator: No Redirection (national use) (0)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Original redirection reason: No reply (national use) (2)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>
&gt; Redirection counter: 1<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:<br>&gt; Redirecting reason: No reply (2)<br>&gt; [Jul 27 17:20:55] VERBOSE[2857] logger.c:                       [ 13<br>&gt; 02 20 21 ]<br>&gt;<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>