Still don't understand the dial-string doesn't seem to be populated. Help with this is appreciated. Btw, this is on an old fs 1.4 David On Fri, Apr 7, 2017 at 7:56 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello all,
If i understand properly, by defining a user like:
<include> <user id="54321"> <params> <param name="password" value="mypass"/> <param name="directory-exten-visible" value="true"/> <param name="dial-string" value="{presence_id=12345@mydomain ,instant_ringback=true}loopback/12345"/> </params> <variables> <variable name="domain_uuid" value="mydomain/> <variable name="extension_uuid" value="f477242d-d629-483d-845c-c5126b072508"/> <variable name="toll_allow" value=""/> <variable name="accountcode" value=""/> <variable name="user_context" value="default"/> <variable name="directory-visible" value="true"/> <variable name="limit_max" value="5"/> </variables> </user> </include>
When the user 54321 is not registered, call should go to 12345@mydomain (which is the same domain) to be handled by further dialplan...
But when i try to (on my public profile):
<extension name="54321_test" continue="false"> <condition field="context" expression="public" /> <condition field="network_addr" expression="^10\.1\.1\.1$"/> <condition field="destination_number" expression="^(543.*)$" > <action application="info"/> <action application="log" data="ERR DIAL-STRING: ${sofia_contact(*/${dialed_user}@mydomain)}"/> <action application="bridge" data="user/${sofia_contact(*/${destination_number}@${dialed_domain})}" /> </condition> </extension>
I invariably get "error/user_not_registered"...
Help is greatly appreciated...
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 ᐧ