OCA / connector-telephony

Odoo modules for telephony integration
GNU Affero General Public License v3.0
151 stars 293 forks source link

CallerID not showing on phone #144

Closed NeilvEs closed 7 years ago

NeilvEs commented 7 years ago

Hi all,

I've been trying to fix this one last thing in our Odoo 10 telephony, but can't get the get_cid_name_timeout.sh to work.

If I execute the script manually (execute get_cid_name_timeout.sh with parameters) with a phone number - it parses all correctly and the number lookup is successful. If I then call with the same phone number, the CallerID isn't sent to the phones.

Traceback of asterisk:

<SIP/Server>AGI Tx >> agi_context: oe-lookup
<SIP/Server >AGI Tx >> agi_extension: 31854444200
<SIP/Server >AGI Tx >> agi_priority: 1
<SIP/Server >AGI Tx >> agi_enhanced: 0.0
<SIP/Server >AGI Tx >> agi_accountcode: 
<SIP/Server >AGI Tx >> agi_threadid: -1227506800
<SIP/Server >AGI Tx >> 
    -- <SIP/Server >AGI Script /usr/local/bin/get_cid_name_timeout.sh completed, returning 0
    -- Executing [31854444200@oe-lookup:2] Goto("SIP/Server", "ext-group,600,2") in new stack

So the get_cid_name_timeout.sh script seems to return '0' for some reason. I do need to mention that if I use the set_name_agi.py as-is, it throws an error on the 'epilog' section. If I use:

parser = OptionParser(usage=usage, description=description)

instead of

parser = OptionParser(usage=usage, epilog=epilog, description=description)

...it executes ok.

Any help is greatly appreciated. Kind of in the dark here.

NeilvEs commented 7 years ago

Fixed... changed ownership of the scripts to asterisk user - and now it's executing.