arnaudcoquelet / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Outgoing fax - unable to send ACCOUNT CODE in the SIP INVITE header for billing #797

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add option to add ACCOUNT CODE to the outgoing fax setup page
2. If point 1 is not possible force the fax logic to add the ACCOUNT CODE which 
can be set in the OUTGOING ROUTE
I use "ACTION   SET   sip_h_X-accountcode=${accountcode}" in the outgoing 
routes, this adds the account code to the SIP INVITE which is set under each 
extension

What is the expected output? What do you see instead?
Expected output (this is when an extension makes outgoing call):
        Supported: timer, path, replaces
        Allow-Events: talk, hold, conference, refer
        Content-Type: application/sdp
        Content-Disposition: session
        Content-Length: 292
        X-accountcode: 6987xxxxx
        X-FS-Support: update_display,send_info

For outgoing fax there is no "X-accountcode: 6987xxxxx" header in the SIP 
INVITE. It does not exist even if I manually add "ACTION SET 
sip_h_X-accountcode=6987xxxxx" to the outgoing route.

What version of the product are you using? On what operating system?
Version:            3.7.1 (installed in August this year)
Operating System:   Linux fs01 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 
GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by kisia...@googlemail.com on 28 Dec 2014 at 1:27

GoogleCodeExporter commented 9 years ago
Mark, 
I had a quick look at this and it seems the Accountcode is saving to the DB but 
somehow doesn't show up in the GUI after a save and does appear to get 
retrieved from the DB when sending out faxes.
Hope that makes sense.

Original comment by ewsamu...@gmail.com on 6 Mar 2015 at 9:35

GoogleCodeExporter commented 9 years ago
With r8004, account code is now properly retrieved from the database and 
displayed in the GUI.  

Original comment by sevenate on 19 Mar 2015 at 12:11

GoogleCodeExporter commented 9 years ago
I have fixed this issue and accountcode is now passing correctly.

Original comment by ewsamu...@gmail.com on 21 Mar 2015 at 9:06