Misterhouse and asterisk

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Misterhouse and asterisk

H Plato

Right now, I’ve just put in asterisk to replace my vocp answering machine. Everything works great (I’ve even customized a vmail.cgi script to look more like the Misterhouse look and feel to work on my Audrey’s), however there is one nagging problem; when I dial out asterisk sees that the line is in use, and announces ‘phone call from unknown’ every 3 to 5 minutes.

 

I haven’t been able to figure this one out, and with some of the asterisk posts, I’m really hoping that someone has some ideas on what I can try. I’m currently using a modified version of robert’s misterhouse perl script and associated misterhouse.agi asterisk script.

 

I’ve included entries from my extensions.conf, Zapata.conf as well as a relevant section from the log when I make an outgoing call. Any assistance is greatly appreciated.

 

howard

 

extensions.conf

[pre-voip]

exten => s,1,AGI(misterhouse.agi,"CallerID")

exten => s,2,Wait,25

exten => s,3,Answer()

exten => s,4,Macro(vm,3000)

exten => s,5,Hangup

 

zapata.conf

[channels]

language=en

;context=from-pstn

context=pre-voip

signalling=fxs_ks

faxdetect=incoming

usecallerid=yes

callerid=asreceived

echocancel=yes

echocancelwhenbridged=no

echotraining=800

channel => 1

 

/var/log/asterisk/full

 

    -- Starting simple switch on 'Zap/1-1'

    -- Executing AGI("Zap/1-1", "misterhouse.agi|"CallerID"") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/misterhouse.agi

  misterhouse.agi|"CallerID": AGI Environment Dump:

  misterhouse.agi|"CallerID":  -- accountcode =

  misterhouse.agi|"CallerID":  -- callerid = unknown

  misterhouse.agi|"CallerID":  -- calleridname = unknown

  misterhouse.agi|"CallerID":  -- callingani2 = 0

  misterhouse.agi|"CallerID":  -- callingpres = 0

  misterhouse.agi|"CallerID":  -- callingtns = 0

  misterhouse.agi|"CallerID":  -- callington = 0

  misterhouse.agi|"CallerID":  -- channel = Zap/1-1

  misterhouse.agi|"CallerID":  -- context = pre-voip

  misterhouse.agi|"CallerID":  -- dnid = unknown

  misterhouse.agi|"CallerID":  -- enhanced = 0.0

  misterhouse.agi|"CallerID":  -- extension = s

  misterhouse.agi|"CallerID":  -- language = en

  misterhouse.agi|"CallerID":  -- priority = 1

  misterhouse.agi|"CallerID":  -- rdnis = unknown

  misterhouse.agi|"CallerID":  -- request = misterhouse.agi

  misterhouse.agi|"CallerID":  -- type = Zap

  misterhouse.agi|"CallerID":  -- uniqueid = 1138765741.8

    -- AGI Script misterhouse.agi completed, returning 0

    -- Executing Wait("Zap/1-1", "25") in new stack

  == Spawn extension (pre-voip, s, 2) exited non-zero on 'Zap/1-1'

    -- Hungup 'Zap/1-1'

    -- Starting simple switch on 'Zap/1-1'

    -- Executing AGI("Zap/1-1", "misterhouse.agi|"CallerID"") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/misterhouse.agi

  misterhouse.agi|"CallerID": AGI Environment Dump:

  misterhouse.agi|"CallerID":  -- accountcode =

  misterhouse.agi|"CallerID":  -- callerid = unknown

  misterhouse.agi|"CallerID":  -- calleridname = unknown

  misterhouse.agi|"CallerID":  -- callingani2 = 0

  misterhouse.agi|"CallerID":  -- callingpres = 0

  misterhouse.agi|"CallerID":  -- callingtns = 0

  misterhouse.agi|"CallerID":  -- callington = 0

  misterhouse.agi|"CallerID":  -- channel = Zap/1-1

  misterhouse.agi|"CallerID":  -- context = pre-voip

  misterhouse.agi|"CallerID":  -- dnid = unknown

  misterhouse.agi|"CallerID":  -- enhanced = 0.0

  misterhouse.agi|"CallerID":  -- extension = s

  misterhouse.agi|"CallerID":  -- language = en

  misterhouse.agi|"CallerID":  -- priority = 1

  misterhouse.agi|"CallerID":  -- rdnis = unknown

  misterhouse.agi|"CallerID":  -- request = misterhouse.agi

  misterhouse.agi|"CallerID":  -- type = Zap

  misterhouse.agi|"CallerID":  -- uniqueid = 1138765891.9

    -- AGI Script misterhouse.agi completed, returning 0

    -- Executing Wait("Zap/1-1", "25") in new stack

  == Spawn extension (pre-voip, s, 2) exited non-zero on 'Zap/1-1'

    -- Hungup 'Zap/1-1'

 

Reply | Threaded
Open this post in threaded view
|

Re: Misterhouse and asterisk

Noah Swint
I think you need 

Wait(25)

On Feb 1, 2006, at 12:03 AM, H Plato wrote:

Right now, I’ve just put in asterisk to replace my vocp answering machine. Everything works great (I’ve even customized a vmail.cgi script to look more like the Misterhouse look and feel to work on my Audrey’s), however there is one nagging problem; when I dial out asterisk sees that the line is in use, and announces ‘phone call from unknown’ every 3 to 5 minutes.

 

I haven’t been able to figure this one out, and with some of the asterisk posts, I’m really hoping that someone has some ideas on what I can try. I’m currently using a modified version of robert’s misterhouse perl script and associated misterhouse.agi asterisk script.

 

I’ve included entries from my extensions.conf, Zapata.conf as well as a relevant section from the log when I make an outgoing call. Any assistance is greatly appreciated.

 

howard

 

extensions.conf

[pre-voip]

exten => s,1,AGI(misterhouse.agi,"CallerID")

exten => s,2,Wait,25

exten => s,3,Answer()

exten => s,4,Macro(vm,3000)

exten => s,5,Hangup

 

zapata.conf

[channels]

language=en

;context=from-pstn

context=pre-voip

signalling=fxs_ks

faxdetect=incoming

usecallerid=yes

callerid=asreceived

echocancel=yes

echocancelwhenbridged=no

echotraining=800

channel => 1

 

/var/log/asterisk/full

 

    -- Starting simple switch on 'Zap/1-1'

    -- Executing AGI("Zap/1-1", "misterhouse.agi|"CallerID"") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/misterhouse.agi

  misterhouse.agi|"CallerID": AGI Environment Dump:

  misterhouse.agi|"CallerID":  -- accountcode =

  misterhouse.agi|"CallerID":  -- callerid = unknown

  misterhouse.agi|"CallerID":  -- calleridname = unknown

  misterhouse.agi|"CallerID":  -- callingani2 = 0

  misterhouse.agi|"CallerID":  -- callingpres = 0

  misterhouse.agi|"CallerID":  -- callingtns = 0

  misterhouse.agi|"CallerID":  -- callington = 0

  misterhouse.agi|"CallerID":  -- channel = Zap/1-1

  misterhouse.agi|"CallerID":  -- context = pre-voip

  misterhouse.agi|"CallerID":  -- dnid = unknown

  misterhouse.agi|"CallerID":  -- enhanced = 0.0

  misterhouse.agi|"CallerID":  -- extension = s

  misterhouse.agi|"CallerID":  -- language = en

  misterhouse.agi|"CallerID":  -- priority = 1

  misterhouse.agi|"CallerID":  -- rdnis = unknown

  misterhouse.agi|"CallerID":  -- request = misterhouse.agi

  misterhouse.agi|"CallerID":  -- type = Zap

  misterhouse.agi|"CallerID":  -- uniqueid = 1138765741.8

    -- AGI Script misterhouse.agi completed, returning 0

    -- Executing Wait("Zap/1-1", "25") in new stack

  == Spawn extension (pre-voip, s, 2) exited non-zero on 'Zap/1-1'

    -- Hungup 'Zap/1-1'

    -- Starting simple switch on 'Zap/1-1'

    -- Executing AGI("Zap/1-1", "misterhouse.agi|"CallerID"") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/misterhouse.agi

  misterhouse.agi|"CallerID": AGI Environment Dump:

  misterhouse.agi|"CallerID":  -- accountcode =

  misterhouse.agi|"CallerID":  -- callerid = unknown

  misterhouse.agi|"CallerID":  -- calleridname = unknown

  misterhouse.agi|"CallerID":  -- callingani2 = 0

  misterhouse.agi|"CallerID":  -- callingpres = 0

  misterhouse.agi|"CallerID":  -- callingtns = 0

  misterhouse.agi|"CallerID":  -- callington = 0

  misterhouse.agi|"CallerID":  -- channel = Zap/1-1

  misterhouse.agi|"CallerID":  -- context = pre-voip

  misterhouse.agi|"CallerID":  -- dnid = unknown

  misterhouse.agi|"CallerID":  -- enhanced = 0.0

  misterhouse.agi|"CallerID":  -- extension = s

  misterhouse.agi|"CallerID":  -- language = en

  misterhouse.agi|"CallerID":  -- priority = 1

  misterhouse.agi|"CallerID":  -- rdnis = unknown

  misterhouse.agi|"CallerID":  -- request = misterhouse.agi

  misterhouse.agi|"CallerID":  -- type = Zap

  misterhouse.agi|"CallerID":  -- uniqueid = 1138765891.9

    -- AGI Script misterhouse.agi completed, returning 0

    -- Executing Wait("Zap/1-1", "25") in new stack

  == Spawn extension (pre-voip, s, 2) exited non-zero on 'Zap/1-1'

    -- Hungup 'Zap/1-1'