[Freeswitch-users] URI dialplan setup
Mark Campbell-Smith
mcampbellsmith at gmail.com
Fri May 30 09:13:35 MSD 2014
Hi
Voip provider Ippi allow calls to/from skype users. For me, this will work
quite well in my home pabx, and I do not want to implement the
SipThreeSkype solution.
I have created the gateway and successfully registered to Ippi's sip server
at ippi.fr. Ippi requires that to dial a skype user, the following URI
format must be dialed: my-skype-address at skype.ippi.com. (this successfully
calls my skype address using a softphone)
I am trying to create a dialplan that will allow me to call a skype user
through the Ippi gateway.
This is my gateway setup (notice ippi uses ippi.fr):
<include>
<gateway name="ippi.fr">
<param name="username" value="username"/>
<param name="password" value="password"/>
<param name="proxy" value="ippi.fr"/>
<param name="realm" value="ippi.fr"/>
<param name="auth-username" value="username"/>
<param name="register" value="true"/>
</gateway>
</include>
I have the following in the dialplan:
<extension name="ippi-skype">
<condition field="destination_number" expression="^5000$">
<action application="set" data="call_timeout=90"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="info"/>
<action application="bridge" data="sofia/gateway/
ippi.fr/my-skype-address at skype.ippi.com"/>
</condition>
</extension>
Now I realize that according to the wiki, I should not put sofia/gateway/
ippi.fr/my-skype-address at skype.ippi.com (ie the @skype.ippi.com), but I
need a way to dial out through the ippi gateway (ippi.fr), but to a user in
domain skype.ippi.com. I did try the two following options:
<action application="set" data="sip_invite_to_uri=
my-skype-address at skype.ippi.com"/>
<action application="export" data="sip_invite_to_uri=
my-skype-address at skype.ippi.com"/>
Wireshark gives me the following for a successful call using Jitsi
softphone:
Session Initiation Protocol
Request-Line: INVITE sip:my-skype-address at skype.ippi.com SIP/2.0
Method: INVITE
[Resent Packet: False]
Message Header
Call-ID: 891b23da468c6fdf05434ac89f123cf1 at 0:0:0:0:0:0:0:0
CSeq: 1 INVITE
Sequence Number: 1
Method: INVITE
From: "username" <sip:username at ippi.fr>;tag=35bcc007
SIP Display info: "username"
SIP from address: sip:username at ippi.fr
SIP tag: 35bcc007
To: <sip:my-skype-address at skype.ippi.com>
SIP to address: sip:my-skype-address at skype.ippi.com
Via: SIP/2.0/TCP 192.168.1.6:62110
;branch=z9hG4bK-373232-f15d6a66ae2d195ba99f1d308e43e61d
Transport: TCP
Sent-by Address: 192.168.1.6
Sent-by port: 62110
Branch: z9hG4bK-373232-f15d6a66ae2d195ba99f1d308e43e61d
Max-Forwards: 70
Contact: "username" <sip:username at 192.168.1.6:62110
;transport=tcp;registering_acc=ippi_fr>
Contact Binding: "username" <sip:username at 192.168.1.6:62110
;transport=tcp;registering_acc=ippi_fr>
User-Agent: Jitsi2.5.5137Windows 7
Content-Type: application/sdp
Content-Length: 910
What do I use in the bridge statement so that it calls
my-skype-address at skype.ippi.com, using gateway ippi.fr?
Suggestions appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140530/13ee2c90/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list