[Asterisk-Users] Calls from PSTN , answering, When transfered get Hungup 'Zap/1-1'

John Joseph jjk_saji at yahoo.com
Sun Mar 12 06:33:05 MST 2006


Hi All
    After lots of try I was successfull in connecting
to PSTN to make and recevice calls , I used AMP for
this purpose , now I wanted to try out  this Asterisk
server answers the call , ask for the extensions and
then after the extension entered the call is forwarded
/transfered to the extension no , I use Asterisk
1.2.4, configured using AMP , on RHEL3 

   I did some configuration for my calls to asterisk ,
my aim was to ask the caller to enter the extension
and the transfer the call 
    For this purpose , I added  following in 
"extensions_custom.conf" file 

[from-pstn-custom]
include => ext-local
exten => s,1,Answer()
exten => s,n,Background(enter-ext-of-person)
exten => s,n,Wait(2)
exten => s,n,Goto(ext-local,s,1)

the "ext-local" context is in
"extensions_additional.conf" 
Now what happens is that , I the call from pstn get
answered , then it ask for the extension , but after
enering the extension no , I find the call get hung up

    The asterisk CLI message is as 
 Starting simple switch on 'Zap/1-1'
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing BackGround("Zap/1-1",
"enter-ext-of-person") in new stack
    -- Playing 'enter-ext-of-person' (language 'en')
  == CDR updated on Zap/1-1
    -- Executing Goto("Zap/1-1", "s|1") in new stack
    -- Goto (from-pstn,s,1)
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing BackGround("Zap/1-1",
"enter-ext-of-person") in new stack
    -- Playing 'enter-ext-of-person' (language 'en')
    -- Executing Goto("Zap/1-1", "ext-local|s|1") in
new stack
    -- Goto (ext-local,s,1)
    -- Hungup 'Zap/1-1'




I am copying part of my extensions.conf ,
extensions_additional.conf,extension_custom.conf

                              I request quidance in
solving this problem 
                                               Thanks
                                                 
Joseph John 




************my "extenstions.conf" contain 
#include extensions_additional.conf
#include extensions_custom.conf

[from-trunk]                   ; just an alias since
VoIP shouldn't be called PSTN
include => from-pstn

[from-pstn]
include => from-pstn-custom                     ;
create this context in extensions_custom.conf to
include customizations
include => ext-did
include => from-pstn-timecheck          ; this has to
be included otherwise it overrides ext-did
exten => fax,1,Goto(ext-fax,in_fax,1)

**************extensions_additonal.conf*******************
contatins 
[ext-local]
include => ext-local-custom
exten => 299,1,Macro(exten-vm,novm,299)
exten => 299,hint,SIP/299
exten => 326,1,Macro(exten-vm,novm,326)
exten => 326,hint,SIP/326
exten => 327,1,Macro(exten-vm,novm,327)
exten => 327,hint,SIP/327



*********** extensions_custom.conf ******************
[from-pstn-custom]
include => ext-local
exten => s,1,Answer()
exten => s,n,Background(enter-ext-of-person)
exten => s,n,Wait(2)
exten => s,n,Goto(ext-local,s,1)



	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



More information about the asterisk-users mailing list