Help for zapata.conf


#1

in zapata.conf ,who use context ? how to configure it? it is the same with the context in extensions.conf?


#2

You can either land all your calls in default context or specify distinct contexts like:

context=remote channel => 15 channel => 16
You need context [remote] to be defined in extensions.comf of course.


#3

tks the.edge. this conext is used when incoming call from pstn?

[color=Green]> Protocol Discriminator: Q.931 (8) len=48

Call Ref: len= 2 (reference 31/0x1F) (Originator)
Message type: SETUP (5)
[04 03 80 90 a3]
Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
Ext: 1 User information layer 1: A-Law (35)
[18 03 a1 83 81]
Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Preferred Dchan: 0
ChanSel: Reserved
Ext: 1 Coding: 0 Number Specified Channel Type: 3
Ext: 1 Channel: 1 ]
[6c 0d 41 80 30 39 31 32 34 30 30 39 39 36 39]
Calling Number (len=15) [ Ext: 0 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
Presentation: Presentation permitted, user number not screened (0) ‘09124009969’ ]
[70 10 c1 39 39 39 38 38 36 39 33 32 39 33 37 38 38 34]
Called Number (len=18) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) ‘999886932937884’ ]
– Called g1/999886932937884
< Protocol Discriminator: Q.931 (8) len=10
< Call Ref: len= 2 (reference 31/0x1F) (Terminator)
< Message type: SETUP ACKNOWLEDGE (13)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
– Processing IE 24 (cs0, Channel Identification)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 31/0x1F) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 80 90]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
< Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]
– Processing IE 8 (cs0, Cause)
– Channel 0/1, span 1 got hangup request
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request
Protocol Discriminator: Q.931 (8) len=9
Call Ref: len= 2 (reference 31/0x1F) (Originator)
Message type: RELEASE (77)
[08 02 81 90]
Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]
– Hungup ‘Zap/1-1’
== Everyone is busy/congested at this time (1:0/0/1)
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 31/0x1F) (Terminator)
< Message type: RELEASE COMPLETE (90)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null[/color]

who can tele me what 's wrong about my asterisk and E1 card?


#4

Ask your telco for correct settings to configure your spans in zaptel.conf


#5

the fellowing is my span 1 info

Primary D-channel: 16 Status: Provisioned, Up, Active Switchtype: Lucent 5E Type: Network Window Length: 0/7 Sentrej: 0 SolicitFbit: 0 Retrans: 0 Busy: 0 Overlap Dial: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T313 Timer: 4000 N200 Counter: 3
is there anything wrong?


#6

channel 1 info as the fellowings:

zap show channel 1 Channel: 1> File Descriptor: 16 Span: 1CLI> Extension: Dialing: no Context: topstn Caller ID: Calling TON: 0 Caller ID name: Destroy: 0> InAlarm: 0> Signalling Type: PRI Signalling Radio: 0LI> Owner: <None> Real: <None> Callwait: <None> Threeway: <None> Confno: -1> Propagated Conference: -1 Real in conference: 0 DSP: noCLI> Relax DTMF: no Dialing/CallwaitCAS: 0/0 Default law: alaw Fax Handled: no Pulse phone: no Echo Cancellation: 128 taps, currently OFF PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook
is there anything wrong?


#7

any ideas ? help !


#8

[quote]< Message type: SETUP ACKNOWLEDGE (13)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 ]
[/quote]
who send SETUP ACKNOWLEDGE this message? telco switch? what this message mean? why not it send callprocessing message?


#9

thats what i learn when wathing q931 traffic in asterisk:

“<” = asterisk receive messages from provider
">" = asterisk send messages to provider

this site was useful for me - "q931 protocol overview"
freesoft.org/CIE/Topics/126.htm

if this is from one of Your call, Terminatror’s reference should be +0x80 more than Originator’s
did You make full copy-paste of Your logs or this isn’t complete log ?
Asterisk get DISCONNECt after SETUP ACK
It looks like You have wrong things in zapata.conf /zaptel.conf.

-FD