[Serusers] Domain and To header fields

Martin Koenig [toplink-plannet GmbH] martin.koenig at toplink-plannet.de
Wed Sep 8 17:15:10 CEST 2004


Hi Adrian,

the URI will not be local, it will be the remote target as defined for loose routing.

Regards,
Martin
  ----- Original Message ----- 
  From: Adrian Georgescu 
  To: Martin Koenig 
  Cc: serusers at lists.iptel.org 
  Sent: Tuesday, September 07, 2004 10:41 PM
  Subject: [Serusers] Domain and To header fields


  Martin, try is_uri_host_local()

  Adrian

  >>>>>>>>>>>>>>>

  Hi List,

  I have a multi domain ser setup with the domain module operating, and I need
  to check whether the TO header field contains a local domain or not.

  Can this be done with is_domain_local()? If yes how?

  Or do i need to write a new function based on is_from_local() to achieve
  such a goal.

  The Problem is that there is no possiblity to distinguish between our user
  calling 012345 at iptel.org (Remote SIP desination) or 012345 at domain.com (PSTN
  target) after (!) the initial INVITE, especially with loose routing. This is
  important because Request-URIs to the PSTN have to be transformed (add f.e.
  +49), but requests to other sip destinations have to not be touched.

  Thanks for your input,

  regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040908/15e901b2/attachment.htm>


More information about the sr-users mailing list