I want the sipphone registered on the asterisk to call the mobile phone.
I have tried these 2 methods below,but something wrong.
notice:
I have an account (A)accompanying with the password § and IPPBX server IP address( I), which can call the mobile phone by X-lite
1> I configure the asterisk through asterisk-gui.
1.1, I have set up a trunk ,of which Hostname is I (above) , username is A (above) and password is P (above).
1.2 , then based on the trunk ,I set rule , dialplan and user. After that, by clicking the System status (gui 1.2) , I find the trunk register successfully , but unfortunately, the user on the asterisk can not call the mobile phone.
however. through the same way , I can register the local brekeke sip server and can call the user on the brekeke sip server.
2> I directly configure the sip.conf and extensions.conf
2.1, I add a statement “register=>username:password@sip server ip address” in the session ‘general’, and modify the extension in the extencions.conf below, “exten => _XXXX,1,dial(sip/${EXTEN}@sip server ip address)”.however, when I call the mobile phone, it works beyond what I want. it can not call the mobile phone. using the same way to connect the brekeke sip server, it works fine.
now I have no idea to go ahead , and I appreciate someone can give an idea for the following step.