← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 697395] Re: set callerid agi need different quoting

 

> Come on! Asterisk 1.4 is so old! I wonder why people still use that.

Here are the reasons :
Debian stable has Asterisk 1.4
Xivo stable (1.1.8) has Asterisk 1.4
Elastix stable version supports Asterisk 1.6 since August 2010 only

Thanks for your remark about POTS phone ; I don't have any POTS phone connected to Asterisk via TDM board or something like that, so I didn't think about this kind of scenario. I don't think I have access to the user agent inside the AGI script, but I have access to the variant "agi_type" which has "SIP", "ZAP", etc... so I could write something like :
if agi_type = SIP, I keep UTF-8
if agi_type = ZAP, I convert to ASCII

What do you think ?

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697395

Title:
  set callerid agi need different quoting

Status in OpenObject Addons Modules:
  New

Bug description:
  We upgrade the module to the version which supports adaptation of the callerid (name, num) based upon data available in our OpenERP installation. We use asterisk 1.6 and had to change the script get_cid_name.py and replace the line:

  sys.stdout.write('SET CALLERID "%s" <%s>\n' % (res_ascii, input_cid_number))

with
  
  sys.stdout.write('SET CALLERID "%s<%s>"\n' % (res_ascii, input_cid_number))

Note the difference in the location of the quote. After that, everything works out pretty well. 

Without this change the callerid (name) would be set properly, but the callerid(num) would be empty.





Follow ups

References