× Questions about B100/200/400/800 ISDN BRI Cards

No caller id in outbound calls in B100P [Solved]

3 years 8 months ago - 3 years 8 months ago #10743 by Stratei
Hi everyone.
We got a B100P working in outbound and inbound calls perfectly, but, when we make outbound calls, caller id is always hide. We need to un hidde this number to finish the project but I tried everything without luck. The operative system in the machine is Elastix 2.4.0 who recognizes perfecly the card. This is the log show when we make a call, where I edited card's number like "999999999" and testing phone's number like "677000000".
    -- Executing [677000000@from-internal:1] Macro("SIP/1001-00000013", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/1001-00000013", "AMPUSER=1001") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1001-00000013", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1001-00000013", "1?Set(REALCALLERIDNUM=1001)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/1001-00000013", "AMPUSER=1001") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/1001-00000013", "AMPUSERCIDNAME=User") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1001-00000013", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/1001-00000013", "AMPUSERCID=10") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/1001-00000013", "CALLERID(all)="User" <10>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/1001-00000013", "1?Set(CHANNEL(language)=es)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/1001-00000013", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/1001-00000013", "CALLERID(number)=10") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/1001-00000013", "CALLERID(name)=User") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/1001-00000013", "Using CallerID "User" <10>") in new stack
    -- Executing [677000000@from-internal:2] NoOp("SIP/1001-00000013", "Calling Out Route: Salientes") in new stack
    -- Executing [677000000@from-internal:3] Set("SIP/1001-00000013", "MOHCLASS=default") in new stack
    -- Executing [677000000@from-internal:4] Set("SIP/1001-00000013", "_NODEST=") in new stack
    -- Executing [677000000@from-internal:5] Macro("SIP/1001-00000013", "record-enable,1001,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/1001-00000013", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/1001-00000013", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/1001-00000013", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/1001-00000013", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/1001-00000013", "1?MacroExit()") in new stack
    -- Executing [677000000@from-internal:6] Macro("SIP/1001-00000013", "dialout-trunk,1,677000000,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-00000013", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1001-00000013", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-00000013", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-00000013", "DIAL_NUMBER=677000000") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-00000013", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-00000013", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-00000013", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-00000013", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-00000013", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-00000013", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-00000013", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1001-00000013", "0?Set(REALCALLERIDNUM=10)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1001-00000013", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/1001-00000013", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/1001-00000013", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/1001-00000013", "TRUNKOUTCID=<999999999>") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1001-00000013", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1001-00000013", "1?Set(CALLERID(all)=<999999999>)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1001-00000013", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1001-00000013", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1001-00000013", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/1001-00000013", "0?sub-flp-1,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-00000013", "OUTNUM=677000000") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-00000013", "custom=DAHDI/g0") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1001-00000013", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/1001-00000013", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1001-00000013", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1001-00000013", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-00000013", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/1001-00000013", "DAHDI/g0/677000000,300,") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called DAHDI/g0/677000000
    -- DAHDI/i1/677000000-11 is proceeding passing it to SIP/1001-00000013
    -- DAHDI/i1/677000000-11 is ringing
    -- DAHDI/i1/677000000-11 is making progress passing it to SIP/1001-00000013
    -- Hungup 'DAHDI/i1/677000000-11'
  == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/1001-00000013' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 677000000, 6) exited non-zero on 'SIP/1001-00000013'
    -- Executing [h@from-internal:1] Macro("SIP/1001-00000013", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1001-00000013", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/1001-00000013", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/1001-00000013", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/1001-00000013", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/1001-00000013", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/1001-00000013", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/1001-00000013", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/1001-00000013", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/1001-00000013", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/1001-00000013", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/1001-00000013", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/1001-00000013", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/1001-00000013>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/1001-00000013", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/1001-00000013' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1001-00000013'

Then, this is our /etc/asterisk/dahdi-channels.conf:
; Autogenerated by /usr/sbin/dahdi_genconf on Thu Dec  3 12:42:37 2015
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] " (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
callerid=asreceived
channel => 1-2
context = default
group = 63

This is /etc/asterisk/chan_dahdi.conf:
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300              ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf

And at least, this is our dahdi channels info:
elastix*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret        Blocked    State
 pseudo            default                    default                         In Service
      1            from-pstn                  default                         In Service
      2            from-pstn                  default                         In Service

This is my /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Dec  3 12:42:37 2015
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] " (MASTER)
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Global data

loadzone        = es
defaultzone     = es

Any help would be very appreciated!
3 years 8 months ago #10744 by crystal.han
Hi,
please add my skype ID :crystalhan6,i will help you to check it.
3 years 8 months ago #10760 by Stratei
Like crystal.han told us, it was our telcom fault (Telefonica Spain). Once the telcom fixes our line, the caller id is show like I always have to.

Thanks for all Crystal.Han!! :)
Time to create page: 0.031 seconds
Powered by Kunena Forum