I'm not sure if you are able to read that header from FS without any modifications. What you can try is the generic syntax to get header variables: {$sip_h_PortaBilling}. Not sure, but I think this might only work with a set of standard headers, as well as all non-standard headers, that really should be prefixed with "X-". If this does not work, the PortaBilling header should in this case be renamed to X-PortaBilling, and you would be able to get it from FreeSWITCH with: {$sip_h_X-PortaBilling}. That is if it's possible to change that header on the server that sends it... Best regards, Even André On 17. juni. 2009, at 08.58, Mark Campbell-Smith wrote:
Hi!
Does freeswitch support extracting the billing data (PortaBilling) in SIP messages? If so, is there anyway I can get that information to an extension?
03:36:00.245: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDis playMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP sip.mydomain.com:5060;branch=z9hG4 bK1FF90 From: {sip:61XXXXXXXXX@sip.pennytel.com}; tag=47E011-580 To: {sip:61XXXXXXXXX@sip.pennytel.com}; tag=adfde4bc91cd85e752cb0672816ac1 a6-eb1b Call-ID: EE04FAB6-F24011DC-803AA58E-D5912FB 7 CSeq: 3 REGISTER PortaBilling: available-funds:7.37 currency:AUD Contact: {sip:61XXXXXXXXX@sip.mydomain.com:5060}; expires=3595 Server: Sip EXpress router (0.9.6 (i386/freebsd)) Content-Length: 0
Thanks!
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org