From agranig at sipwise.com Fri Mar 1 03:07:43 2013 From: agranig at sipwise.com (Andreas Granig) Date: Fri, 01 Mar 2013 09:07:43 +0100 Subject: [Spce-user] inbound rewriting rule In-Reply-To: <512FD66A.6080501@anutel.ca> References: <060FD34D-F154-43C1-A202-8A98286074BB@optionsdsl.ca> <512E75CB.7060309@anutel.ca> <512FD66A.6080501@anutel.ca> Message-ID: <513061CF.80902@sipwise.com> Hi, On 02/28/2013 11:12 PM, Blagoja wrote: > This is the line where i can see the call entering the server. > New request - M=ACK R=sip:127.0.0.1:5080 > F=sip:025101165 at X.X.X.X:5060;user=phone;cpc=ordinary > T=sip:5101199 at X.X.X.X:5060;user=phone IP=X.X.X.X:5060 (127.0.0.1:5060) > ID=418ebe9cl43yuf9oa at 172.16.17.10 > My rulle is : ^([1-9][0-9]+)$ and i believe is muching the number 5101199 > I tried instead of the above rulle with the number but no luck. > Where and how the server is geting incoming did i cant findout The ACK is the peer acknowledging the 200-ok of the CE, so this doesn't provide any suitable information. You need to look for INVITE messages. Andreas From jbonilla at sipwise.com Fri Mar 1 04:30:21 2013 From: jbonilla at sipwise.com (Jon Bonilla (Manwe)) Date: Fri, 1 Mar 2013 10:30:21 +0100 Subject: [Spce-user] inbound PSTN peer routing to local sip uri In-Reply-To: <013501ce15b3$90327c00$b0977400$@murray@skyracktelecom.com> References: <013501ce15b3$90327c00$b0977400$@murray@skyracktelecom.com> Message-ID: <20130301103021.4a56afaf@quenya> El Thu, 28 Feb 2013 13:00:19 -0000 "John Murray" escribi?: > Hello, > > > > I am trying to get calls coming from a PSTN peer (it's a PBX) to route to a > local user with the sip uri. > > The local user is a001002 at skyrack.net which is in the To: field but SPCE > doesn't find it as a local user. > > > > The RURI contains the user part but the domain part is the ip address of our > server. Can I route this? > > The incoming INVITE > > > Feb 28 11:55:43 skt-salem02 /usr/sbin/kamailio[2499]: INFO: