[asterisk-users] Block Collect Calls on ISDN trunk

Richard Mudgett rmudgett at digium.com
Fri Feb 17 12:16:57 CST 2012


> The value is always -1. I must enable something in chan_dahdi to pass
> the correct value?
> 
> 
> ++++++
> 
> [PABX]
> exten=>_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1]
> ?entrada,${EXTEN},1:hangup,${EXTEN},1)
> +++++++++++++++++++
> 
> 
> 
> rs0000sr305*CLI> -- Accepting call from '5132083300' to '1584' on
> channel 0/18, span 1
> -- Accepting call from '5132083300' to '1584' on channel 0/18, span 1
> rs0000sr305*CLI> -- Executing [1584 at PABX:1]
> GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1]
> ?entrada,1584,1:hangup,1584,1") in new stack
> -- Goto (entrada,1584,1)
> -- Executing [1584 at PABX:1] GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1]
> ?entrada,1584,1:hangup,1584,1" ) in new stack
> -- Executing [1584 at entrada:1] Answer("DAHDI/i1/5132083300-4", "") in
> new stack
> -- Goto (entrada,1584,1)
> -- Executing [1584 at entrada:1] Answer("DAHDI/i1/5132083300-4", "") in
> new stack
> rs0000sr305*CLI> -- Executing [1584 at entrada:2]
> Dial("DAHDI/i1/5132083300-4", "SIP/1584,30,tT") in new stack
> -- Executing [1584 at entrada:2] Dial("DAHDI/i1/5132083300-4",
> "SIP/1584,30,tT") in new stack
> rs0000sr305*CLI> == Using SIP RTP CoS mark 5
> == Using SIP RTP CoS mark 5
> rs0000sr305*CLI> -- Called SIP/1584
> -- Called SIP/1584
> rs0000sr305*CLI> -- SIP/1584-0000001e is ringing
> -- SIP/1584-0000001e is ringing
> rs0000sr305*CLI> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4
> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4
> rs0000sr305*CLI> -- Span 1: Channel 0/18 got hangup request, cause 0
> -- Span 1: Channel 0/18 got hangup request, cause 0
> rs0000sr305*CLI> == Spawn extension (entrada, 1584, 2) exited
> non-zero on 'DAHDI/i1/5132083300-4'
> == Spawn extension (entrada, 1584, 2) exited non-zero on
> 'DAHDI/i1/5132083300-4'
> rs0000sr305*CLI> -- Hungup 'DAHDI/i1/5132083300-4'
> -- Hungup 'DAHDI/i1/5132083300-4'
> rs0000sr305*CLI>


The CHANNEL(reversecharge) value is set from the "Reverse Charging Indication"
ie received in the incoming SETUP message.  Please capture the incoming SETUP
from libpri for the collect call.
pri set debug on span x

Richard



More information about the asterisk-users mailing list