[asterisk-users] Astribank and caller ID from PSTN

Guillermo Salas M. gsalas at manta.telconet.net
Tue Sep 18 19:33:44 CDT 2007


Hi all,

On Sat, 2007-09-15 at 22:05 +0300, Tzafrir Cohen wrote:
> Hi Guillermo,
> 
> On Sat, Sep 15, 2007 at 01:18:49PM -0500, Guillermo Salas M. wrote:
> > Hello,
> > 
> > I've one astribank with 8 FXO unit and 8 pstn lines connected to the
> > astribank. When I receive calls on my ipphone I get always Unknown
> > callerid.
> 
> > 

[..]

> 
> One thing I suspect is not waiting enough.
> Try adding the following to your dialplan:
> 
> [pstn-test]
> exten => s,1,Wait(1)
> exten => s,n,NoOp(Got number ${CALLERID(all)} on ${CHANNEL})
> ; If you're just testing:
> ;exten => s,n,Playback(tt-monkeys)
> exten => s,n,Goto(from-zaptel,s,1)
> 
> And then set in zapata.conf:  context=pstn-test
> 
> 
> Other than that, there are two obvious sanity checks:
> 
> 1. Connect an analog phone with with caller ID display to the same port
> and see that caller ID is indeed detected
> 

I've connected one phone to the line that was connected on the port 4 of
the astribank. Called from my mobile and the caller id is displayed on
the phone.


> 2. boot the same system from our live CD and see if caller ID is
> detected there.
> 


Booted with the version Xorcom Rapid LiveCD (1.0.2.4131) and configured
the following:

- Created one trunk called g1;
- creted one SIP extension called 666 ;
- edited /etc/asterisk/zapata-channels.conf with:

;;; line="4 XPP_FXO/00/00/3 (no pcm)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-zaptel
channel => 4
context=default

- created one incoming route with freebpx, 
- all the calls that are coming on the port 4 of the astribank will be
redirected to the sip extension 666;

Now, dialing from my mobile phone again to the line connected to the
port 4 of the astribank is showing me the called ID on the 666 extension
as Unknown:


    -- Starting simple switch on 'Zap/4-1'
    -- Executing NoOp("Zap/4-1", "Entering from-zaptel with DID == ") in
new stack
    -- Executing Ringing("Zap/4-1", "") in new stack
    -- Executing Set("Zap/4-1", "DID=s") in new stack
    -- Executing NoOp("Zap/4-1", "DID is now s") in new stack
    -- Executing GotoIf("Zap/4-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing NoOp("Zap/4-1", "Is a Zaptel Channel") in new stack
    -- Executing Set("Zap/4-1", "CHAN=4-1") in new stack
    -- Executing Set("Zap/4-1", "CHAN=4") in new stack
    -- Executing Macro("Zap/4-1", "from-zaptel-4|s|1") in new stack
    -- Executing NoOp("Zap/4-1", "Entering macro-from-zaptel-4 with DID
= s") in new stack
    -- Executing Gosub("Zap/4-1", "app-blacklist-check|s|1") in new
stack
    -- Executing LookupBlacklist("Zap/4-1", "") in new stack
    -- Executing GotoIf("Zap/4-1", "0?blacklisted") in new stack
    -- Executing Return("Zap/4-1", "") in new stack
    -- Executing Set("Zap/4-1", "__FROM_DID=s") in new stack
    -- Executing Goto("Zap/4-1", "ext-local|666|1") in new stack
    -- Goto (ext-local,666,1)
  == Channel 'Zap/4-1' jumping out of macro 'from-zaptel-4'
    -- Executing Macro("Zap/4-1", "exten-vm|666|666") in new stack
    -- Executing Macro("Zap/4-1", "user-callerid") in new stack
    -- Executing NoOp("Zap/4-1", "user-callerid:  ") in new stack
    -- Executing GotoIf("Zap/4-1", "0?report") in new stack
    -- Executing GotoIf("Zap/4-1", "0?start") in new stack
    -- Executing Set("Zap/4-1", "REALCALLERIDNUM=") in new stack
    -- Executing NoOp("Zap/4-1", "REALCALLERIDNUM is ") in new stack
    -- Executing Set("Zap/4-1", "AMPUSER=") in new stack
    -- Executing Set("Zap/4-1", "AMPUSERCIDNAME=") in new stack
    -- Executing GotoIf("Zap/4-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing NoOp("Zap/4-1", "TTL:  ARG1: 666") in new stack
    -- Executing GotoIf("Zap/4-1", "0?continue") in new stack
    -- Executing Set("Zap/4-1", "__TTL=64") in new stack
    -- Executing GotoIf("Zap/4-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,21)
    -- Executing NoOp("Zap/4-1", "Using CallerID "" <>") in new stack
    -- Executing Set("Zap/4-1", "FROMCONTEXT=exten-vm") in new stack
    -- Executing Set("Zap/4-1", "VMBOX=666") in new stack
    -- Executing Set("Zap/4-1", "EXTTOCALL=666") in new stack
    -- Executing Set("Zap/4-1", "CFUEXT=") in new stack
    -- Executing Set("Zap/4-1", "CFBEXT=") in new stack
    -- Executing Set("Zap/4-1", "RT=15") in new stack
    -- Executing Macro("Zap/4-1", "record-enable|666|IN") in new stack
    -- Executing GotoIf("Zap/4-1", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing DeadAGI("Zap/4-1", "recordingcheck|20070919-002336|
asterisk-5150-1190161411.3") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/recordingcheck
  recordingcheck|20070919-002336|asterisk-5150-1190161411.3: Inbound
recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("Zap/4-1", "No recording needed") in new stack
    -- Executing Macro("Zap/4-1", "dial|15|tr|666") in new stack
    -- Executing DeadAGI("Zap/4-1", "dialparties.agi") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager.d/ari.conf': Found
  == Parsing '/etc/asterisk/manager.d/freepbx.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  dialparties.agi: priority is 1
  dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
  dialparties.agi: Methodology of ring is  'none'
       >  dialparties.agi: USE_CONFIRMATION:  'FALSE'
       >  dialparties.agi: RINGGROUP_INDEX:   ''
    --  dialparties.agi: Added extension 666 to extension map
    --  dialparties.agi: Extension 666 cf is disabled
    --  dialparties.agi: Extension 666 do not disturb is disabled
       >  dialparties.agi: extnum: 666
       >  dialparties.agi: exthascw: 0
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb: 
       >  dialparties.agi: exthascfu: 0
       >  dialparties.agi: extcfu: 
       >  dialparties.agi: ExtensionState: 0
  dialparties.agi: Extension 666 has ExtensionState: 0
    --  dialparties.agi: Checking CW and CFB status for extension 666
    --  dialparties.agi: DbDel CALLTRACE/666 - Caller ID is not defined
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing Dial("Zap/4-1", "SIP/666|15|tr") in new stack
    -- Called 666
    -- SIP/666-081b6410 is ringing
    -- SIP/666-081b6410 answered Zap/4-1
  == Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/4-1' in
macro 'dial'
  == Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/4-1' in
macro 'exten-vm'
  == Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/4-1'
    -- Executing Macro("Zap/4-1", "hangupcall") in new stack
    -- Executing ResetCDR("Zap/4-1", "w") in new stack
    -- Executing NoCDR("Zap/4-1", "") in new stack
    -- Executing GotoIf("Zap/4-1", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing GotoIf("Zap/4-1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing Wait("Zap/4-1", "5") in new stack
    -- Executing Hangup("Zap/4-1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 10) exited non-zero on
'Zap/4-1' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 10) exited non-zero on
'Zap/4-1'
    -- Hungup 'Zap/4-1'



Best regards,

-- 
Guillermo Salas M.
Telconet S.A.
Calle 15 y Avenida 24 Esq
Edificio Barre #2 Primer Piso
Telefono : +593 5 262 8071
Celular  : +593 9 985 5138
e-mail   : gsalas at manta.telconet.net
www      : http://www.manta.telconet.net
           http://www.telcocarrier.net
SIP      : 666 at sip.manta.telconet.net
FWD      : 558563

Linux User: 255902

Beat me, whip me, make me use Windows!

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Please avoid the Top Posting, see
http://es.wikipedia.org/wiki/Top-posting




More information about the asterisk-users mailing list