SS7_ORIG_CALLED_NUM variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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<$%7BSS7_ORIG_CALLED_NUM%7D at 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<$%7BSS7_ORIG_CALLED_NUM%7D at 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/20090728/eae032e6/attachment.htm 


[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux