Provider.xml located in directory:default: Note: I tried
to register the provider through the sip_provider/outbound
location but would not register. I have set up a simple dialplan
to call my cell phone. The call comes in and connects fine but the outgoing
doesn’t work. Below is the outgoing dial plan. Can anyone help –
Thanks.
- <include>
-
<user id="xxxxxxxxxx"> <!—sip provider user name same as
phone number -->
-
<gateways>
-
<gateway name="xx.xxx.xx.xx"> <!—sip provider ip address à
<param name="username" value="xxxxxxxxx" /> <!—sip
provider user name, same as phone number -->
<param name="password" value="xxxxxx" />
<!- Sip provider password
<param name="expire-seconds" value="600" />
<param name="register" value="true" />
<param name="retry_seconds" value="5" />
<param name="context" value="public" />
</gateway>
</gateways>
-
<params>
<param name="password" value="xxxxxxxx" />
</params>
</user>
</include>
LLocated
in my default.xml in the conf/dialplan
-
<extension name="outbound">
-
<condition field="destination_number" expression="mycellphonenumber">
<action
application="set" data="effective_caller_id_number=sipproviderusername@sipprovideripaddress" />
<action
application="bridge" data="sofia/gateway/sipprovideripaddress/mycellphonenumber" />
</condition>
</extension>