Hello, I having issue how to migration script sip_to_pjsip.py.
Please someone can give real steps to do this?
thnaks
Hello, I having issue how to migration script sip_to_pjsip.py.
Please someone can give real steps to do this?
thnaks
I tried that script on my configuration, and in my case, it was a better solution to do the migration manually.
What exactly is your problem?
If your problem is how to invoke the script, it seems like you just give it the input and output file, and that’s all.
The relevant part of the code describing other options, are available at github The script will also print it in some cases, but I’ve not used the python OptionParser before, and don’t know exactly when it will display the message.
What I need is, I have now Sip.conf file working properly, But I want to migration from current sip.conf files to convert in to Pjsip.conf.
Okay, and the problem is what? You don’t know how to run the script? It didn’t work? You have problems understanding the new config?
jcolp, My problem is I don’t know how to run this scripts.
I have seen google something, But I could understand . Please I need your fully support, to convert this sip.conf files in to pjsip!
It’s a Python script. You execute it from the command line.
✔ jcolp@kappa:~/development/asterisk/github/contrib/scripts/sip_to_pjsip [18| …1⚑ 2]> ./sip_to_pjsip.py /etc/asterisk/sip.conf
Please, report any issue at:
https://github.com/asterisk/asterisk/issues/
Reading /etc/asterisk/sip.conf
Converting to PJSIP...
Writing pjsip.conf
Which then writes out a pjsip.conf to the current directory.
I will thanks sir,
One more question please:
Suppose you have this information;
Number: +xxxxxxxx
Username: +xxxxxxxx@ims.test.com
Password: passwordxxx
Sip server: ims.test.com
Proxy server IP:10.x.x.x.x
Using the above information, Could you give me real sample to configure IMS domain via Proxy IP using pjsip!, I tried so many times, but i couldn’t get any solution!, I am getting fatal error 404!
Thanks for help!
You already have a thread for help with such a configuration:
If I have anything to add to threads, then I post on them.
Shall I Paste it all your command line!
~/development/asterisk/github/contrib/scripts/sip_to_pjsip [18| …1⚑ 2]> ./sip_to_pjsip.py /etc/asterisk/sip.conf
The command to execute is this:
./sip_to_pjsip.py /etc/asterisk/sip.conf
The rest of the line, is just the configure prompt, it may look different on your system.
-bash: cd: /usr/src/asterisk-18.19.0/contrib/scripts/sip_to_pjsip/etc/asterisk/sip.conf: No such file or directory,
It shows no directory!
The script is in the contrib/scripts/sip_to_pjsip directory, of wherever you’ve extracted the Asterisk source files.
cd /usr/src/asterisk-18.19.0/contrib/scripts/sip_to_pjsip > ./sip_to_pjsip.py /etc/asterisk/sip.conf
I applied that one! I am correct!
where can i get the file migrated from sip to pjsip!
I didn’t read the source of the scirpt, but I would assume you would find a pjsip.conf file either in the directory from where you ran the script, or where sip.conf were located.
ok, Is it correct the format?
cd /usr/src/asterisk-18.19.0/contrib/scripts/sip_to_pjsip > ./sip_to_pjsip.py /etc/asterisk/sip.conf
You have conflated 2 separate commands:
cd /usr/src/asterisk-18.19.0/contrib/scripts/sip_to_pjsip
and
./sip_to_pjsip.py /etc/asterisk/sip.conf
Not understanding simple CLI commands does not bode well for success managing an Asterisk system.
You may want to ‘study up’ on Linux CLI skills before proceeding.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.