[asterisk-bugs] [Asterisk 0016770]: Unrecognized prilocaldialplan NPI modifier

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 24 10:31:25 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16770 
====================================================================== 
Reported By:                jamicque
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16770
Category:                   Channels/chan_dahdi
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.14 
JIRA:                       SWP-872 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-04 07:40 CST
Last Modified:              2010-02-24 10:31 CST
====================================================================== 
Summary:                    Unrecognized prilocaldialplan NPI modifier
Description: 
Hi,
when I'm making calls through dahdi in asterisk console shows errors about
"Unrecognized prilocaldialplan NPI modifier:"
during the call I'm not adding any modifier.
My dahdi configuration is attached (it's written in db)
====================================================================== 

---------------------------------------------------------------------- 
 (0118485) haakon (reporter) - 2010-02-24 10:31
 https://issues.asterisk.org/view.php?id=16770#c118485 
---------------------------------------------------------------------- 
I also had this problem. But I have found the root of it.

When using AGI, you usually fetch the callerid from the environment sent
by asterisk when the agi is connected.

If you look around line 737 in res/res_agi.c, you will see the following:

        ast_agi_send(fd, chan, "agi_callerid: %s\n",
S_OR(chan->cid.cid_num, "unknown"));
        ast_agi_send(fd, chan, "agi_calleridname: %s\n",
S_OR(chan->cid.cid_name, "unknown"));

The problem is when your agi script is washing callerid and setting it to
the value fetched by agi_callerid.

I think it's kinda hard to figure if this is a "undocumented feature" or a
bug. In my oppinion, I think its kind of bad by asterisk to say "unknown"
in this caller_id field when all other caller id functions in asterisk
returns an empty string. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-24 10:31 haakon         Note Added: 0118485                          
======================================================================




More information about the asterisk-bugs mailing list