[OpenSIPS-Users] Parse Contact information

Leonardo Uzcudun uzcudunl at yahoo.it
Sat Nov 22 09:03:17 CET 2014


Hello,

I'm receiving in the contact field at the registration moment the following information:

Contact:: sip:xxxxx at yy.yy.yy.yy:49641;app-id=com.hello.network.prod;pn-type=apple;pn-tok=C749BC1D09AA73E8504C71EF1733059031827EE0865EC129101DB51AAAAAAAAA;pn-msg-str=IC_SIL;pn-call-str=IC_SIL;pn-call-snd=empty;pn-msg-snd=msg.caf;transport=tcp

Is there any way to parse that information and store each value in different DB columns like:

Contact=sip:xxxxx at yy.yy.yy.yy:49641
app-id=com.hello.network.prod
pn-type=apple
pn-tok=C749BC1D09AA73E8504C71EF1733059031827EE0865EC129101DB51AAAAAAAAA
pn-msg-str=IC_SIL
pn-call-str=IC_SIL
pn-call-snd=empty
pn-msg-snd=msg.caf
transport=tcp

I've tried with $ci and $ci.field but couldn't get it.

Thanks,

Leo 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141122/72ba56fa/attachment.htm>


More information about the Users mailing list