[Users] openser CPL-C

Helmut Kuper helmut.kuper at ewetel.de
Tue Jun 5 15:33:21 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I played around with CPL-C Module. I loaded this CPL successfully via
MI-FIFO-Module into database:

<?xml version="1.0" encoding="UTF-8"?>
   <cpl>
     <outgoing>
       <address-switch field="destination" subfield="user">
         <address is="v111">
           <reject status="603" reason="fhhhghh"/>
         </address>
       </address-switch>
     </outgoing>
   </cpl>

When a call is placed, the script above is executed and throws an error:

0(8741) DEBUG:cpl-c:get_orig_user: trying to get user from From
 0(8741) DEBUG:get_user_script: fetching script for user <v101>
 0(8741) DEBUG:get_user_script: we got the script len=62
 0(8741) DEBUG:cpl_run_script: processing CPL node
 0(8741) DEBUG:cpl_run_script: processing address-switch node
 0(8741) DEBUG:run_address_switch: testing ADDRESS branch  attr_name=0
attr_val=[v111](4)..
 0(8741) DEBUG:run_address_switch: extracted uri is <sip:v111 at domain>
 0(8741) DEBUG:run_address_switch: extracted val. is <v111>
 0(8741) DEBUG:run_address_switch: matching on ADDRESS node (IS)
 0(8741) DEBUG:cpl_run_script: processing reject node
 0(8741) ERROR:cpl_c:cpl_run.c:553: attribute is an empty string
 0(8741) ERROR:cpl_c:cpl_run_script: script error


When I change that reject line to this:

<reject status="reject"/>

then it works fine. Obviously openser (1.2.0) has some problems with
parsing reject's reason attribute ...

Is there a fix around or did I do a mistake somewhere?

regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGZWYh4tZeNddg3dwRAiY/AJ4zN6oG56eUf9Lk4CRsTmqOwuqAVACfYE7+
zDbMXvqazKign05L7lzbZeE=
=gB85
-----END PGP SIGNATURE-----




More information about the Users mailing list