Hi Adam,

I have a similar request. For calls that are forwarded, I get the line highlighted by * *. For unforwarded calls, the line is missing. I would like to have the presence of that line exposed as a dialplan variable somehow.

2014-08-14 01:05:52.412270 [DEBUG] ftmod_sangoma_isdn_trace.c:224 [SNGISDN Q931] wp1 FRAME INCOMING:
  Prot Disc:Q.931/I.451 (0x08)
  Call Ref:28 (Originating side)
  Type:SETUP (0x5)
  Sending complete:
  Bearer Capability:Coding:ITU-T(0) TransferCap:3.1Khz audio(16) TransferRate:64 Kbit/s(16) L1Prot:G.711 A-Law(3)
  Channel Id: MAP:B1 Type:reserved(12) Map Preferred/Implicit
*  Facility:Prot profile:Remote Operations Protocol(17) *
  Progress Indicator:coding:ITU-T(0) location:Public network, remote user(4) descr:Origination address is non-ISDN(3)
  Calling Party Number:1XXXXXXX75(l:10) plan:isdn(1) type:national(2)scr:network, provided(3) pres:allowed(0)
  Called Party Number:4XXXX8(l:6) plan:isdn(1) type:unknown(0)

John

On 13/08/14 23:17, Adam Kuśmirek wrote:
Hi All

I have FS with libsng and Sangoma A108DE conected to PBX that is redirecting calls A -> B to C.
Received SETUP message:
 
2014-08-13 15:33:21.148143 [DEBUG] ftmod_sangoma_isdn_trace.c:224 [SNGISDN Q931] wp2 FRAME INCOMING:
  Prot Disc:Q.931/I.451 (0x08)
  Call Ref:007D (Originating side)
  Type:SETUP (0x5)
  Sending complete:
  Bearer Capability:Coding:ITU-T(0) TransferCap:Speech(0) TransferRate:64 Kbit/s(16) L1Prot:G.711 A-Law(3)
  Channel Id:No:31 Type:B-chans(3)  Exclusive/Implicit
  Calling Party Number:69214XXXX(l:9) plan:isdn(1) type:national(2)scr:user, passed(1) pres:allowed(0)
  Called Party Number:77544XXXX(l:9) plan:isdn(1) type:unknown(0)
  Redirecting Number:773XXXX(l:7) plan:isdn(1) type:national(2)scr:user, not screened(0) pres:allowed(0)reason:Call forwarding unconditional(15)

I need  Redirecting Number  to make correct dialplan decisions, but I cannot get it from channel variables.

I hoped, that rdnis channel variable will contain this number, but info application tells nothing about it.

Is there any way to get acces to this Redirecting Number information in dialplan ?

FreeSWITCH Version 1.2.24+git~20140617T204847Z~9dde4b1548~64bit (git 9dde4b1 2014-06-17 20:48:47Z 64bit)
libsng_isdn-7.29.0.x86_64

Thank you for any help
Adam



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org