Koozali.org: home of the SME Server

Caller ID problem

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Caller ID problem
« on: January 06, 2009, 02:26:20 AM »
I don't get the value $CALLERID.

I'm running sme7.4 and Sark702 but the problem has been there for about a month.

Callback can't work because $callerid is missing (Unknown <unknown>)

Code: [Select]
    -- Starting simple switch on 'Zap/1-1'
[Jan  5 20:25:16] NOTICE[13699]: chan_zap.c:6387 ss_thread: Got event 18 (Ring Begin)...
[Jan  5 20:25:18] NOTICE[13699]: chan_zap.c:6387 ss_thread: Got event 2 (Ring/Answered)...
    -- Executing [s@mainmenu:1] GotoIf("Zap/1-1", "1?s-Zap1-1|1") in new stack
    -- Goto (mainmenu,s-Zap1-1,1)
    -- Executing [s-Zap1-1@mainmenu:1] AGI("Zap/1-1", "selintra|Inbound|Zap1-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Background) Options: (silence/2)
    -- <Zap/1-1> Playing 'silence/2' (language 'fr')
    -- AGI Script Executing Application: (NoOp) Options: (Can't)
    -- AGI Script selintra completed, returning 0
    -- Executing [106@internal-presets:1] AGI("Zap/1-1", "selintra|Alias|SIP/5000 SIP/5007 SIP/5006 SIP/5003 SIP/5004 SIP/5104|106") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/5000&SIP/5007&SIP/5006&SIP/5003&SIP/5004&SIP/5104|15)
    -- Called 5000
    -- Called 5007
    -- SIP/5007-08c6a1f8 is ringing
    -- SIP/5000-08c198f8 is ringing
  == Spawn extension (internal-presets, 106, 1) exited non-zero on 'Zap/1-1'
    -- Executing [h@internal-presets:1] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (internal-presets, h, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'

I would need help to know where to start looking!
« Last Edit: January 06, 2009, 02:30:18 AM by soprom »
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller ID problem
« Reply #1 on: January 06, 2009, 06:03:39 AM »
Can you run this trace with agi debug please?

Also, can we see zapata.conf

Kind Regards

S

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Caller ID problem
« Reply #2 on: January 06, 2009, 03:34:52 PM »
I'll complete this info later but for now I tested like this:

Using a trunk (pstn) to call an other trunk (iax) on the same Sark:

outbound shows:
Code: [Select]
AGI Rx << SET CALLERID S ROMANO<5145552945>
inbound shows:
Code: [Select]
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: S

Cdr shows:
Code: [Select]
"","5145552945","5901","default","""S"" <5145552945>","IAX2/5145557975peer-15905","SIP/5901-0a176858","Dial","SIP/5901|30|t","2009-01-06 13:50:23",,"2009-01-06 13:50:27",4,0,"NO ANSWER","DOCUMENTATION","1231249823.40",""
It is like quotes are not processed easily.

The caller info tools shows:
Code: [Select]
S (<unknown>)
With my absence of knowledge of Asterisk, shouldn't we have some quotes like:
Code: [Select]
AGI Rx << SET CALLERID "S ROMANO<5145552945>"
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller ID problem
« Reply #3 on: January 06, 2009, 11:53:32 PM »
Hello Sophie,

We will have a patch module for you shortly
« Last Edit: January 06, 2009, 11:55:03 PM by selintra »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller ID problem
« Reply #4 on: January 07, 2009, 02:51:49 AM »
HI Sophie,

For this to work - did you put  S ROMANO<5145552945> into the outbound CLID field in the trunk?   If not, where did the name come from?

Best

S

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Caller ID problem
« Reply #5 on: January 07, 2009, 04:32:05 AM »
Hello!

The outbound trunk is PSTN with "Set Outbound CLID 5145552945". Just the number, no name. I'm shy I guess.

It means that the caller name is set by the telco.

Thanks for your help.
« Last Edit: January 07, 2009, 04:36:08 AM by soprom »
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Caller ID problem
« Reply #6 on: January 07, 2009, 05:12:03 AM »
Test with  sail-2.2.1-704:

Calling a iax trunk from cell :

Code: [Select]
pbx*CLI> agi debug
AGI Debugging Enabled
    -- Accepting UNAUTHENTICATED call from 209.217.98.230:
       > requested format = ulaw,
       > requested prefs = (ulaw|gsm),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw),
       > priority = mine
    -- Executing [5143947975@mainmenu:1] AGI("IAX2/5143947975peer-10793", "selintra|Inbound|5143947975") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: IAX2/5143947975peer-10793
AGI Tx >> agi_language: fr
AGI Tx >> agi_type: IAX2
AGI Tx >> agi_uniqueid: 1231300812.75
AGI Tx >> agi_callerid: 5147040899
AGI Tx >> agi_calleridname: Unknown Name
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: mainmenu
AGI Tx >> agi_extension: 5143947975
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE RINGDELAY
AGI Tx >> 200 result=1 (0)
AGI Rx << GET VARIABLE FAXDETECT
AGI Tx >> 200 result=1 (2)
AGI Rx << GET VARIABLE CALLRECORD2
AGI Tx >> 200 result=1 (One-Touch)
AGI Rx << GET VARIABLE LTERM
AGI Tx >> 200 result=1 (NO)
AGI Rx << SET VARIABLE MOH ""
AGI Tx >> 200 result=1
AGI Rx << SET CALLERID Unknown Name<5147040899>
AGI Tx >> 200 result=1
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << SET VARIABLE REMOTENUM "5143947975"
AGI Tx >> 200 result=1
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (ON)
AGI Rx << EXEC NoOp Can't determine state from MTIME - running defaults
    -- AGI Script Executing Application: (NoOp) Options: (Can't)
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << SET VARIABLE OPEN "YES"
AGI Tx >> 200 result=1
AGI Rx << DATABASE GET "STAT" "IVRSTAT"
AGI Tx >> 200 result=0
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 5901
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT internal
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [5901@internal:1] AGI("IAX2/5143947975peer-10793", "selintra|OutCluster|5901") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: IAX2/5143947975peer-10793
AGI Tx >> agi_language: fr
AGI Tx >> agi_type: IAX2
AGI Tx >> agi_uniqueid: 1231300812.75
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: Unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 5901
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 5901
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT default
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [5901@default:1] AGI("IAX2/5143947975peer-10793", "selintra|InCall|") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: IAX2/5143947975peer-10793
AGI Tx >> agi_language: fr
AGI Tx >> agi_type: IAX2
AGI Tx >> agi_uniqueid: 1231300812.75
AGI Tx >> agi_callerid: unknown
AGI Tx >> agi_calleridname: Unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 5901
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << GET VARIABLE BLINDTRANSFER
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (ON)
AGI Rx << EXEC NoOp Can't determine state from MTIME - running defaults
    -- AGI Script Executing Application: (NoOp) Options: (Can't)
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfimopen" "5901"
AGI Tx >> 200 result=0
AGI Rx << DATABASE GET "cfim" "5901"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (ON)
AGI Rx << EXEC NoOp Can't determine state from MTIME - running defaults
    -- AGI Script Executing Application: (NoOp) Options: (Can't)
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "cfimopen" "5901"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << DATABASE GET "STAT" "OCSTAT"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE MTIME
AGI Tx >> 200 result=1 (ON)
AGI Rx << EXEC NoOp Can't determine state from MTIME - running defaults
    -- AGI Script Executing Application: (NoOp) Options: (Can't)
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE VOICEINSTR
AGI Tx >> 200 result=1 (NO)
AGI Rx << DATABASE GET "cfim" "5901"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE EXTLEN
AGI Tx >> 200 result=1 ()
AGI Rx << DATABASE GET "ringdelay" "5901"
AGI Tx >> 200 result=0
AGI Rx << GET VARIABLE INTRINGDELAY
AGI Tx >> 200 result=1 (30)
AGI Rx << GET VARIABLE CALLRECORD1
AGI Tx >> 200 result=1 (One-Touch)
AGI Rx << GET VARIABLE CALLRECORD2
AGI Tx >> 200 result=1 (One-Touch)
AGI Rx << GET VARIABLE MOH
AGI Tx >> 200 result=1 ()
AGI Rx << EXEC Dial SIP/5901|30|t
    -- AGI Script Executing Application: (Dial) Options: (SIP/5901|30|t)
    -- Called 5901
    -- SIP/5901-091ac090 is ringing
Really destroying SIP dialog '7622b1a92b2d91b25ef63cd4643c4808@192.168.250.6' Method: OPTIONS
AGI Tx >> 200 result=-1
  == Spawn extension (default, 5901, 1) exited non-zero on 'IAX2/5143947975peer-10793'
    -- Executing [h@default:1] Hangup("IAX2/5143947975peer-10793", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'IAX2/5143947975peer-10793'
    -- Hungup 'IAX2/5143947975peer-10793'
« Last Edit: January 07, 2009, 05:13:43 AM by soprom »
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller ID problem
« Reply #7 on: January 17, 2009, 08:38:08 PM »
Sophie,

WE made some changes to the CLI handling in 708.  Does it solve your problem?

Best

S

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Caller ID problem
« Reply #8 on: January 17, 2009, 08:41:00 PM »
Yes. Problem was solved with 705 or 707.
Many thanks
Sophie from Montréal