Outbound Caller ID number on BRI (ISDN)

My problem is to set the caller id on BRI access.

It was very helpful to enable bri debug (bri debug span X). Just try
different values for pridialplan, prilocaldialplan. And also try to do
CallerPres right before the Dial command.
How do you set your CallerID or MSN? I just do:

exten => _X.,1,CallingPres(0)
exten => _X.,2,SetCIDNum(123456)
first sample
exten => _X.,3,Dial(Zap/g1/${EXTEN},60, T)
exten => _X.,4,Busy()

123456 is my number without area code. (prilocaldialplan=local).

exten => _X.,1,SetCIDNum(123456)
exten => _X.,2,Dial(Zap/g1/${EXTEN},60, T)
second sample
exten => _X.,3,Busy()

The following trace in log messages file for the second sample :

– Executing Set(“IAX2/7777-1”, “CALLERID(number)=123567890”) in new stack
– Executing Hangup(“IAX2/7777-1”, “”) in new stack
== Spawn extension (default, 0600000000, 2) exited non-zero on 'IAX2/7777-1’

The problem is same for the first sample with the CallingPres(0) command.
If I comment the line above the Dial command, it’s running. It’s very important to set the CallerId for give the direct line number for the recipient.

Hope that helps,

exten => _NXXXXXX,1,SetCallerID(< 1234561111>)
exten => _NXXXXXX,2,Dial(Zap/G1/${EXTEN})

you have to make sure your pstn provider will accept it from you

Thanks,

My provider accetp the CallerID.

Before the last test, I have tested your instance with the same result.

I am wait your other idea.

Today, I test the * 1.2.4, zaptel 1.2.3, Libpri 1.2.2 and bristuff-0.3.0-PRE-1k, the outcalling do not out and a new problems :

[i]Feb 7 18:51:44 VERBOSE[8938] logger.c: – Accepting UNAUTHENTICATED call from
10.1.1.205:
> requested format = alaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (),
> priority = mine
Feb 7 18:51:44 VERBOSE[8959] logger.c: – Executing Dial(“IAX2/7777-3”, “ZAP/
g1/0600000000|50|tr”) in new stack
Feb 7 18:51:44 VERBOSE[8959] logger.c: – Requested transfer capability: 0x00

  • SPEECH
    Feb 7 18:51:44 VERBOSE[8959] logger.c: – Called g1/0600000000
    Feb 7 18:51:44 DEBUG[8925] channel.c: Avoiding initial deadlock for 'Zap/1-1’
    Feb 7 18:51:44 DEBUG[8942] chan_zap.c: Queuing frame from PRI_EVENT_PROCEEDING on
    channel 0/1 span 1
    Feb 7 18:51:44 VERBOSE[8959] logger.c: – Zap/1-1 is proceeding passing it to
    IAX2/7777-3
    Feb 7 18:51:44 VERBOSE[8942] logger.c: – Channel 0/1, span 1 got hangup requ
    est
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap
    /1-1
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Hangup: channel: 1 index = 0, normal = 19,
    callwait = -1, thirdcall = -1
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Not yet hungup… Calling hangup once wit
    h icause, and clearing call
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: disabled echo cancellation on channel 1
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/
    1-1
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Updated conferencing on 1, with 0 conferen
    ce users
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Za
    p/1-1
    Feb 7 18:51:45 DEBUG[8959] chan_zap.c: disabled echo cancellation on channel 1
    Feb 7 18:51:45 VERBOSE[8959] logger.c: – Hungup 'Zap/1-1’
    Feb 7 18:51:45 VERBOSE[8959] logger.c: == No one is available to answer at this
    time (1:0/0/0)
    Feb 7 18:51:45 DEBUG[8959] app_dial.c: Exiting with DIALSTATUS=NOANSWER.
    Feb 7 18:51:45 VERBOSE[8959] logger.c: – Executing Hangup(“IAX2/7777-3”, “”)
    in new stack
    Feb 7 18:51:45 VERBOSE[8959] logger.c: == Spawn extension (default, 0603679010,
  1. exited non-zero on 'IAX2/1827-3’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '“Gilbert ANTOINE” <7777>
    '
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '7777’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '0600000000’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'default’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'IAX2/7777-3’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'Zap/1-1’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'Hangup’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '(null)'
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '2006-02-07 18:51:44’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '(null)'
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '2006-02-07 18:51:45’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '1’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '0’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'NO ANSWER’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'DOCUMENTATION’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '(null)'
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is 'asterisk-8916-1139334704.5’
    Feb 7 18:51:45 DEBUG[8959] pbx.c: Function result is '(null)'
    Feb 7 18:51:45 DEBUG[8959] chan_iax2.c: We’re hanging up IAX2/7777-3 with cause 0
    now…
    Feb 7 18:51:45 VERBOSE[8959] logger.c: – Hungup ‘IAX2/7777-3’
    [/i]
    Configuration files :

Zapata.conf

; Channels
;
language=fr

switchtype=euroisdn
pridialplan=local
prilocaldialplan=local

signalling = bri_cpe_ptmp
;signalling = bri_cpe
;signalling = bri_net_ptmp
rxwink=300

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
; useincomingcalleridonzaptransfer = yes
; echotraining = no
; txgain=5.0
; rxgain=5.0
; nationalprefix = 0
; internationalprefix = 00
; faxdetect=incoming
group=1
callgroup=1
pickupgroup=1
immediate=no
context=enEntree
channel => 1-2,4-5

Zaptel.conf

Span 1: ZTHFC1 “HFC-S PCI A ISDN card 1 [TE]”

span=1,1,1,ccs,ami
bchan=1-2
dchan=3

Span 2: ZTHFC1 “HFC-S PCI A ISDN card 2 [TE]”

span=2,1,1,ccs,ami
bchan=4-5
dchan=6

Global data

loadzone = fr
defaultzone = fr

Extensions.conf

exten => _X.,1,Dial(ZAP/g1/${EXTEN},50,tr)
exten => _X.,n,Hangup
exten => _X.,102,Playtones(busy)
exten => _X.,n,Wait(10)
exten => _X.,n,Hangup
exten => _X.,202,Playtones(congestion)
exten => _X.,n,Wait(10)
exten => _X.,n,Hangup

looks like the command changed from version 1.0 to 1.2

see link
voip-info.org/wiki/view/Aste … +SetCIDNum

Hi,

My previous version of Asterisk is 1.2.0.
For the CallerId no transmit, I have migrate to 1.2.4, after it, the calling out do not out. I have posted the trace of this problem in the previous message.
Like the trace, I use the 1.2.0 command and not this of 1.0.

How do you do for uninstall a version before install the following ?

Thanks for your attention,
Helps me, my system is stoped for the callingout.

:cry: