Thank Matt it really was easy to solve the issue. However still i am reading
and trying to understand is result of enum lookup.
My understanding is sip header contains the called part reference as a "
prefix". I build a rule based on prefix matching in enum.json file (in
dns/NAPTR concept ll be same method ll be dns)
Target or action part shows me a regex
"regex" : "!(^.*$)!sip:\\[email protected]!
What does it explain my call of my 'prefix x' map to bgcf entry of domain
192.168.31.34 so it could be routed to ibcf or (in this case its just s target
matching) or i can also do some rewriting hunt grouping etc here ( doing some
action ) like if call destination is 03219001131 replace it with short code
9999 so next routing of sip would follow the path of 9999 instead of actual
path of 03219001131
One more scenario relevent to this i have two trunks in ibcf each with
different network both network have some same shortcode but different domains i
want all my calls coming from my prefix of 6555xxxxx and/ or having domain of
ef1.net should route to one trunk and others to second truk etc. how can i do
that?
Thanks
Sent from my iPad
> On 07-Apr-2014, at 2:33 pm, Matt Williams <[email protected]>
> wrote:
>
> Schahzad,
>
> It's great to hear that you've fixed outgoing calls.
>
> In terms of routing function, Clearwater supports
> · ENUM lookups, to map from a telephone number (either a TEL URI or
> embedded in a SIP URI) to a domain
> · BGCF to match on domain and determine the route to follow (i.e.
> which Route headers to apply).
> Note that Clearwater also supports NAPTR/SRV (RFC 3263) to map from a domain
> name to a set of IP addresses to try.
>
> The configuration is described at
> https://github.com/Metaswitch/clearwater-docs/wiki/IBCF. For ENUM, there is
> more detailed documentation (including how to set up your own ENUM server) at
> https://github.com/Metaswitch/clearwater-docs/wiki/ENUM.
>
> (I assume here you're not asking about subscriber call diversion/forwarding?
> If this is what you're interested in - see
> https://github.com/Metaswitch/clearwater-docs/wiki/Clearwater-Call-Diversion-Support.
> The configuration is as described in TS 24.604/IR.92.)
>
> I hope that helps - please let me know if you have any follow-on questions.
>
> Thanks,
>
> Matt
>
> From: Schahzad Zafar [mailto:[email protected]]
> Sent: 07 April 2014 10:16
> To: Matt Williams; [email protected]
> Subject: Re: [Clearwater] Sip truking
>
> Thanks Matt,
>
> Issue has been resolved. thanks alot.
>
> I want to test some of call routing scenarios, can you please guide me to the
> doc link where can i find the documentation to rules to redirect calls?
>
> Thanks
>
>
> On Mon, Apr 7, 2014 at 1:24 PM, Matt Williams <[email protected]>
> wrote:
> Schahzad,
>
> Thanks for those logs.
>
> I think the issue is that the IBCF node is not recognizing itself in the
> Route header (which reads "<sip:ibcf:5058;transport=TCP;lr>") and so it's
> doing what a proxy should, and forwarding on to "ibcf" - this turns out to be
> itself).
>
> The solution is to tell the IBCF node that "ibcf" is (one of) its names. The
> easiest way to do this is to set it in the public_hostname field in
> /etc/clearwater/config, i.e. "public_hostname=ibcf" - just on the IBCF node.
> Please can you try that, and let me know how you get on?
>
> Incidentally, your top-level Clearwater domain should normally resolve to
> bono. This allows clients to connect to the service (via bono) without
> needing any manual proxy configuration. See
> https://github.com/Metaswitch/clearwater-docs/wiki/Clearwater-DNS-Usage for
> more information. (Note that this shouldn't be causing any problems with
> your deployment - it might just make things simpler.)
>
> Thanks,
>
> Matt
>
> From: Schahzad Zafar [mailto:[email protected]]
> Sent: 07 April 2014 08:34
> To: Matt Williams; [email protected]
> Subject: Fwd: [Clearwater] Sip truking
>
>
>
>
> Hi Matt,
>
> Thanks for respose,
> currently when i dial out from my local cleint connected to bono following is
> happening
>
> my local number is 6505550045
> my outgoing number is 03219001131 ( on asterisk via sip trunk with ibcf)
> my sip trunk ip is 192.168.31.34
>
> ibcf -----192.168.31.34 trunk ----> asterisk
> when i dial from sip client
>
> 03219001131 IBCF runs logs lot of logs like loop and sip client generate
> request timeout
>
> when i dial [email protected]
>
> my remote sip client start ringing.
>
> at sprout my eneum.json is
>
> {
> "number_blocks" : [
> {
> "name" : "Clearwater external number
> 03219001131",
> "prefix" : "03219001131",
> "regex" : "!(^.*$)!sip:\\[email protected]!"
> },
>
>
> { "name" : "Clearwater internal numbers",
> "prefix" : "650555",
> "regex" : "!(^.*$)!sip:\\[email protected]!"
>
> },
>
> {
> "name" : "Clearwater external number 0300",
> "prefix" : "0300",
> "regex" : "!(^.*$)!sip:\\[email protected]!"
> },
> {
> "name" : "Clearwater external number 0321",
> "prefix" : "0321",
> "regex" : "!(^.*$)!sip:\\[email protected]!"
> }
>
> ]
> }
>
>
> My bgcf.json at sprout is
>
>
> {
> "routes" : [
> { "name" : "outside net",
> "domain" : "192.168.31.34",
> "route" : ["ibcf:5058"]
> }
> ]
> }
>
>
>
>
> My IP Scheme
>
> 192.168.9.96 BONO
> 192.168.9.97 SPROUTE
> 192.168.9.94 IBCF
> SIP trunk
> 192.168.31.34
>
> my clearwater domain is ef.net ( not sure to which node ef.net should resolve
> so currently its pointing to sproute)
>
>
>
> Please find attached IBCF call logs(tried to keep it a single call)
>
> ###############################################################################################
> Best Regards
> Schahzad
>
>
> On Sat, Apr 5, 2014 at 3:58 AM, Matt Williams <[email protected]>
> wrote:
> No problem - thanks for signing up!
>
> Matt
>
> On 4 Apr 2014 23:07, Shahzad Zafar <[email protected]> wrote:
> Hi Matt
> I have already sign up my qery main just send some minutes earlier i got
> confirmation mail from list admin sorry for that
>
> Sent from my iPad
>
> > On 05-Apr-2014, at 2:58 am, Matt Williams <[email protected]>
> > wrote:
> >
> > Shazad,
> >
> > Please can you sign up to the mailing list at
> > http://lists.projectclearwater.org/listinfo/clearwater? Then you're
> > guaranteed to see any responses people send, and you'll also be able to see
> > if anyone asks any other questions that are relevant to what you're doing.
> >
> > (I'll reply to your questions on the mailing list itself.)
> >
> > Thanks!
> >
> > Matt
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of
> > Shahzad Zafar
> > Sent: 04 April 2014 22:25
> > To: [email protected]
> > Subject: [Clearwater] Sip truking
> >
> > Hi every one
> > I am trying to setup sip trunk to external network.
> >
> > I have set up bgcf.json and enum ( via fix enum.json file)is doing fine. I
> > can dial from my external network to my bone clients, call land on ibcf and
> > reaches fine to bone sip clients.
> >
> > But when itry to call from my sip client to external clients i saw
> > different errors
> >
> > My understanding is call flow is below
> >
> > Sip client --> bono --> sproute ( enum lookup only required here)-->ibcf
> > where trunk is confiugred and other end shows trunk is active and reachable
> > When sproute send call to ibcf , ibcf show error that call received from
> > sproute on port 5060 which is not a trust port and forbidden message is
> > generated.
> >
> > During playing i changed bgcf.json at sproute to have ibcf as ibcf:5058.
> > Assuming it ll be trust port then ibcf started to throw huge logs like some
> > loop is happening.
> >
> > During list search i found --trusted-port switch to bono at ibcf node i
> > tried to add port 5060 to trust port but ibcf dont start then.
> >
> > My config is simple
> > I have 6550555* series at local net and 0234* numbers are at remote net via
> > sip trunk.
> >
> > Cann you please let me know config files of enum.json bgcf.json and what to
> > configure in ibcf.
> >
> > My user_setting at ibcf has one line of trusted peer = sip truk ip Best
> > regards
> >
> > Shahzad
> > _______________________________________________
> > Clearwater mailing list
> > [email protected]
> > http://lists.projectclearwater.org/listinfo/clearwater
>
>
>
> --
> Best Regards
> Schahzad Z. Choudhry
> 0092 - 321 -9001131
>
> Never argue with an idiot, they will just drag you down to their level and
> beat you with experience.
>
>
>
>
>
>
>
>
> --
> Best Regards
> Schahzad Z. Choudhry
> 0092 - 321 -9001131
>
> Never argue with an idiot, they will just drag you down to their level and
> beat you with experience.
>
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater