Freepbx and OVH SIP with Aliases

Hi all.

I’m using freepbx 13.0.192.9 on raspbian.
I use to “play” with french Freebox and local AASTRA SIP phones and Zoiper.

I recently bought 1 sip account at OVH, and 1 alias.

My main problem is that I’m unable to get the alias from the incoming calls.
I’m seeing the call coming in the CLI, and can get it sent to any SIP phones or ring group, but I don’t see any information concerning the aliase.

What settings should I give you to help me ?

Regards,
Laurent (France)

Found the way by myself after few hours parsing web pages…

Hello @Autourdupc,

It is good to hear that you solved your problem.
Would you mind sharing the solution with us?

Thank you,

Daniel Friedman
Trixton LTD.

Hi Laurent.
Indeed, if the solution has been found, then share it.

However, i’ve in the same case like you. Freebox and OVH.
I just create an inbound route with my Alias (OVH)

Under Freepbx 2.11 :
Create a custom context like this:

[did-from-sip]
exten => s,1,Noop(Fixing DID using information from SIP TO header)
exten => s,n,Set(pseudodid=${SIP_HEADER(To)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,@,1)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,:,2)})
exten => s,n,Goto(from-trunk,${pseudodid},1) 

in my trunk, i changed context = did-from-sip instead of : context = from-trunk

But you can put directly your alias number delivered by OVH into the field DID from inbound route. 0033240… instead of 0240…

0240… will be ued with did-from-sip
00332. will be used with from-trunk if i remember well.

It should be the same in Freepbx 13.

This context appears to do the same thing as the predefined context:

from-pstn-toheader

I would think it’s easier to just use that one.

Ha ok… good.
Like i said, it was under Freepbx 2.11 for me.
I never used my install under Freepbx 13.
It was just for example in my case.

Indeed the cmd below show all contexts available starting by from.

localhost*CLI> dialplan show from
from-analog                      from-dahdi                       from-did-direct                  from-digital                     from-internal                    from-internal-additional         from-internal-noxfer             from-internal-noxfer-additional  from-internal-xfer
from-pms                         from-pms-custom                  from-pstn                        from-pstn-e164-us                from-pstn-toheader               from-sip-external                from-trunk                       from-trunk-pjsip-OVH             from-zaptel
from-did-direct-ivr

Well done.