<span style>Reversecharge</span><span style> </span><span style>not appear</span><span style> </span><span style>in</span><span style> </span><span style>debug</span><span style>.</span><br style><span style></span><span style>I'm</span><span style> </span><span style>in Brazil</span><span style>, the</span><span style> </span><span style>signaling is</span><span style> </span><span style>different here</span><span style>?</span><span style> </span> <div>
<br clear="all">Att,<br>Rafael Saraiva<br><br><br>
<br><br><div class="gmail_quote">2012/2/17 Richard Mudgett <span dir="ltr"><<a href="mailto:rmudgett@digium.com">rmudgett@digium.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> The value is always -1. I must enable something in chan_dahdi to pass<br>
> the correct value?<br>
><br>
><br>
> ++++++<br>
><br>
> [PABX]<br>
> exten=>_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1]<br>
> ?entrada,${EXTEN},1:hangup,${EXTEN},1)<br>
> +++++++++++++++++++<br>
><br>
><br>
><br>
> rs0000sr305*CLI> -- Accepting call from '<a href="tel:5132083300" value="+555132083300">5132083300</a>' to '1584' on<br>
> channel 0/18, span 1<br>
> -- Accepting call from '<a href="tel:5132083300" value="+555132083300">5132083300</a>' to '1584' on channel 0/18, span 1<br>
> rs0000sr305*CLI> -- Executing [1584@PABX:1]<br>
> GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1]<br>
> ?entrada,1584,1:hangup,1584,1") in new stack<br>
> -- Goto (entrada,1584,1)<br>
> -- Executing [1584@PABX:1] GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1]<br>
> ?entrada,1584,1:hangup,1584,1" ) in new stack<br>
> -- Executing [1584@entrada:1] Answer("DAHDI/i1/5132083300-4", "") in<br>
> new stack<br>
> -- Goto (entrada,1584,1)<br>
> -- Executing [1584@entrada:1] Answer("DAHDI/i1/5132083300-4", "") in<br>
> new stack<br>
> rs0000sr305*CLI> -- Executing [1584@entrada:2]<br>
> Dial("DAHDI/i1/5132083300-4", "SIP/1584,30,tT") in new stack<br>
> -- Executing [1584@entrada:2] Dial("DAHDI/i1/5132083300-4",<br>
> "SIP/1584,30,tT") in new stack<br>
> rs0000sr305*CLI> == Using SIP RTP CoS mark 5<br>
> == Using SIP RTP CoS mark 5<br>
> rs0000sr305*CLI> -- Called SIP/1584<br>
> -- Called SIP/1584<br>
> rs0000sr305*CLI> -- SIP/1584-0000001e is ringing<br>
> -- SIP/1584-0000001e is ringing<br>
> rs0000sr305*CLI> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4<br>
> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4<br>
> rs0000sr305*CLI> -- Span 1: Channel 0/18 got hangup request, cause 0<br>
> -- Span 1: Channel 0/18 got hangup request, cause 0<br>
> rs0000sr305*CLI> == Spawn extension (entrada, 1584, 2) exited<br>
> non-zero on 'DAHDI/i1/5132083300-4'<br>
> == Spawn extension (entrada, 1584, 2) exited non-zero on<br>
> 'DAHDI/i1/5132083300-4'<br>
> rs0000sr305*CLI> -- Hungup 'DAHDI/i1/5132083300-4'<br>
> -- Hungup 'DAHDI/i1/5132083300-4'<br>
> rs0000sr305*CLI><br>
<br>
<br>
The CHANNEL(reversecharge) value is set from the "Reverse Charging Indication"<br>
ie received in the incoming SETUP message. Please capture the incoming SETUP<br>
from libpri for the collect call.<br>
pri set debug on span x<br>
<br>
Richard<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>