All pastes #196299 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-10 13:32 UTC
rendered paste body
ZAPATA.CONF:
-------------
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=fr
context=from-zaptel ;indique le context de votre diaplan par defaut
switchtype=national
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
rxwink=300		; Atlas seems to use long (250ms) winks


;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
musiconhold=mine

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

ZAPATA_ADDITIONAL.CONF -> empty
----------------------

ZAPA-AUTO.CONF:
---------------

; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended 
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived

; Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" 
signalling=fxs_ks
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 1
context=from-zaptel
group=0
channel => 1

signalling=fxs_ks
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 2
context=from-zaptel
group=0
channel => 2

signalling=fxs_ks
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 3
context=from-zaptel
group=0
channel => 3

signalling=fxs_ks
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 4
context=from-zaptel
group=0
channel => 4


; Span 2: ZTDUMMY/1 "ZTDUMMY/1 1" 


CLI OUTPUT when i put the ZAP on HOLD:
--------------------------------------

 -- Starting simple switch on 'Zap/1-1'
    -- Executing NoOp("Zap/1-1", "Entering from-zaptel with DID == ") in new stack
    -- Executing Set("Zap/1-1", "DID=s") in new stack
    -- Executing NoOp("Zap/1-1", "DID is now s") in new stack
    -- Executing GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,7)
    -- Executing NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
    -- Executing Set("Zap/1-1", "CHAN=1-1") in new stack
    -- Executing Set("Zap/1-1", "CHAN=1") in new stack
    -- Executing Macro("Zap/1-1", "from-zaptel-1|s|1") in new stack
    -- Executing NoOp("Zap/1-1", "Returned from Macro from-zaptel-1") in new stack
    -- Executing Goto("Zap/1-1", "ext-did|s|1") in new stack
    -- Goto (ext-did,s,1)
    -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
    -- Executing Set("Zap/1-1", "FAX_RX=disabled") in new stack
    -- Executing Goto("Zap/1-1", "ext-group|1|1") in new stack
    -- Goto (ext-group,1,1)
    -- Executing Macro("Zap/1-1", "user-callerid|") in new stack
    -- Executing GotoIf("Zap/1-1", "0?report") in new stack
    -- Executing GotoIf("Zap/1-1", "0?start") in new stack
    -- Executing Set("Zap/1-1", "REALCALLERIDNUM=0674937835") in new stack
    -- Executing NoOp("Zap/1-1", "REALCALLERIDNUM is 0674937835") in new stack
    -- Executing Set("Zap/1-1", "AMPUSER=") in new stack
    -- Executing Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
    -- Executing GotoIf("Zap/1-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,9)
    -- Executing NoOp("Zap/1-1", "Using CallerID "" <0674937835>") in new stack
    -- Executing GotoIf("Zap/1-1", "0?NEWPREFIX") in new stack
    -- Executing Set("Zap/1-1", "CALLERID(name)=") in new stack
    -- Executing Set("Zap/1-1", "RGPREFIX=") in new stack
    -- Executing Set("Zap/1-1", "CALLERID(name)=") in new stack
    -- Executing Set("Zap/1-1", "RecordMethod=Group") in new stack
    -- Executing Macro("Zap/1-1", "record-enable|102-103|Group") in new stack
    -- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("Zap/1-1", "recordingcheck|20061010-153101|1160487060.2") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("Zap/1-1", "No recording needed") in new stack
    -- Executing Set("Zap/1-1", "RingGroupMethod=ringall") in new stack
    -- Executing Macro("Zap/1-1", "dial|20|tr|102-103") in new stack
    -- Executing AGI("Zap/1-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
    --  dialparties.agi: priority is 1
  dialparties.agi: Caller ID name is 'unknown' number is '0674937835'
  dialparties.agi: Methodology of ring is  'ringall'
    --  dialparties.agi: Added extension 102 to extension map
    --  dialparties.agi: Added extension 103 to extension map
    --  dialparties.agi: Extension 102 cf is disabled
    --  dialparties.agi: Extension 103 cf is disabled
    --  dialparties.agi: Extension 102 do not disturb is disabled
    --  dialparties.agi: Extension 103 do not disturb is disabled
       >  dialparties.agi: extnum: 102
       >  dialparties.agi: exthascw: 1
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
       >  dialparties.agi: exthascfu: 0
       >  dialparties.agi: extcfu:
    --  dialparties.agi: DbSet CALLTRACE/102 to 0674937835
       >  dialparties.agi: extnum: 103
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
       >  dialparties.agi: exthascfu: 0
       >  dialparties.agi: extcfu:
  == Manager 'admin' logged on from 127.0.0.1
  == Manager 'admin' logged off from 127.0.0.1
       >  dialparties.agi: ExtensionState: 4
    --  dialparties.agi: Checking CW and CFB status for extension 103
    --  dialparties.agi: DbSet CALLTRACE/103 to 0674937835
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("Zap/1-1", "SIP/102&SIP/103|20|tr") in new stack
    -- Called 102
    -- SIP/102-087ace18 is ringing
    -- SIP/102-087ace18 answered Zap/1-1
    -- ***[JB LOG]*** fixed jitterbuffer created on channel Zap/1-1
    -- Started music on hold, class 'mine', on Zap/1-1
    -- Stopped music on hold on Zap/1-1
    -- Started music on hold, class 'mine', on Zap/1-1
    -- Stopped music on hold on Zap/1-1
    -- Hungup 'Zap/1-1'

As you can see the music on hold start and is stopped right away...