Thank you for your response
I saw route[pstn] before and I tried to modify it for routing my call. it's done and INVITE request reached to external server and then reached to  softphone which external destination defined on it. but Zoiper doesn't response INVITE and this request transmitted several times. I don't understand what's wrong with my request that Zoiper doesn't accept it. 
pcap over my external server and Zoiper attached here.
 

On Mon, May 20, 2019 at 4:15 PM Iman Mohammadi <iman.mohammadi.telecom@gmail.com> wrote:
Hi

It depends on your scenario and purpose, you can do that in scscf and icscf.for example you can see pstn routes in icscf and scscf and even you can define an mmtel in hss for routing your calls by scscf by reading the ifc and spts that scscf gets in saa from hss

On Mon, May 20, 2019, 15:08 Mary Honey <maryhoneyplus@gmail.com> wrote:

Hello everyone,

I install and setup an IMS Network by kamailio-5.2.2 . I have p-cscf, i-cscf and s-cscf in three different systems . my Hss is Fokus. Registration and call between subscribers of network work successfully . now I want to define IP Trunk in my network which can pass external calls through my IMS network. I don't know how to define IP Trunk and changes in which element(pcscf, icscf or scscf) should be done.


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users