Yate Community Forum
General Category => Yate users hangout place => Topic started by: jamie on August 10, 2013, 06:37:50 PM
-
Hi
Please can you help me?
Forgive me if this is a silly question or if I've stated the obvious, but I'm rather new to Yate and still getting used to things.
I'm trying to extract some specific information from the Message Header, as follows
Message Header
From: "SB Call - FXO to IVR" <sip:FXOToIVR@192.168.10.143>;tag=673e483b3e861190a7;ref=907817123456
( I've extracted this using Wireshark )
From YATE I need to be able to extract the 'ref=907817123456' part, but i can't see how to do it just yet !
The reason i need this value is i have calls arriving to YATE from/via a Cisco UC320W ( SIP PBX ) and it forwards useful bits of information within ‘ref’. Example the caller id of an FXO call or the extension used to make a call.
If someone could kindly point me in the right direction it would be very much appreciated,
Thank you!
Regards
Jamie
-
Hi,
you can access almost any SIP message part. Connect to via telnet to rmanager. Then start debug and sniffer. Now you can see all parameters available.
Sniffed 'call.preroute' time=1382008032.149810
thread=0x7fbc5400b950 'Call Router'
data=(nil)
retval='(null)'
param['id'] = 'sip/521638'
param['module'] = 'sip'
param['status'] = 'incoming'
param['address'] = '10.20.30.40:5061'
param['billid'] = '1381224392-201494'
param['answered'] = 'false'
param['direction'] = 'incoming'
param['callid'] = 'sip/45d4d208371c11e3b9fc0025907d0298@10.20.30.40/3939619909-3809549367-620821689-2550300048/'
param['caller'] = '123456789'
param['called'] = '987654321'
param['antiloop'] = '19'
param['ip_host'] = '10.20.30.40'
param['ip_port'] = '5061'
param['ip_transport'] = 'UDP'
param['sip_uri'] = 'sip:987654321@10.50.60.70;user=phone'
param['sip_from'] = 'sip:123456789@10.20.30.40:5061;user=phone'
param['sip_to'] = '<sip:987654321@10.50.60.70;user=phone>'
param['sip_callid'] = '45d4d208371c11e3b9fc0025907d0298@10.20.30.40'
param['device'] = 'XXXXXX'
param['sip_contact'] = '<sip:123456789@10.20.30.40:5061;user=phone>'
param['sip_content-type'] = 'application/sdp'
param['sip_allow'] = 'ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE'
param['sip_user-agent'] = 'XXXXXXXXX'
param['sip_cisco-guid'] = '3089045420-924520931-2583232549-2426535383'
param['sip_p-asserted-identity'] = '<sip:123456789@10.20.30.40:5061;user=phone>'
.....
As you see there all delivered parameters accessible.
-
Hi Vankooch,
Sorry for the late reply, but thank you.
Jamie