[Freeswitch-users] Regular expressions

Sandeep Ammaladinna sammaladinna at velankani.com
Mon Jun 23 02:57:56 PDT 2008


Hi,
 
  Can anybody help me out with a regular expression (in the context of
writing a dial plan) to extract the host part of a SIP URI.
 
 Suppose I have a sip uri like "sip:alice at example.com" or
alice at 10.0.16.20 what is the procedure to extract the host part?
  I know the procedure to extract the user part, ie, "$1@". But what is
the procedure to extract the host part????????
 
 
Please help me, I am stuck.
 
Thanks and Regards,
-Sandeep A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080623/94324f2e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list