Thomas,

Could it be as simple as getphone.sh not having the correct file permissions?

$ chmod 755 getphone.sh

If not, could you explain what the error is?

Lonnie

On Jan 17, 2007, at 2:03 PM, Thomas Thomsen wrote:

Hi

here is the entire section

[initchannel]
exten => _X.,1,Set(SPEED=${DB(speednumber/${EXTEN}${COMPANY})})
exten => _X.,n,GotoIf(${SPEED}?found:chkcallerid)
exten => _X.,n(found),Goto(${SPEED},chkcallerid)

exten => _X.,n(chkcallerid),GotoIf(${CALLERIDNUM}?chklast:chklen)
exten => _X.,n(chklast),Set(LAST=${DB(LastExt/${CALLERIDNUM})})
exten => _X.,n,GotoIf(${LAST}?last:chklen)
exten => _X.,n(last),UserEvent(LastExt,ActionID: lastext/$ {CALLERIDNUM}/${LAST})

exten => _X.,n(chklen),GotoIf($[${LEN(${CALLERIDNUM})} = 8]? chkcidname:chkcalleridnum) exten => _X.,n(chkcidname),System(/etc/asterisk/getphone.sh $ {CALLERIDNUM})
exten => _X.,n,LookupCIDName()
exten => _X.,n,GotoIf($[${LEN(${CALLERIDNAME})} > 0]? chkcalleridnum:setnumber)
exten => _X.,n(setnumber),Set(CALLERID(name)=${CALLERIDNUM})

exten => _X.,n(chkcalleridnum),GotoIf(${CALLERIDNUM}? chkshowname:sethemmeligt)
exten => _X.,n(sethemmeligt),Set(CALLERID(name)=Hemmeligt)

exten => _X.,n(chkshowname),Set(SHOWNAME=${DB(showname/$ {CALLEEIDNUM}${COMPANY})})
exten => _X.,n,GotoIf($[${LEN(${SHOWNAME})} > 0]?showname:chklines)
exten => _X.,n(showname),Set(CALLERID(name)=${SHOWNAME}-$ {CALLERIDNAME})
exten => _X.,n,Set(CALLERID(number)=${CALLERIDNUM})

exten => _X.,n(chklines),Set(GROUP()=Lines)
exten => _X.,n,GotoIf($[${GROUP_COUNT()} > ${NUMBER-OF-LINES}]? busy:phone-in${COMPANY},${EXTEN},1) exten => _X.,n(busy),Set(DB(nolinesin/${TIMESTAMP}-${CALLERIDNUM})=$ {EXTEN})
exten => _X.,n,Busy()
exten => _X.,n,Hangup()

Med Venlig Hilsen

Thomas Thomsen
Systemkonsulent

<ntd.jpg>


Baldersbuen 15 A
DK-2640 Hedehusene
Telefon 5474 7575
Mobil   2683 7575
Fax     5474 7570
www.ntd.dk - [EMAIL PROTECTED]



Fra: [EMAIL PROTECTED] [mailto:astlinux-users- [EMAIL PROTECTED] På vegne af Lonnie Abelbeck
Sendt: 17. januar 2007 20:30
Til: Discussion of AstLinux - Asterisk on Compact Flash
Emne: Re: [Astlinux-users] sh script on astlinux

Thomas,

I don't see a reference to "chkcalleridnum",

exten => _X.,n(chkcalleridnum)

Lonnie

On Jan 17, 2007, at 12:37 PM, Thomas Thomsen wrote:

Hi

I have the following entries in my extensions.conf

exten => _X.,n(chklen),GotoIf($[${LEN(${CALLERIDNUM})} = 8]? chkcidname:chkcalleridnum) exten => _X.,n(chkcidname),System(/etc/asterisk/getphone.sh $ {CALLERIDNUM})
exten => _X.,n,LookupCIDName()
exten => _X.,n,GotoIf($[${LEN(${CALLERIDNAME})} > 0]? chkcalleridnum:setnumber)
exten => _X.,n(setnumber),Set(CALLERID(name)=${CALLERIDNUM})
It works perfect on trixbox but not on astlinux, could someone tell me why ??

Regards

//Thomas
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]

REMEMBER: AstLinux mailing lists are moving soon:

http://sourceforge.net/mail/?group_id=170462

Please move any discussions ASAP!

<ntd.jpg>
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]

REMEMBER: AstLinux mailing lists are moving soon:

http://sourceforge.net/mail/?group_id=170462

Please move any discussions ASAP!

_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

REMEMBER: AstLinux mailing lists are moving soon:

http://sourceforge.net/mail/?group_id=170462

Please move any discussions ASAP!

Reply via email to